author | zautrix <zautrix> | 2005-06-11 09:22:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-11 09:22:29 (UTC) |
commit | d4501288ba7414ba89a791dd2c306e9f74eeb3fa (patch) (side-by-side diff) | |
tree | a99b30c87947a22f9c2da3ab5426f4e5ed8de9ab /korganizer | |
parent | b214921b2072079ec59a87ac84231f83532009d5 (diff) | |
download | kdepimpi-d4501288ba7414ba89a791dd2c306e9f74eeb3fa.zip kdepimpi-d4501288ba7414ba89a791dd2c306e9f74eeb3fa.tar.gz kdepimpi-d4501288ba7414ba89a791dd2c306e9f74eeb3fa.tar.bz2 |
fixx
-rw-r--r-- | korganizer/calendarview.cpp | 4 | ||||
-rw-r--r-- | korganizer/kofilterview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 50 |
3 files changed, 54 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index ea100d1..8d992b9 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -473,2 +473,3 @@ void CalendarView::init() mFilterView->hide(); + mCalEditView->hide(); QWidget *rightBox = new QWidget( mMainFrame ); @@ -3911,5 +3912,6 @@ void CalendarView::showFilter(bool visible) { +#if 0 if (visible) mCalEditView->show(); else mCalEditView->hide(); -#if 0 +#else if (visible) mFilterView->show(); diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 1bfe4dd..dc6237b 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp @@ -140,3 +140,3 @@ KOCalEditView::KOCalEditView(QWidget* parent, mainLayout->addWidget( addBut,0,5 ); - addBut->setPixmap ( SmallIcon("trash")); + addBut->setPixmap ( SmallIcon("minus")); connect(addBut,SIGNAL(clicked()),SLOT(deleteAll())); diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index d434c52..060108f 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h @@ -26,2 +26,4 @@ #include <qstring.h> +#include <qcheckbox.h> +#include <qpushbutton.h> #include <kconfig.h> @@ -80,2 +82,50 @@ class KOCalEditView : public QWidget +class KOCalButton : public QPushButton +{ + Q_OBJECT + public: + KOCalButton( QWidget *parent=0, const char *name=0 ) : + QPushButton( parent, name) + { + connect( this, SIGNAL( clicked() ), + SLOT( bottonClicked() )); + mNumber = -1; + } + void setNum ( int num ) {mNumber = num; } + signals: + void selectNum ( int ); +private: + int mNumber; + void keyPressEvent ( QKeyEvent * e ) + { + e->ignore(); + } + +private slots : + void bottonClicked() { if ( mNumber > 0 ) emit selectNum ( mNumber ); } +}; +class KOCalCheckButton : public QCheckBox +{ + Q_OBJECT + public: + KOCalCheckButton( QWidget *parent=0, const char *name=0 ) : + QCheckBox( parent, name) + { + connect( this, SIGNAL( toggled ( bool ) ), + SLOT( bottonClicked( bool ) )); + mNumber = -1; + } + 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); } +}; |