ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gradientbutton.h
Go to the documentation of this file.
1 #ifndef GRADIENTBUTTON_H
2 #define GRADIENTBUTTON_H
3 
4 #include <QPushButton>
5 
6 class GradientButton : public QPushButton
7 {
8  Q_OBJECT
9 public:
10  explicit GradientButton(QWidget* parent = 0, bool allowAlpha = false);
11 
12  void fromString(const QString& string);
13  QString toString() const;
14 
15 signals:
16  void gradientChanged();
17 
18 private slots:
19  void pickGradient();
20 
21 private:
22  QGradientStops _stops;
23  bool _alpha;
24 
25  void updateImage();
26 };
27 
28 #endif // GRADIENTBUTTON_H
void fromString(const QString &string)
GradientButton(QWidget *parent=0, bool allowAlpha=false)
QGradientStops _stops
QString toString() const