summaryrefslogtreecommitdiff
authorleseb <leseb>2002-05-02 10:46:37 (UTC)
committer leseb <leseb>2002-05-02 10:46:37 (UTC)
commit9b22572f07ec954e9dda33e99f7fc681e3c50827 (patch) (side-by-side diff)
tree7c1371e99fffb4bde17e35288c8584c74a34a151
parent9a3f2b67dab939993a56db83c1d473fc7ae6d57a (diff)
downloadopie-9b22572f07ec954e9dda33e99f7fc681e3c50827.zip
opie-9b22572f07ec954e9dda33e99f7fc681e3c50827.tar.gz
opie-9b22572f07ec954e9dda33e99f7fc681e3c50827.tar.bz2
Fix translation in message boxes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpadcanvas.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/drawpadcanvas.cpp b/noncore/graphics/drawpad/drawpadcanvas.cpp
index 65b3dea..9f1e50b 100644
--- a/noncore/graphics/drawpad/drawpadcanvas.cpp
+++ b/noncore/graphics/drawpad/drawpadcanvas.cpp
@@ -346,16 +346,19 @@ void DrawPadCanvas::backupPage()
void DrawPadCanvas::deleteAll()
{
QMessageBox messageBox(tr("Delete All"), tr("Do you want to delete\nall the pages?"),
QMessageBox::Information, QMessageBox::Yes,
QMessageBox::No | QMessageBox::Escape | QMessageBox::Default,
QMessageBox::NoButton, this);
+ messageBox.setButtonText(QMessageBox::Yes, tr("Yes"));
+ messageBox.setButtonText(QMessageBox::No, tr("No"));
+
if (messageBox.exec() == QMessageBox::Yes) {
m_pages.clear();
m_pages.append(new QPixmap(contentsRect().size()));
m_pages.current()->fill(Qt::white);
m_pageBackups.clear();
m_pageBackups.append(new QPixmap(*(m_pages.current())));
@@ -393,30 +396,36 @@ void DrawPadCanvas::newPage()
void DrawPadCanvas::clearPage()
{
QMessageBox messageBox(tr("Clear Page"), tr("Do you want to clear\nthe current page?"),
QMessageBox::Information, QMessageBox::Yes,
QMessageBox::No | QMessageBox::Escape | QMessageBox::Default,
QMessageBox::NoButton, this);
+ messageBox.setButtonText(QMessageBox::Yes, tr("Yes"));
+ messageBox.setButtonText(QMessageBox::No, tr("No"));
+
if (messageBox.exec() == QMessageBox::Yes) {
m_pages.current()->fill(Qt::white);
viewport()->update();
}
}
void DrawPadCanvas::deletePage()
{
QMessageBox messageBox(tr("Delete Page"), tr("Do you want to delete\nthe current page?"),
QMessageBox::Information, QMessageBox::Yes,
QMessageBox::No | QMessageBox::Escape | QMessageBox::Default,
QMessageBox::NoButton, this);
+ messageBox.setButtonText(QMessageBox::Yes, tr("Yes"));
+ messageBox.setButtonText(QMessageBox::No, tr("No"));
+
if (messageBox.exec() == QMessageBox::Yes) {
m_pages.remove(m_pages.current());
if (m_pages.isEmpty()) {
m_pages.append(new QPixmap(contentsRect().size()));
m_pages.current()->fill(Qt::white);
}