projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Escape % in the user name
[quassel.git]
/
src
/
uisupport
/
colorbutton.h
diff --git
a/src/uisupport/colorbutton.h
b/src/uisupport/colorbutton.h
index
37e830d
..
0c9309f
100644
(file)
--- a/
src/uisupport/colorbutton.h
+++ b/
src/uisupport/colorbutton.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8 by the Quassel IRC Team
*
+ * Copyright (C) 2005-0
9 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,24
+21,30
@@
#ifndef COLORBUTTON_H_
#define COLORBUTTON_H_
#ifndef COLORBUTTON_H_
#define COLORBUTTON_H_
-#include <Q
Push
Button>
+#include <Q
Tool
Button>
-class ColorButton : public Q
Push
Button {
+class ColorButton : public Q
Tool
Button {
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor USER true)
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor USER true)
-
public:
-
explicit ColorButton(QWidget *parent = 0);
-
explicit ColorButton(const QColor &c, QWidget *parent = 0);
+public:
+ explicit ColorButton(QWidget *parent = 0);
+ explicit ColorButton(const QColor &c, QWidget *parent = 0);
-
void setColor(const QColor &color);
-
QColor color() const;
+ void setColor(const QColor &color);
+ QColor color() const;
-
protected
:
-
void paintEvent(QPaintEvent *event
);
+
signals
:
+
void colorChanged(const QColor &
);
- private:
- QColor _color;
+protected:
+ //void paintEvent(QPaintEvent *event);
+
+private slots:
+ void chooseColor();
+
+private:
+ QColor _color;
};
#endif
};
#endif