From b81bdd12cadbae5a3ab5a7f1f689bb4ae45cf315 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 25 Jun 2005 09:40:16 +0000 Subject: fixxx --- (limited to 'korganizer/kofilterview.h') diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 5495d60..b57a6e9 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -148,6 +149,34 @@ private slots : void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber , b); } }; +class KOCalRadioButton : public QRadioButton +{ + Q_OBJECT + public: + KOCalRadioButton( QWidget *parent=0, const char *name=0 ) : + QRadioButton( parent, name) + { + connect( this, SIGNAL( toggled ( bool ) ), + SLOT( bottonClicked( bool ) )); + mNumber = -1; + setFocusPolicy(NoFocus); + //setMaximumWidth( 10 ); + + } + void setNum ( int num ) {mNumber = num; } + signals: + void selectNum ( int, bool ); +private: + int mNumber; + void keyPressEvent ( QKeyEvent * e ) + { + e->ignore(); + } + +private slots : + void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber , b); } +}; + class KOFilterView : public KOFilterView_base @@ -194,6 +223,7 @@ class KOCalEditView : public QScrollView void deleteCal(int) ; void infoCal(int) ; void readConfig(); + void defaultInfo(); signals: void alarmEnabled ( int cal, bool enable ); void calendarEnabled ( int cal, bool enable ); @@ -206,7 +236,7 @@ class KOCalEditView : public QScrollView private: QWidget *mw; void toggleList ( QPtrList ); - QPtrList mStdandardB; + QPtrList mStdandardB; QPtrList mEnabledB; QPtrList mAlarmB; QPtrList mROB; -- cgit v0.9.0.2