Remove unused private fields in a class used for anti-flicker workaround
qwizard.cpp:510:14: error: private field 'wizard' is not used [-Werror,-Wunused-private-field] qwizard.cpp:511:21: error: private field 'wizardPrivate' is not used [-Werror,-Wunused-private-field] Field "wizard" was really unused, in all platforms, so simply remove it. The field "wizardPrivate" is used when the Windows Vista style is enabled. Change-Id: I1ce254f484b613655bff7f6c3ee8e04479960d7c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
parent
caffabc798
commit
336eac0896
@ -507,16 +507,18 @@ void QWizardPagePrivate::_q_updateCachedCompleteState()
|
|||||||
|
|
||||||
class QWizardAntiFlickerWidget : public QWidget
|
class QWizardAntiFlickerWidget : public QWidget
|
||||||
{
|
{
|
||||||
QWizard *wizard;
|
|
||||||
QWizardPrivate *wizardPrivate;
|
|
||||||
public:
|
public:
|
||||||
|
#if !defined(QT_NO_STYLE_WINDOWSVISTA)
|
||||||
|
QWizardPrivate *wizardPrivate;
|
||||||
QWizardAntiFlickerWidget(QWizard *wizard, QWizardPrivate *wizardPrivate)
|
QWizardAntiFlickerWidget(QWizard *wizard, QWizardPrivate *wizardPrivate)
|
||||||
: QWidget(wizard)
|
: QWidget(wizard)
|
||||||
, wizard(wizard)
|
|
||||||
, wizardPrivate(wizardPrivate) {}
|
, wizardPrivate(wizardPrivate) {}
|
||||||
#if !defined(QT_NO_STYLE_WINDOWSVISTA)
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *);
|
||||||
|
#else
|
||||||
|
QWizardAntiFlickerWidget(QWizard *wizard, QWizardPrivate *)
|
||||||
|
: QWidget(wizard)
|
||||||
|
{}
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user