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 {
|
namespace QmlDesigner {
|
||||||
|
|
||||||
bool isSpacer(QObject *object)
|
static bool isSpacer(QObject *object)
|
||||||
{
|
{
|
||||||
return object->property("spacer_widget").toBool();
|
return object->property("spacer_widget").toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget *createSpacer()
|
static QWidget *createSpacer()
|
||||||
{
|
{
|
||||||
QWidget *spacer = new QWidget();
|
QWidget *spacer = new QWidget();
|
||||||
spacer->setProperty("spacer_widget", true);
|
spacer->setProperty("spacer_widget", true);
|
||||||
return spacer;
|
return spacer;
|
||||||
}
|
}
|
||||||
|
|
||||||
int controlWidth(QToolBar *bar, QObject *control)
|
static int controlWidth(QToolBar *bar, QObject *control)
|
||||||
{
|
{
|
||||||
QWidget *widget = nullptr;
|
QWidget *widget = nullptr;
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ int controlWidth(QToolBar *bar, QObject *control)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QAction *createAction(const Core::Id &id,
|
static QAction *createAction(const Core::Id &id,
|
||||||
const QIcon &icon,
|
const QIcon &icon,
|
||||||
const QString &name,
|
const QString &name,
|
||||||
const QKeySequence &shortcut)
|
const QKeySequence &shortcut)
|
||||||
|
Reference in New Issue
Block a user