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
c560cd08
Commit
c560cd08
authored
Oct 26, 2012
by
Aleksei Kanash
Committed by
Claudio Valerio
Oct 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Go to content source is action again.
parent
8a21ba28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
UBGraphicsItemDelegate.cpp
src/domain/UBGraphicsItemDelegate.cpp
+9
-7
UBGraphicsItemDelegate.h
src/domain/UBGraphicsItemDelegate.h
+0
-1
No files found.
src/domain/UBGraphicsItemDelegate.cpp
View file @
c560cd08
...
...
@@ -190,13 +190,6 @@ void UBGraphicsItemDelegate::init()
connect
(
mMenuButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
showMenu
()));
mButtons
<<
mMenuButton
;
if
(
mShowGoContentButton
)
{
mContentSourceButton
=
new
DelegateButton
(
":/images/home.svg"
,
mDelegated
,
mFrame
,
Qt
::
TopLeftSection
);
connect
(
mContentSourceButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
gotoContentSource
()));
mButtons
<<
mContentSourceButton
;
}
mZOrderUpButton
=
new
DelegateButton
(
":/images/z_layer_up.svg"
,
mDelegated
,
mFrame
,
Qt
::
BottomLeftSection
);
mZOrderUpButton
->
setShowProgressIndicator
(
true
);
connect
(
mZOrderUpButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
increaseZLevelUp
()));
...
...
@@ -630,6 +623,15 @@ void UBGraphicsItemDelegate::decorateMenu(QMenu* menu)
showIcon
.
addPixmap
(
QPixmap
(
":/images/eyeOpened.svg"
),
QIcon
::
Normal
,
QIcon
::
On
);
showIcon
.
addPixmap
(
QPixmap
(
":/images/eyeClosed.svg"
),
QIcon
::
Normal
,
QIcon
::
Off
);
mShowOnDisplayAction
->
setIcon
(
showIcon
);
if
(
mShowGoContentButton
)
{
mGotoContentSourceAction
=
menu
->
addAction
(
tr
(
"Go to Content Source"
),
this
,
SLOT
(
gotoContentSource
()));
QIcon
sourceIcon
;
sourceIcon
.
addPixmap
(
QPixmap
(
":/images/toolbar/internet.png"
),
QIcon
::
Normal
,
QIcon
::
On
);
mGotoContentSourceAction
->
setIcon
(
sourceIcon
);
}
}
void
UBGraphicsItemDelegate
::
updateMenuActionState
()
...
...
src/domain/UBGraphicsItemDelegate.h
View file @
c560cd08
...
...
@@ -287,7 +287,6 @@ class UBGraphicsItemDelegate : public QObject
//buttons from the top left section of delegate frame
DelegateButton
*
mDeleteButton
;
DelegateButton
*
mDuplicateButton
;
DelegateButton
*
mContentSourceButton
;
DelegateButton
*
mMenuButton
;
//buttons from the bottom left section of delegate frame
...
...
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