Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
2efbe89c
Commit
2efbe89c
authored
Feb 21, 2019
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed deprecated Style option from colorChooserbutton
parent
1b7dc53f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
libs_required/ACG/QtWidgets/QtColorChooserButton.cc
libs_required/ACG/QtWidgets/QtColorChooserButton.cc
+2
-2
libs_required/ACG/QtWidgets/QtColorChooserButton.hh
libs_required/ACG/QtWidgets/QtColorChooserButton.hh
+1
-5
No files found.
libs_required/ACG/QtWidgets/QtColorChooserButton.cc
View file @
2efbe89c
...
...
@@ -94,10 +94,10 @@ void QtColorChooserButton::paintEvent(QPaintEvent *ev) {
painter
.
drawControl
(
QStyle
::
CE_PushButtonBevel
,
buttonOptions
);
QRect
colorRect
=
this
->
style
()
->
subElementRect
(
QStyle
::
SE_PushButtonFocusRect
,
&
buttonOptions
,
this
);
QStyleOptionFrame
V3
frameOptions
;
QStyleOptionFrame
frameOptions
;
frameOptions
.
state
=
QStyle
::
State_Sunken
;
frameOptions
.
rect
=
colorRect
;
frameOptions
.
features
=
QStyleOptionFrame
V2
::
None
;
frameOptions
.
features
=
QStyleOptionFrame
::
None
;
/*
* Draw checker board pattern.
...
...
libs_required/ACG/QtWidgets/QtColorChooserButton.hh
View file @
2efbe89c
...
...
@@ -39,9 +39,7 @@
* *
\*===========================================================================*/
#ifndef QTCOLORCHOOSERBUTTON_HH_
#define QTCOLORCHOOSERBUTTON_HH_
#pragma once
#include <QPushButton>
#include <QColor>
...
...
@@ -79,5 +77,3 @@ class ACGDLLEXPORT QtColorChooserButton: public QPushButton {
private:
QColor
color_
;
};
#endif
/* QTCOLORCHOOSERBUTTON_HH_ */
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