mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 09:50:33 -04:00
QWidget::sizeHint() is const-qualified, so Clang warns that non-const sizeHint() member functions merely hide the virtual function of the base class.664dac3401
and9f53ae6efc
introduced these member functions in 2014 without const qualifiers. QWidget::sizeHint() was const-qualified even in Qt 3. Since these member functions have never had any effect, they should be removed rather than const-qualified to preserve the long-standing behaviors of the two classes. Add a TODO for a similar but less straightforward issue with PropertiesDialog::sizeHint().
17 lines
312 B
C++
17 lines
312 B
C++
#ifndef COMICS_VIEW_TRANSITION_H
|
|
#define COMICS_VIEW_TRANSITION_H
|
|
|
|
#include <QWidget>
|
|
|
|
class ComicsViewTransition : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ComicsViewTransition(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *) override;
|
|
};
|
|
|
|
#endif // COMICS_VIEW_TRANSITION_H
|