Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
694e6e5a
Commit
694e6e5a
authored
Aug 16, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed group ungroup button 2
parent
81fc2a20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
mainWindow.ui
resources/forms/mainWindow.ui
+4
-1
UBBoardController.cpp
src/board/UBBoardController.cpp
+0
-2
No files found.
resources/forms/mainWindow.ui
View file @
694e6e5a
...
...
@@ -1632,6 +1632,9 @@
</property>
</action>
<action
name=
"actionGroupItems"
>
<property
name=
"checkable"
>
<bool>
true
</bool>
</property>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
...
...
@@ -1641,7 +1644,7 @@
<normalon>
:/images/toolbar/ungroup.png
</normalon>
:/images/toolbar/group.png
</iconset>
</property>
<property
name=
"text"
>
<string>
Group
Items
</string>
<string>
Group
</string>
</property>
<property
name=
"toolTip"
>
<string>
Group items
</string>
...
...
src/board/UBBoardController.cpp
View file @
694e6e5a
...
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment