From bb4e0b43f2d5d6c1aa4aef75a3cd24c9c7f779cd Mon Sep 17 00:00:00 2001 From: -f Date: Fri, 20 Dec 2013 09:41:42 +0100 Subject: [PATCH] new icons for the textAlignment --- resources/OpenBoard.qrc | 4 ++ resources/images/centerAligned.svg | 88 +++++++++++++++++++++++ resources/images/leftAligned.svg | 88 +++++++++++++++++++++++ resources/images/notAligned.svg | 88 +++++++++++++++++++++++ resources/images/rightAligned.svg | 88 +++++++++++++++++++++++ src/domain/UBGraphicsTextItemDelegate.cpp | 8 +-- src/domain/UBSelectionFrame.cpp | 3 - 7 files changed, 360 insertions(+), 7 deletions(-) create mode 100644 resources/images/centerAligned.svg create mode 100644 resources/images/leftAligned.svg create mode 100644 resources/images/notAligned.svg create mode 100644 resources/images/rightAligned.svg diff --git a/resources/OpenBoard.qrc b/resources/OpenBoard.qrc index 76dbc8de..1165e976 100644 --- a/resources/OpenBoard.qrc +++ b/resources/OpenBoard.qrc @@ -346,5 +346,9 @@ images/duplicateDisabled.svg images/roundeRrectangle.svg images/circle.svg + images/rightAligned.svg + images/centerAligned.svg + images/leftAligned.svg + images/notAligned.svg diff --git a/resources/images/centerAligned.svg b/resources/images/centerAligned.svg new file mode 100644 index 00000000..01c9a1ea --- /dev/null +++ b/resources/images/centerAligned.svg @@ -0,0 +1,88 @@ + + + +image/svg+xml + + + + + \ No newline at end of file diff --git a/resources/images/leftAligned.svg b/resources/images/leftAligned.svg new file mode 100644 index 00000000..6e513326 --- /dev/null +++ b/resources/images/leftAligned.svg @@ -0,0 +1,88 @@ + + + +image/svg+xml + + + + + \ No newline at end of file diff --git a/resources/images/notAligned.svg b/resources/images/notAligned.svg new file mode 100644 index 00000000..339d20b7 --- /dev/null +++ b/resources/images/notAligned.svg @@ -0,0 +1,88 @@ + + + +image/svg+xml + + + + + \ No newline at end of file diff --git a/resources/images/rightAligned.svg b/resources/images/rightAligned.svg new file mode 100644 index 00000000..334fb07f --- /dev/null +++ b/resources/images/rightAligned.svg @@ -0,0 +1,88 @@ + + + +image/svg+xml + + + + + \ No newline at end of file diff --git a/src/domain/UBGraphicsTextItemDelegate.cpp b/src/domain/UBGraphicsTextItemDelegate.cpp index 66d7803a..5b08e473 100644 --- a/src/domain/UBGraphicsTextItemDelegate.cpp +++ b/src/domain/UBGraphicsTextItemDelegate.cpp @@ -48,10 +48,10 @@ const int UBGraphicsTextItemDelegate::sMinPointSize = 8; AlignTextButton::AlignTextButton(const QString &fileName, QGraphicsItem *pDelegated, QGraphicsItem *parent, Qt::WindowFrameSection section) : DelegateButton(fileName, pDelegated, parent, section) - , lft(new QSvgRenderer(QString(":/images/plus.svg"))) - , cntr(new QSvgRenderer(QString(":/images/pause.svg"))) - , rght(new QSvgRenderer(QString(":/images/minus.svg"))) - , mxd(new QSvgRenderer(QString(":/images/reload.svg"))) + , lft(new QSvgRenderer(QString(":/images/leftAligned.svg"))) + , cntr(new QSvgRenderer(QString(":/images/centerAligned.svg"))) + , rght(new QSvgRenderer(QString(":/images/rightAligned.svg"))) + , mxd(new QSvgRenderer(QString(":/images/notAligned.svg"))) { setKind(k_left); } diff --git a/src/domain/UBSelectionFrame.cpp b/src/domain/UBSelectionFrame.cpp index 35ee9b4f..36f6a93f 100644 --- a/src/domain/UBSelectionFrame.cpp +++ b/src/domain/UBSelectionFrame.cpp @@ -313,9 +313,6 @@ void UBSelectionFrame::increaseZlevelBottom() ubscene()->changeZLevelTo(iter.previous(), UBZLayerController::bottom); } addSelectionUndo(selItems, UBZLayerController::bottom); -// foreach (QGraphicsItem *item, sortedByZ(scene()->selectedItems())) { -// ubscene()->changeZLevelTo(item, UBZLayerController::bottom); -// } } void UBSelectionFrame::groupItems()