summaryrefslogtreecommitdiffabout
path: root/microkde/kdialogbase.cpp
Unidiff
Diffstat (limited to 'microkde/kdialogbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdialogbase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp
index 2251207..489474a 100644
--- a/microkde/kdialogbase.cpp
+++ b/microkde/kdialogbase.cpp
@@ -230,61 +230,62 @@ void KDialogBase::enableButtonApply( bool state )
230 230
231void KDialogBase::showButton( ButtonCode id, bool show ) 231void KDialogBase::showButton( ButtonCode id, bool show )
232{ 232{
233 QPushButton *button = findButton( id ); 233 QPushButton *button = findButton( id );
234 if ( button ) { 234 if ( button ) {
235 if ( show ) button->show(); 235 if ( show ) button->show();
236 else button->hide(); 236 else button->hide();
237 } 237 }
238} 238}
239 239
240int KDialogBase::pageIndex( QWidget *widget ) const 240int KDialogBase::pageIndex( QWidget *widget ) const
241{ 241{
242 return 0; 242 return 0;
243} 243}
244 244
245 245
246bool KDialogBase::showPage( int index ) 246bool KDialogBase::showPage( int index )
247{ 247{
248 tabWidget()->setCurrentPage( index );return false; 248 tabWidget()->setCurrentPage( index );return false;
249} 249}
250 250
251QFrame *KDialogBase::plainPage() 251QFrame *KDialogBase::plainPage()
252{ 252{
253 if ( !mPlainPage ) { 253 if ( !mPlainPage ) {
254 mPlainPage = new QFrame( this ); 254 mPlainPage = new QFrame( this );
255 setMainWidget( mPlainPage ); 255 setMainWidget( mPlainPage );
256 } 256 }
257 return mPlainPage; 257 return mPlainPage;
258} 258}
259 259
260void KDialogBase::slotOk() 260void KDialogBase::slotOk()
261{ 261{
262 qDebug("KDialogBase::slotOk");
262 emit okClicked(); 263 emit okClicked();
263 QDialog::accept(); 264 accept();
264} 265}
265 266
266void KDialogBase::slotApply() 267void KDialogBase::slotApply()
267{ 268{
268 emit applyClicked(); 269 emit applyClicked();
269} 270}
270 271
271void KDialogBase::slotCancel() 272void KDialogBase::slotCancel()
272{ 273{
273 emit cancelClicked(); 274 emit cancelClicked();
274 reject(); 275 reject();
275} 276}
276 277
277void KDialogBase::slotClose() 278void KDialogBase::slotClose()
278{ 279{
279 emit closeClicked(); 280 emit closeClicked();
280 reject(); 281 reject();
281} 282}
282 283
283void KDialogBase::slotUser1() 284void KDialogBase::slotUser1()
284{ 285{
285 emit user1Clicked(); 286 emit user1Clicked();
286} 287}
287void KDialogBase::slotUser2() 288void KDialogBase::slotUser2()
288{ 289{
289 emit user2Clicked(); 290 emit user2Clicked();
290} 291}