forked from qt-creator/qt-creator
QmlDesigner: Fix tests build
Change-Id: I65190e74a3dfb76991650463bf91b40a285d7384 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#include "rewriterview.h"
|
||||
#include "modelmerger.h"
|
||||
#include "rewritingexception.h"
|
||||
#include "designermcumanager.h"
|
||||
|
||||
#include <QUrl>
|
||||
#include <QPlainTextEdit>
|
||||
@@ -47,6 +46,10 @@
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#ifndef QMLDESIGNER_TEST
|
||||
#include <designermcumanager.h>
|
||||
#endif
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
bool QmlItemNode::isItemOrWindow(const ModelNode &modelNode)
|
||||
@@ -287,7 +290,9 @@ bool QmlItemNode::modelIsResizable() const
|
||||
&& !modelIsInLayout();
|
||||
}
|
||||
|
||||
static bool isMcuRotationAllowed(QString itemName, bool hasChildren) {
|
||||
static bool isMcuRotationAllowed(QString itemName, bool hasChildren)
|
||||
{
|
||||
#ifndef QMLDESIGNER_TEST
|
||||
const QString propName = "rotation";
|
||||
const DesignerMcuManager &manager = DesignerMcuManager::instance();
|
||||
if (manager.isMCUProject()) {
|
||||
@@ -307,6 +312,7 @@ static bool isMcuRotationAllowed(QString itemName, bool hasChildren) {
|
||||
if (manager.bannedProperties().contains(propName))
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user