author | zecke <zecke> | 2002-04-26 15:59:02 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-26 15:59:02 (UTC) |
commit | b59a0401cf09669e05d3e68dd289ed0bb25ced6e (patch) (unidiff) | |
tree | 3f8fe4d247e78bfd542322cce0977f902c884e80 | |
parent | 429edaf407c4d92a280f103b8f85bed9cf14ea9b (diff) | |
download | opie-b59a0401cf09669e05d3e68dd289ed0bb25ced6e.zip opie-b59a0401cf09669e05d3e68dd289ed0bb25ced6e.tar.gz opie-b59a0401cf09669e05d3e68dd289ed0bb25ced6e.tar.bz2 |
Make it a bitfield and add a d pointer
-rw-r--r-- | libopie/colorpopupmenu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libopie/colorpopupmenu.h b/libopie/colorpopupmenu.h index 1206ac3..1a6ab08 100644 --- a/libopie/colorpopupmenu.h +++ b/libopie/colorpopupmenu.h | |||
@@ -45,24 +45,28 @@ public: | |||
45 | 45 | ||
46 | signals: | 46 | signals: |
47 | void selected(const QColor&); | 47 | void selected(const QColor&); |
48 | 48 | ||
49 | private: | 49 | private: |
50 | QColor m_color; | 50 | QColor m_color; |
51 | bool m_active; | 51 | bool m_active : 1; |
52 | class ColorPanelButtonPrivate; | ||
53 | ColorPanelButtonPrivate *d; | ||
52 | }; | 54 | }; |
53 | 55 | ||
54 | class ColorPopupMenu : public QPopupMenu | 56 | class ColorPopupMenu : public QPopupMenu |
55 | { | 57 | { |
56 | Q_OBJECT | 58 | Q_OBJECT |
57 | 59 | ||
58 | public: | 60 | public: |
59 | ColorPopupMenu( const QColor& color, QWidget* parent = 0, const char* name = 0 ); | 61 | ColorPopupMenu( const QColor& color, QWidget* parent = 0, const char* name = 0 ); |
60 | ~ColorPopupMenu(); | 62 | ~ColorPopupMenu(); |
61 | 63 | ||
62 | private: | 64 | private: |
65 | class ColorPopupMenuPrivate; | ||
66 | ColorPopupMenuPrivate *d; | ||
63 | QColor m_color; | 67 | QColor m_color; |
64 | QWidget* colorPanel; | 68 | QWidget* colorPanel; |
65 | QGridLayout* colorLayout; | 69 | QGridLayout* colorLayout; |
66 | 70 | ||
67 | void addColor( const QColor& color, int row, int col ); | 71 | void addColor( const QColor& color, int row, int col ); |
68 | 72 | ||