widgets/colorbutton.h

changeset 348
98776f54a8d0
parent 347
5c655cc006de
child 349
673b8dffbe14
--- a/widgets/colorbutton.h	Sat Apr 08 15:11:39 2023 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#pragma once
-#include <QPushButton>
-#include <QLineEdit>
-
-/**
- * @brief A button that can be used to select a color
- */
-class ColorEdit : public QWidget
-{
-	Q_OBJECT
-	Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
-	QLineEdit* lineEdit;
-	QPushButton* button;
-public:
-	ColorEdit(const QColor& color = {}, QWidget* parent = nullptr);
-	ColorEdit(QWidget* parent = nullptr);
-	QColor color() const;
-	Q_SLOT void setColor(const QColor& color);
-	Q_SIGNAL void colorChanged(const QColor& color);
-};

mercurial