fix -Wunused-private-field, -Woverloaded-virtual
This commit is contained in:
parent
1ee6dcf75e
commit
45bf8ed91e
|
@ -85,9 +85,6 @@ public:
|
|||
device->setMousePosition(mousepos);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
qreal device_pixel_ratio = 1.0;
|
||||
};
|
||||
|
||||
#define PRIVATE(obj) obj->pimpl
|
||||
|
|
|
@ -3511,6 +3511,19 @@ PropertyItemEditorFactory::~PropertyItemEditorFactory()
|
|||
{
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= 0x050300)
|
||||
QWidget * PropertyItemEditorFactory::createEditor (int /*type*/, QWidget * /*parent*/) const
|
||||
{
|
||||
// do not allow to create any editor widgets because we do that in subclasses of PropertyItem
|
||||
return 0;
|
||||
}
|
||||
|
||||
QByteArray PropertyItemEditorFactory::valuePropertyName (int /*type*/) const
|
||||
{
|
||||
// do not allow to set properties because we do that in subclasses of PropertyItem
|
||||
return "";
|
||||
}
|
||||
#else
|
||||
QWidget * PropertyItemEditorFactory::createEditor (QVariant::Type /*type*/, QWidget * /*parent*/) const
|
||||
{
|
||||
// do not allow to create any editor widgets because we do that in subclasses of PropertyItem
|
||||
|
@ -3522,6 +3535,7 @@ QByteArray PropertyItemEditorFactory::valuePropertyName (QVariant::Type /*type*/
|
|||
// do not allow to set properties because we do that in subclasses of PropertyItem
|
||||
return "";
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "moc_PropertyItem.cpp"
|
||||
|
||||
|
|
|
@ -945,8 +945,13 @@ public:
|
|||
PropertyItemEditorFactory();
|
||||
virtual ~PropertyItemEditorFactory();
|
||||
|
||||
virtual QWidget * createEditor ( QVariant::Type type, QWidget * parent ) const;
|
||||
virtual QByteArray valuePropertyName ( QVariant::Type type ) const;
|
||||
#if (QT_VERSION >= 0x050300)
|
||||
virtual QWidget *createEditor(int userType, QWidget *parent) const;
|
||||
virtual QByteArray valuePropertyName(int userType) const;
|
||||
#else
|
||||
virtual QWidget * createEditor(QVariant::Type type, QWidget * parent) const;
|
||||
virtual QByteArray valuePropertyName (QVariant::Type type) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace PropertyEditor
|
||||
|
|
Loading…
Reference in New Issue
Block a user