From de84e0f9b8f9c06af381e09634d1f8dbd8e75ccc Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 3 Mar 2014 09:58:34 +0100 Subject: [PATCH] removed a couple of warning --- OpenBoard.pro | 2 ++ src/domain/UBGraphicsDelegateFrame.h | 2 +- src/domain/UBGraphicsTextItem.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenBoard.pro b/OpenBoard.pro index d9147b59..f08e499a 100644 --- a/OpenBoard.pro +++ b/OpenBoard.pro @@ -102,6 +102,8 @@ MOC_DIR = $$BUILD_DIR/moc RCC_DIR = $$BUILD_DIR/rcc UI_DIR = $$BUILD_DIR/ui +QMAKE_CXXFLAGS += -std=c++11 + win32 { RC_FILE = resources/win/OpenBoard.rc CONFIG += qaxcontainer diff --git a/src/domain/UBGraphicsDelegateFrame.h b/src/domain/UBGraphicsDelegateFrame.h index d98feac4..599fca5e 100644 --- a/src/domain/UBGraphicsDelegateFrame.h +++ b/src/domain/UBGraphicsDelegateFrame.h @@ -68,7 +68,6 @@ class UBGraphicsDelegateFrame: public QGraphicsRectItem, public QObject QList getLinkedFrames(); private: - qreal mTitleBarHeight; QRectF bottomRightResizeGripRect() const; QRectF bottomResizeGripRect() const; QRectF leftResizeGripRect() const; @@ -143,6 +142,7 @@ class UBGraphicsDelegateFrame: public QGraphicsRectItem, public QObject bool mResizing; bool mMirroredXAtStart; bool mMirroredYAtStart; + qreal mTitleBarHeight; QList mLinkedFrames; }; diff --git a/src/domain/UBGraphicsTextItem.cpp b/src/domain/UBGraphicsTextItem.cpp index 77cab71e..a9f949b2 100644 --- a/src/domain/UBGraphicsTextItem.cpp +++ b/src/domain/UBGraphicsTextItem.cpp @@ -44,9 +44,9 @@ QColor UBGraphicsTextItem::lastUsedTextColor; UBGraphicsTextItem::UBGraphicsTextItem(QGraphicsItem * parent) : QGraphicsTextItem(parent) , UBGraphicsItem() + , mTypeTextHereLabel(tr("")) , mMultiClickState(0) , mLastMousePressTime(QTime::currentTime()) - , mTypeTextHereLabel(tr("")) , isActivatedTextEditor(true) { setDelegate(new UBGraphicsTextItemDelegate(this, 0));