From f26c51d5626d0e2dbb1e3743c8993a744fdea832 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 24 Jun 2020 16:55:14 +0200 Subject: [PATCH] QmlDesigner: Add missing static Change-Id: Ic71aeeb8f6cf65944672a0f1d09f2d70e824d760 Reviewed-by: Thomas Hartmann Reviewed-by: Knud Dollereder --- .../components/timelineeditor/timelinetoolbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelinetoolbar.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelinetoolbar.cpp index dec61de19fb..39874f51b06 100644 --- a/src/plugins/qmldesigner/components/timelineeditor/timelinetoolbar.cpp +++ b/src/plugins/qmldesigner/components/timelineeditor/timelinetoolbar.cpp @@ -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)