-rw-r--r-- | microkde/kdialogbase.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp index d5c7e61..a40bad6 100644 --- a/microkde/kdialogbase.cpp +++ b/microkde/kdialogbase.cpp | |||
@@ -2,5 +2,9 @@ | |||
2 | #include <qpushbutton.h> | 2 | #include <qpushbutton.h> |
3 | #include <qlayout.h> | 3 | #include <qlayout.h> |
4 | #include <qframe.h> | 4 | #include <q3frame.h> |
5 | //Added by qt3to4: | ||
6 | #include <QPixmap> | ||
7 | #include <Q3HBoxLayout> | ||
8 | #include <Q3VBoxLayout> | ||
5 | 9 | ||
6 | 10 | ||
@@ -136,5 +140,5 @@ void KDialogBase::initLayout() | |||
136 | 140 | ||
137 | delete mTopLayout; | 141 | delete mTopLayout; |
138 | mTopLayout = new QVBoxLayout( this ); | 142 | mTopLayout = new Q3VBoxLayout( this ); |
139 | mTopLayout->setMargin( marginHintSmall() ); | 143 | mTopLayout->setMargin( marginHintSmall() ); |
140 | mTopLayout->setSpacing( spacingHintSmall() ); | 144 | mTopLayout->setSpacing( spacingHintSmall() ); |
@@ -142,5 +146,5 @@ void KDialogBase::initLayout() | |||
142 | mTopLayout->addWidget( mMainWidget ); | 146 | mTopLayout->addWidget( mMainWidget ); |
143 | 147 | ||
144 | QBoxLayout *buttonLayout = new QHBoxLayout; | 148 | Q3BoxLayout *buttonLayout = new Q3HBoxLayout; |
145 | mTopLayout->addLayout( buttonLayout ); | 149 | mTopLayout->addLayout( buttonLayout ); |
146 | 150 | ||
@@ -156,13 +160,13 @@ void KDialogBase::initLayout() | |||
156 | } | 160 | } |
157 | 161 | ||
158 | QFrame *KDialogBase::addPage( const QString &name ) | 162 | Q3Frame *KDialogBase::addPage( const QString &name ) |
159 | { | 163 | { |
160 | // kdDebug() << "KDialogBase::addPage(): " << name << endl; | 164 | // kdDebug() << "KDialogBase::addPage(): " << name << endl; |
161 | QFrame *frame = new QFrame( tabWidget() ); | 165 | Q3Frame *frame = new Q3Frame( tabWidget() ); |
162 | tabWidget()->addTab( frame, name ); | 166 | tabWidget()->addTab( frame, name ); |
163 | return frame; | 167 | return frame; |
164 | } | 168 | } |
165 | 169 | ||
166 | QFrame *KDialogBase::addPage( const QString &name, int, const QPixmap & ) | 170 | Q3Frame *KDialogBase::addPage( const QString &name, int, const QPixmap & ) |
167 | { | 171 | { |
168 | return addPage( name ); | 172 | return addPage( name ); |
@@ -255,8 +259,8 @@ bool KDialogBase::showPage( int index ) | |||
255 | } | 259 | } |
256 | 260 | ||
257 | QFrame *KDialogBase::plainPage() | 261 | Q3Frame *KDialogBase::plainPage() |
258 | { | 262 | { |
259 | if ( !mPlainPage ) { | 263 | if ( !mPlainPage ) { |
260 | mPlainPage = new QFrame( this ); | 264 | mPlainPage = new Q3Frame( this ); |
261 | setMainWidget( mPlainPage ); | 265 | setMainWidget( mPlainPage ); |
262 | } | 266 | } |