Version 0.3.23. Setup for PR1.3.
[easylist] / mycheckbox.h
diff --git a/mycheckbox.h b/mycheckbox.h
new file mode 100755 (executable)
index 0000000..6eac640
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef MYCHECKBOX_H
+#define MYCHECKBOX_H
+
+#include <QCheckBox>
+#include <QDebug>
+#include <QMenu>
+#include <QObject>
+
+class MyCheckBox : public QCheckBox
+{
+    Q_OBJECT
+public:
+    MyCheckBox(QWidget *parent = 0);
+    MyCheckBox(const QString & text, QWidget *parent = 0);
+    virtual ~MyCheckBox();
+private:
+    static int instances;
+
+    QPalette checkedColor;
+    QPalette uncheckedColor;
+signals:
+    void signalDeleteClicked(MyCheckBox * myCheckBox);
+public slots:
+    void slotContextMenuActivated(QPoint point);
+    void slotDeleteClicked();
+    void slotTriggered(bool checked);
+};
+
+#endif // MYCHECKBOX_H