Commit 2efbe89c authored by Jan Möbius's avatar Jan Möbius

Removed deprecated Style option from colorChooserbutton

parent 1b7dc53f
......@@ -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);
QStyleOptionFrameV3 frameOptions;
QStyleOptionFrame frameOptions;
frameOptions.state = QStyle::State_Sunken;
frameOptions.rect = colorRect;
frameOptions.features = QStyleOptionFrameV2::None;
frameOptions.features = QStyleOptionFrame::None;
/*
* Draw checker board pattern.
......
......@@ -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_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment