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
21b98e56
Commit
21b98e56
authored
6 years ago
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed moveUp and moveDown icons
parent
2540bdfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
UBThumbnailWidget.cpp
src/gui/UBThumbnailWidget.cpp
+12
-12
UBThumbnailWidget.h
src/gui/UBThumbnailWidget.h
+2
-2
No files found.
src/gui/UBThumbnailWidget.cpp
View file @
21b98e56
...
...
@@ -827,14 +827,14 @@ void UBSceneThumbnailNavigPixmap::paint(QPainter *painter, const QStyleOptionGra
painter
->
drawPixmap
(
BUTTONSIZE
+
BUTTONSPACING
,
0
,
BUTTONSIZE
,
BUTTONSIZE
,
QPixmap
(
":images/duplicate.svg"
));
if
(
bCanMoveUp
)
painter
->
drawPixmap
(
2
*
(
BUTTONSIZE
+
BUTTONSPACING
),
0
,
BUTTONSIZE
,
BUTTONSIZE
,
QPixmap
(
":images/moveUp.svg"
));
else
painter
->
drawPixmap
(
2
*
(
BUTTONSIZE
+
BUTTONSPACING
),
0
,
BUTTONSIZE
,
BUTTONSIZE
,
QPixmap
(
":images/moveUpDisabled.svg"
));
if
(
bCanMoveDown
)
painter
->
drawPixmap
(
3
*
(
BUTTONSIZE
+
BUTTONSPACING
),
0
,
BUTTONSIZE
,
BUTTONSIZE
,
QPixmap
(
":images/menu.svg"
));
else
painter
->
drawPixmap
(
3
*
(
BUTTONSIZE
+
BUTTONSPACING
),
0
,
BUTTONSIZE
,
BUTTONSIZE
,
QPixmap
(
":images/menuDisabled.svg"
));
//
if(bCanMoveUp)
//
painter->drawPixmap(2*(BUTTONSIZE + BUTTONSPACING), 0, BUTTONSIZE, BUTTONSIZE, QPixmap(":images/moveUp.svg"));
//
else
//
painter->drawPixmap(2*(BUTTONSIZE + BUTTONSPACING), 0, BUTTONSIZE, BUTTONSIZE, QPixmap(":images/moveUpDisabled.svg"));
//
if(bCanMoveDown)
//
painter->drawPixmap(3*(BUTTONSIZE + BUTTONSPACING), 0, BUTTONSIZE, BUTTONSIZE, QPixmap(":images/menu.svg"));
//
else
//
painter->drawPixmap(3*(BUTTONSIZE + BUTTONSPACING), 0, BUTTONSIZE, BUTTONSIZE, QPixmap(":images/menuDisabled.svg"));
}
}
...
...
@@ -848,10 +848,10 @@ void UBSceneThumbnailNavigPixmap::mousePressEvent(QGraphicsSceneMouseEvent *even
if
(
p
.
x
()
>=
BUTTONSIZE
+
BUTTONSPACING
&&
p
.
x
()
<=
2
*
BUTTONSIZE
+
BUTTONSPACING
&&
p
.
y
()
>=
0
&&
p
.
y
()
<=
BUTTONSIZE
)
duplicatePage
();
if
(
bCanMoveUp
&&
p
.
x
()
>=
2
*
(
BUTTONSIZE
+
BUTTONSPACING
)
&&
p
.
x
()
<=
3
*
BUTTONSIZE
+
2
*
BUTTONSPACING
&&
p
.
y
()
>=
0
&&
p
.
y
()
<=
BUTTONSIZE
)
moveUpPage
();
if
(
bCanMoveDown
&&
p
.
x
()
>=
3
*
(
BUTTONSIZE
+
BUTTONSPACING
)
&&
p
.
x
()
<=
4
*
BUTTONSIZE
+
3
*
BUTTONSPACING
&&
p
.
y
()
>=
0
&&
p
.
y
()
<=
BUTTONSIZE
)
moveDownPage
();
//
if(bCanMoveUp && p.x() >= 2*(BUTTONSIZE + BUTTONSPACING) && p.x() <= 3*BUTTONSIZE + 2*BUTTONSPACING && p.y() >= 0 && p.y() <= BUTTONSIZE)
//
moveUpPage();
//
if(bCanMoveDown && p.x() >= 3*(BUTTONSIZE + BUTTONSPACING) && p.x() <= 4*BUTTONSIZE + 3*BUTTONSPACING && p.y() >= 0 && p.y() <= BUTTONSIZE)
//
moveDownPage();
event
->
accept
();
}
...
...
This diff is collapsed.
Click to expand it.
src/gui/UBThumbnailWidget.h
View file @
21b98e56
...
...
@@ -48,8 +48,8 @@
#define STARTDRAGTIME 1000000
#define BUTTONSIZE
48
#define BUTTONSPACING
5
#define BUTTONSIZE
96
#define BUTTONSPACING
10
class
UBDocumentProxy
;
class
UBThumbnailTextItem
;
...
...
This diff is collapsed.
Click to expand it.
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