author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (side-by-side diff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /library/qpemessagebox.cpp | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
-rw-r--r-- | library/qpemessagebox.cpp | 13 |
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; +} |