Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
79a1c927
Commit
79a1c927
authored
Feb 06, 2020
by
Jan Möbius
Browse files
Removed deprecated function
parent
d1b83291
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs_required/ACG/QtWidgets/QtColorChooserButton.cc
View file @
79a1c927
...
...
@@ -84,7 +84,7 @@ void QtColorChooserButton::paintEvent(QPaintEvent *ev) {
initStyleOption
(
&
buttonOptions
);
QStylePainter
painter
(
this
);
const
int
textWd
=
buttonOptions
.
fontMetrics
.
width
(
buttonOptions
.
text
);
const
int
textWd
=
buttonOptions
.
fontMetrics
.
horizontalAdvance
(
buttonOptions
.
text
);
QRect
textRect
=
buttonOptions
.
rect
;
textRect
.
setWidth
(
std
::
min
(
textRect
.
width
(),
textWd
));
painter
.
drawItemText
(
textRect
,
Qt
::
TextSingleLine
|
Qt
::
TextShowMnemonic
|
Qt
::
AlignVCenter
,
...
...
Jan Möbius
@moebius
mentioned in commit
aa78ef29
·
Feb 06, 2020
mentioned in commit
aa78ef29
mentioned in commit aa78ef29d328fe7839adfe5392202fc9d65cf03e
Toggle commit list
Jan Möbius
@moebius
mentioned in merge request
!174 (merged)
·
Feb 06, 2020
mentioned in merge request
!174 (merged)
mentioned in merge request !174
Toggle commit list
Jan Möbius
@moebius
mentioned in commit
63cf6bee
·
Feb 06, 2020
mentioned in commit
63cf6bee
mentioned in commit 63cf6bee6d2f6335d09deb4863fa9882d19acc13
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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