summaryrefslogtreecommitdiff
path: root/library/qpemessagebox.cpp
Side-by-side diff
Diffstat (limited to 'library/qpemessagebox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpemessagebox.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/library/qpemessagebox.cpp b/library/qpemessagebox.cpp
new file mode 100644
index 0000000..02db760
--- a/dev/null
+++ b/library/qpemessagebox.cpp
@@ -0,0 +1,13 @@
+#include "qpemessagebox.h"
+#include <qmessagebox.h>
+
+bool QPEMessageBox::confirmDelete( QWidget *parent, const QString & caption,
+ const QString & object )
+{
+ QString msg = QObject::tr("Are you sure you want to delete\n %1?").arg( object );
+ int r = QMessageBox::warning( parent, caption, msg, QMessageBox::Yes,
+ QMessageBox::No|QMessageBox::Default|
+ QMessageBox::Escape, 0 );
+
+ return r == QMessageBox::Yes;
+}