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
d6295358
Commit
d6295358
authored
8 years ago
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix text box title bar height/spacing when zooming
parent
0491ce9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
UBGraphicsDelegateFrame.cpp
src/domain/UBGraphicsDelegateFrame.cpp
+2
-0
UBGraphicsDelegateFrame.h
src/domain/UBGraphicsDelegateFrame.h
+1
-0
UBGraphicsItemDelegate.cpp
src/domain/UBGraphicsItemDelegate.cpp
+1
-1
No files found.
src/domain/UBGraphicsDelegateFrame.cpp
View file @
d6295358
...
...
@@ -66,6 +66,7 @@ UBGraphicsDelegateFrame::UBGraphicsDelegateFrame(UBGraphicsItemDelegate* pDelega
,
mMirrorX
(
false
)
,
mMirrorY
(
false
)
,
mTitleBarHeight
(
hasTitleBar
?
20
:
0
)
,
mNominalTitleBarHeight
(
hasTitleBar
?
20
:
0
)
{
mAngleTolerance
=
UBSettings
::
settings
()
->
angleTolerance
->
get
().
toReal
();
...
...
@@ -117,6 +118,7 @@ UBGraphicsDelegateFrame::~UBGraphicsDelegateFrame()
void
UBGraphicsDelegateFrame
::
setAntiScale
(
qreal
pAntiScale
)
{
mFrameWidth
=
mNominalFrameWidth
*
pAntiScale
;
mTitleBarHeight
=
mNominalTitleBarHeight
*
pAntiScale
;
QTransform
tr
;
tr
.
scale
(
pAntiScale
,
pAntiScale
);
...
...
This diff is collapsed.
Click to expand it.
src/domain/UBGraphicsDelegateFrame.h
View file @
d6295358
...
...
@@ -143,6 +143,7 @@ class UBGraphicsDelegateFrame: public QGraphicsRectItem, public QObject
bool
mMirroredXAtStart
;
bool
mMirroredYAtStart
;
qreal
mTitleBarHeight
;
qreal
mNominalTitleBarHeight
;
QList
<
UBGraphicsDelegateFrame
*>
mLinkedFrames
;
};
...
...
This diff is collapsed.
Click to expand it.
src/domain/UBGraphicsItemDelegate.cpp
View file @
d6295358
...
...
@@ -790,7 +790,7 @@ void UBGraphicsItemDelegate::updateButtons(bool showUpdated)
}
else
if
(
button
->
getSection
()
==
Qt
::
TitleBarArea
){
button
->
setParentItem
(
mFrame
);
button
->
setPos
(
topXTitleBar
+
(
k
++
*
(
frameButtonHeight
+
5
)),
topYTitleBar
);
button
->
setPos
(
topXTitleBar
+
(
k
++
*
(
frameButtonHeight
+
5
)
*
mAntiScaleRatio
),
topYTitleBar
);
button
->
setTransform
(
tr
);
button
->
setTransform
(
QTransform
::
fromScale
(
0.8
,
0.8
),
true
);
}
...
...
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