From a08aff328d4393031d5ba7d622c2b05705a89d73 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 04 Jul 2007 11:23:42 +0000 Subject: initial public commit of qt4 port --- (limited to 'korganizer/kofilterview.h') diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 0dd423a..f1bbab4 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h @@ -26,12 +26,18 @@ #include #include #include +#include #include #include #include #include -#include +#include #include +//Added by qt3to4: +#include +#include +#include +#include #include #include "kofilterview_base.h" @@ -42,7 +48,7 @@ #include #include -class QGridLayout; +class Q3GridLayout; using namespace KCal; @@ -54,7 +60,7 @@ class KONewCalPrefs : public QDialog QDialog( parent, name, true ) { setCaption( i18n("Add new Calendar") ); - QVBoxLayout* lay = new QVBoxLayout( this ); + Q3VBoxLayout* lay = new Q3VBoxLayout( this ); lay->setSpacing( 3 ); lay->setMargin( 3 ); QLabel * lab = new QLabel( i18n("Name of new calendar:"), this ); @@ -110,7 +116,7 @@ class KOCalButton : public QPushButton connect( this, SIGNAL( clicked() ), SLOT( bottonClicked() )); mNumber = -1; - setFocusPolicy(NoFocus); + setFocusPolicy(Qt::NoFocus); } void setNum ( int num ) {mNumber = num; } signals: @@ -135,7 +141,7 @@ class KOCalCheckButton : public QCheckBox connect( this, SIGNAL( toggled ( bool ) ), SLOT( bottonClicked( bool ) )); mNumber = -1; - setFocusPolicy(NoFocus); + setFocusPolicy(Qt::NoFocus); //setMaximumWidth( 10 ); } @@ -163,7 +169,7 @@ class KOCalRadioButton : public QRadioButton connect( this, SIGNAL( toggled ( bool ) ), SLOT( bottonClicked( bool ) )); mNumber = -1; - setFocusPolicy(NoFocus); + setFocusPolicy(Qt::NoFocus); //setMaximumWidth( 10 ); } @@ -188,7 +194,7 @@ class KOFilterView : public KOFilterView_base { Q_OBJECT public: - KOFilterView(QPtrList *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0); + KOFilterView(Q3PtrList *filterList,QWidget* parent=0,const char* name=0, Qt::WFlags fl=0); ~KOFilterView(); void updateFilters(); @@ -204,10 +210,10 @@ class KOFilterView : public KOFilterView_base void editFilters(); private: - QPtrList *mFilters; + Q3PtrList *mFilters; }; -class KOCalEditView : public QScrollView +class KOCalEditView : public Q3ScrollView { Q_OBJECT public: @@ -244,12 +250,12 @@ class KOCalEditView : public QScrollView private: QWidget *mw; - void toggleList ( QPtrList , bool b = true ); - QPtrList mStdandardB; - QPtrList mEnabledB; - QPtrList mAlarmB; - QPtrList mROB; - QGridLayout* mainLayout; + void toggleList ( Q3PtrList , bool b = true ); + Q3PtrList mStdandardB; + Q3PtrList mEnabledB; + Q3PtrList mAlarmB; + Q3PtrList mROB; + Q3GridLayout* mainLayout; }; -- cgit v0.9.0.2