author | zecke <zecke> | 2004-09-12 16:07:13 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-12 16:07:13 (UTC) |
commit | 36a4f75e1f4e5a3858749779ea26a3fe3154d1f0 (patch) (unidiff) | |
tree | 18a61aedb81a9823cbf212cc82662c66101133f7 /libqtaux/ocolorbutton.h | |
parent | 12730b959f92a9d601d81bf28ab87fb265effe55 (diff) | |
download | opie-36a4f75e1f4e5a3858749779ea26a3fe3154d1f0.zip opie-36a4f75e1f4e5a3858749779ea26a3fe3154d1f0.tar.gz opie-36a4f75e1f4e5a3858749779ea26a3fe3154d1f0.tar.bz2 |
Do not limit the Image to 16x16 but use width() and height()
+ magic numbers to make the Image fit the button
-rw-r--r-- | libqtaux/ocolorbutton.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqtaux/ocolorbutton.h b/libqtaux/ocolorbutton.h index ca68f1f..10b77d5 100644 --- a/libqtaux/ocolorbutton.h +++ b/libqtaux/ocolorbutton.h | |||
@@ -53,8 +53,11 @@ public: | |||
53 | OColorButton ( QWidget *parent = 0, const QColor & = black, const char *name = 0 ); | 53 | OColorButton ( QWidget *parent = 0, const QColor & = black, const char *name = 0 ); |
54 | virtual ~OColorButton ( ); | 54 | virtual ~OColorButton ( ); |
55 | 55 | ||
56 | QColor color ( ) const; | 56 | QColor color ( ) const; |
57 | |||
58 | protected: | ||
59 | void resizeEvent( QResizeEvent* ); | ||
57 | 60 | ||
58 | signals: | 61 | signals: |
59 | /** | 62 | /** |
60 | * emitted when a color gets selected | 63 | * emitted when a color gets selected |