summaryrefslogtreecommitdiff
path: root/library/qpemessagebox.cpp
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /library/qpemessagebox.cpp
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
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 @@
1#include "qpemessagebox.h"
2#include <qmessagebox.h>
3
4bool QPEMessageBox::confirmDelete( QWidget *parent, const QString & caption,
5 const QString & object )
6{
7 QString msg = QObject::tr("Are you sure you want to delete\n %1?").arg( object );
8 int r = QMessageBox::warning( parent, caption, msg, QMessageBox::Yes,
9 QMessageBox::No|QMessageBox::Default|
10 QMessageBox::Escape, 0 );
11
12 return r == QMessageBox::Yes;
13}