Commit 694e6e5a authored by Claudio Valerio's avatar Claudio Valerio

fixed group ungroup button 2

parent 81fc2a20
...@@ -1632,6 +1632,9 @@ ...@@ -1632,6 +1632,9 @@
</property> </property>
</action> </action>
<action name="actionGroupItems"> <action name="actionGroupItems">
<property name="checkable">
<bool>true</bool>
</property>
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
...@@ -1641,7 +1644,7 @@ ...@@ -1641,7 +1644,7 @@
<normalon>:/images/toolbar/ungroup.png</normalon>:/images/toolbar/group.png</iconset> <normalon>:/images/toolbar/ungroup.png</normalon>:/images/toolbar/group.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Group Items</string> <string>Group</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Group items</string> <string>Group items</string>
......
...@@ -880,13 +880,11 @@ void UBBoardController::groupButtonClicked() ...@@ -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 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); UBGraphicsGroupContainerItem *groupItem = activeScene()->createGroup(selItems);
groupItem->setSelected(true); groupItem->setSelected(true);
UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector);
} else if (groupAction->text() == UBSettings::settings()->actionUngroupText) { } else if (groupAction->text() == UBSettings::settings()->actionUngroupText) {
groupAction->setIcon(QIcon(":images/toolbar/group.png"));
//Considering one selected item and it's a group //Considering one selected item and it's a group
if (selItems.count() > 1) { if (selItems.count() > 1) {
qDebug() << "can't make sense of ungrouping more then one item. Grouping action should be performed for that purpose"; qDebug() << "can't make sense of ungrouping more then one item. Grouping action should be performed for that purpose";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment