QmlDesigner: use const without static in namespaces

Change-Id: Ie608e6f2d733c015b315d16ad58b159de4a72d75
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2017-01-09 11:21:26 +01:00
committed by Thomas Hartmann
parent ca507f2fe3
commit e0c4f87e6e
3 changed files with 8 additions and 8 deletions

View File

@@ -272,11 +272,11 @@ public:
} }
}; };
static char xProperty[] = "x"; const char xProperty[] = "x";
static char yProperty[] = "y"; const char yProperty[] = "y";
static char zProperty[] = "z"; const char zProperty[] = "z";
static char widthProperty[] = "width"; const char widthProperty[] = "width";
static char heightProperty[] = "height"; const char heightProperty[] = "height";
using namespace SelectionContextFunctors; using namespace SelectionContextFunctors;

View File

@@ -31,7 +31,7 @@
#include <QGraphicsScene> #include <QGraphicsScene>
#include <QGraphicsView> #include <QGraphicsView>
static const int AngleDegree = 16; const int AngleDegree = 16;
namespace QmlDesigner { namespace QmlDesigner {

View File

@@ -36,8 +36,8 @@
namespace QmlDesigner { namespace QmlDesigner {
static const int s_startDragDistance = 20; const int s_startDragDistance = 20;
static const int s_startDragTime = 50; const int s_startDragTime = 50;
SelectionTool::SelectionTool(FormEditorView *editorView) SelectionTool::SelectionTool(FormEditorView *editorView)
: AbstractFormEditorTool(editorView), : AbstractFormEditorTool(editorView),