summaryrefslogtreecommitdiffabout
path: root/microkde
Side-by-side diff
Diffstat (limited to 'microkde') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdialogbase.cpp5
-rw-r--r--microkde/kdialogbase.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp
index 11635e1..d5c7e61 100644
--- a/microkde/kdialogbase.cpp
+++ b/microkde/kdialogbase.cpp
@@ -286,6 +286,11 @@ void KDialogBase::slotClose()
reject();
}
+void KDialogBase::accept ()
+{
+ emit acceptClicked();
+ KDialog::accept();
+}
void KDialogBase::slotUser1()
{
emit user1Clicked();
diff --git a/microkde/kdialogbase.h b/microkde/kdialogbase.h
index a2fc2dc..17c186b 100644
--- a/microkde/kdialogbase.h
+++ b/microkde/kdialogbase.h
@@ -107,6 +107,8 @@ class KDialogBase : public KDialog
void closeClicked();
void defaultClicked();
+ void acceptClicked();
+
protected slots:
virtual void slotOk();
virtual void slotApply();
@@ -114,7 +116,7 @@ class KDialogBase : public KDialog
virtual void slotClose();
virtual void slotUser1();
virtual void slotUser2();
-
+ virtual void accept ();
protected:
QPushButton *findButton( ButtonCode );
QTabWidget *tabWidget();