forked from qt-creator/qt-creator
QmlDesigner: Add missing static
Change-Id: Ic71aeeb8f6cf65944672a0f1d09f2d70e824d760 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
This commit is contained in:
@@ -56,19 +56,19 @@
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
bool isSpacer(QObject *object)
|
||||
static bool isSpacer(QObject *object)
|
||||
{
|
||||
return object->property("spacer_widget").toBool();
|
||||
}
|
||||
|
||||
QWidget *createSpacer()
|
||||
static QWidget *createSpacer()
|
||||
{
|
||||
QWidget *spacer = new QWidget();
|
||||
spacer->setProperty("spacer_widget", true);
|
||||
return spacer;
|
||||
}
|
||||
|
||||
int controlWidth(QToolBar *bar, QObject *control)
|
||||
static int controlWidth(QToolBar *bar, QObject *control)
|
||||
{
|
||||
QWidget *widget = nullptr;
|
||||
|
||||
@@ -84,7 +84,7 @@ int controlWidth(QToolBar *bar, QObject *control)
|
||||
return 0;
|
||||
}
|
||||
|
||||
QAction *createAction(const Core::Id &id,
|
||||
static QAction *createAction(const Core::Id &id,
|
||||
const QIcon &icon,
|
||||
const QString &name,
|
||||
const QKeySequence &shortcut)
|
||||
|
Reference in New Issue
Block a user