author | zautrix <zautrix> | 2005-06-11 09:22:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-11 09:22:29 (UTC) |
commit | d4501288ba7414ba89a791dd2c306e9f74eeb3fa (patch) (unidiff) | |
tree | a99b30c87947a22f9c2da3ab5426f4e5ed8de9ab /korganizer/kofilterview.h | |
parent | b214921b2072079ec59a87ac84231f83532009d5 (diff) | |
download | kdepimpi-d4501288ba7414ba89a791dd2c306e9f74eeb3fa.zip kdepimpi-d4501288ba7414ba89a791dd2c306e9f74eeb3fa.tar.gz kdepimpi-d4501288ba7414ba89a791dd2c306e9f74eeb3fa.tar.bz2 |
fixx
-rw-r--r-- | korganizer/kofilterview.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index d434c52..060108f 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #define KOFILTERVIEW_H | 24 | #define KOFILTERVIEW_H |
25 | 25 | ||
26 | #include <qstring.h> | 26 | #include <qstring.h> |
27 | #include <qcheckbox.h> | ||
28 | #include <qpushbutton.h> | ||
27 | #include <kconfig.h> | 29 | #include <kconfig.h> |
28 | #include "kofilterview_base.h" | 30 | #include "kofilterview_base.h" |
29 | 31 | ||
@@ -78,6 +80,54 @@ class KOCalEditView : public QWidget | |||
78 | private: | 80 | private: |
79 | }; | 81 | }; |
80 | 82 | ||
83 | class KOCalButton : public QPushButton | ||
84 | { | ||
85 | Q_OBJECT | ||
86 | public: | ||
87 | KOCalButton( QWidget *parent=0, const char *name=0 ) : | ||
88 | QPushButton( parent, name) | ||
89 | { | ||
90 | connect( this, SIGNAL( clicked() ), | ||
91 | SLOT( bottonClicked() )); | ||
92 | mNumber = -1; | ||
93 | } | ||
94 | void setNum ( int num ) {mNumber = num; } | ||
95 | signals: | ||
96 | void selectNum ( int ); | ||
97 | private: | ||
98 | int mNumber; | ||
99 | void keyPressEvent ( QKeyEvent * e ) | ||
100 | { | ||
101 | e->ignore(); | ||
102 | } | ||
103 | |||
104 | private slots : | ||
105 | void bottonClicked() { if ( mNumber > 0 ) emit selectNum ( mNumber ); } | ||
106 | }; | ||
107 | class KOCalCheckButton : public QCheckBox | ||
108 | { | ||
109 | Q_OBJECT | ||
110 | public: | ||
111 | KOCalCheckButton( QWidget *parent=0, const char *name=0 ) : | ||
112 | QCheckBox( parent, name) | ||
113 | { | ||
114 | connect( this, SIGNAL( toggled ( bool ) ), | ||
115 | SLOT( bottonClicked( bool ) )); | ||
116 | mNumber = -1; | ||
117 | } | ||
118 | void setNum ( int num ) {mNumber = num; } | ||
119 | signals: | ||
120 | void selectNum ( int, bool ); | ||
121 | private: | ||
122 | int mNumber; | ||
123 | void keyPressEvent ( QKeyEvent * e ) | ||
124 | { | ||
125 | e->ignore(); | ||
126 | } | ||
127 | |||
128 | private slots : | ||
129 | void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber , b); } | ||
130 | }; | ||
81 | 131 | ||
82 | 132 | ||
83 | #endif // KOFILTERVIEW_H | 133 | #endif // KOFILTERVIEW_H |