From 694e6e5a64c657f39ca3fff5316debff014d3819 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 16 Aug 2012 09:43:33 +0200 Subject: [PATCH] fixed group ungroup button 2 --- resources/forms/mainWindow.ui | 5 ++++- src/board/UBBoardController.cpp | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/forms/mainWindow.ui b/resources/forms/mainWindow.ui index 0ce11f87..06ea51ab 100644 --- a/resources/forms/mainWindow.ui +++ b/resources/forms/mainWindow.ui @@ -1632,6 +1632,9 @@ + + true + false @@ -1641,7 +1644,7 @@ :/images/toolbar/ungroup.png:/images/toolbar/group.png - Group Items + Group Group items diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index fda76415..25416aa5 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -880,13 +880,11 @@ void UBBoardController::groupButtonClicked() } if (groupAction->text() == UBSettings::settings()->actionGroupText) { //The only way to get information from item, considering using smth else - groupAction->setIcon(QIcon(":images/toolbar/ungroup.png")); UBGraphicsGroupContainerItem *groupItem = activeScene()->createGroup(selItems); groupItem->setSelected(true); UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); } else if (groupAction->text() == UBSettings::settings()->actionUngroupText) { - groupAction->setIcon(QIcon(":images/toolbar/group.png")); //Considering one selected item and it's a group if (selItems.count() > 1) { qDebug() << "can't make sense of ungrouping more then one item. Grouping action should be performed for that purpose";