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:
Thomas Hartmann
2020-06-24 16:55:14 +02:00
parent 3cb12a51ce
commit f26c51d562

View File

@@ -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)