summaryrefslogtreecommitdiffabout
path: root/microkde
Side-by-side diff
Diffstat (limited to 'microkde') (more/less context) (ignore 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
@@ -287,4 +287,9 @@ void KDialogBase::slotClose()
}
+void KDialogBase::accept ()
+{
+ emit acceptClicked();
+ KDialog::accept();
+}
void KDialogBase::slotUser1()
{
diff --git a/microkde/kdialogbase.h b/microkde/kdialogbase.h
index a2fc2dc..17c186b 100644
--- a/microkde/kdialogbase.h
+++ b/microkde/kdialogbase.h
@@ -108,4 +108,6 @@ class KDialogBase : public KDialog
void defaultClicked();
+ void acceptClicked();
+
protected slots:
virtual void slotOk();
@@ -115,5 +117,5 @@ class KDialogBase : public KDialog
virtual void slotUser1();
virtual void slotUser2();
-
+ virtual void accept ();
protected:
QPushButton *findButton( ButtonCode );