Fix non-Qt build

qteditor
Sven Eberhardt 2016-06-18 10:33:08 -04:00
parent 25fa57cabf
commit 1b785da271
2 changed files with 6 additions and 1 deletions

View File

@ -127,7 +127,10 @@ int32_t C4EditCursorSelection::ObjectCount() const
}
C4EditCursor::C4EditCursor() : shapes(new C4ConsoleQtShapes())
C4EditCursor::C4EditCursor()
#ifdef WITH_QT_EDITOR
: shapes(new C4ConsoleQtShapes())
#endif
{
Default();
}

View File

@ -118,7 +118,9 @@ public:
bool AltDown();
bool AltUp();
void SetMouseHover(bool h) { has_mouse_hover = h; }
#ifdef WITH_QT_EDITOR
class C4ConsoleQtShapes *GetShapes() const { return shapes.get(); }
#endif
bool HasTransformCursor() const { return DragTransform || IsHoveringTransformMarker(); }
bool IsHoveringTransformMarker() const;
protected: