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
ee2bd803
Commit
ee2bd803
authored
Dec 22, 2011
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed some other warning
parent
ad6f1ea6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
UBBoardController.cpp
src/board/UBBoardController.cpp
+1
-3
UBActionPalette.cpp
src/gui/UBActionPalette.cpp
+1
-7
No files found.
src/board/UBBoardController.cpp
View file @
ee2bd803
...
...
@@ -1184,7 +1184,6 @@ void UBBoardController::ClearUndoStack()
{
QSet
<
QGraphicsItem
*>
uniqueItems
;
// go through all stack command
int
count
=
UBApplication
::
undoStack
->
count
();
for
(
int
i
=
0
;
i
<
UBApplication
::
undoStack
->
count
();
i
++
)
{
...
...
@@ -1214,7 +1213,6 @@ void UBBoardController::ClearUndoStack()
// clear stack, and command list
UBApplication
::
undoStack
->
clear
();
count
=
UBApplication
::
undoStack
->
count
();
// go through all unique items, and check, ot on scene, or not.
// if not on scene, than item can be deleted
...
...
@@ -1226,7 +1224,7 @@ void UBBoardController::ClearUndoStack()
UBGraphicsScene
*
scene
=
(
UBGraphicsScene
*
)
item
->
scene
();
if
(
!
scene
)
{
bool
retCode
=
mActiveScene
->
deleteItem
(
item
);
mActiveScene
->
deleteItem
(
item
);
}
}
...
...
src/gui/UBActionPalette.cpp
View file @
ee2bd803
...
...
@@ -48,6 +48,7 @@ UBActionPalette::UBActionPalette(Qt::Corner corner, QWidget * parent, Qt::Orient
void
UBActionPalette
::
init
(
Qt
::
Orientation
orientation
)
{
Q_UNUSED
(
orientation
);
m_customCloseProcessing
=
false
;
mButtonSize
=
QSize
(
32
,
32
);
...
...
@@ -57,13 +58,6 @@ void UBActionPalette::init(Qt::Orientation orientation)
mToolButtonStyle
=
Qt
::
ToolButtonIconOnly
;
mButtons
.
clear
();
QBoxLayout
*
layout
=
0
;
if
(
orientation
==
Qt
::
Horizontal
)
layout
=
new
QHBoxLayout
(
this
);
else
layout
=
new
QVBoxLayout
(
this
);
updateLayout
();
}
...
...
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