author | leseb <leseb> | 2002-05-02 10:46:37 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-05-02 10:46:37 (UTC) |
commit | 9b22572f07ec954e9dda33e99f7fc681e3c50827 (patch) (unidiff) | |
tree | 7c1371e99fffb4bde17e35288c8584c74a34a151 | |
parent | 9a3f2b67dab939993a56db83c1d473fc7ae6d57a (diff) | |
download | opie-9b22572f07ec954e9dda33e99f7fc681e3c50827.zip opie-9b22572f07ec954e9dda33e99f7fc681e3c50827.tar.gz opie-9b22572f07ec954e9dda33e99f7fc681e3c50827.tar.bz2 |
Fix translation in message boxes
-rw-r--r-- | noncore/graphics/drawpad/drawpadcanvas.cpp | 11 |
1 files changed, 10 insertions, 1 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,11 +346,14 @@ void DrawPadCanvas::backupPage() | |||
346 | 346 | ||
347 | void DrawPadCanvas::deleteAll() | 347 | void DrawPadCanvas::deleteAll() |
348 | { | 348 | { |
349 | QMessageBox messageBox(tr("Delete All"), tr("Do you want to delete\nall the pages?"), | 349 | QMessageBox messageBox(tr("Delete All"), tr("Do you want to delete\nall the pages?"), |
350 | QMessageBox::Information, QMessageBox::Yes, | 350 | QMessageBox::Information, QMessageBox::Yes, |
351 | QMessageBox::No | QMessageBox::Escape | QMessageBox::Default, | 351 | QMessageBox::No | QMessageBox::Escape | QMessageBox::Default, |
352 | QMessageBox::NoButton, this); | 352 | QMessageBox::NoButton, this); |
353 | 353 | ||
354 | messageBox.setButtonText(QMessageBox::Yes, tr("Yes")); | ||
355 | messageBox.setButtonText(QMessageBox::No, tr("No")); | ||
356 | |||
354 | if (messageBox.exec() == QMessageBox::Yes) { | 357 | if (messageBox.exec() == QMessageBox::Yes) { |
355 | m_pages.clear(); | 358 | m_pages.clear(); |
356 | 359 | ||
@@ -398,6 +401,9 @@ void DrawPadCanvas::clearPage() | |||
398 | QMessageBox::No | QMessageBox::Escape | QMessageBox::Default, | 401 | QMessageBox::No | QMessageBox::Escape | QMessageBox::Default, |
399 | QMessageBox::NoButton, this); | 402 | QMessageBox::NoButton, this); |
400 | 403 | ||
404 | messageBox.setButtonText(QMessageBox::Yes, tr("Yes")); | ||
405 | messageBox.setButtonText(QMessageBox::No, tr("No")); | ||
406 | |||
401 | if (messageBox.exec() == QMessageBox::Yes) { | 407 | if (messageBox.exec() == QMessageBox::Yes) { |
402 | m_pages.current()->fill(Qt::white); | 408 | m_pages.current()->fill(Qt::white); |
403 | 409 | ||
@@ -412,6 +418,9 @@ void DrawPadCanvas::deletePage() | |||
412 | QMessageBox::No | QMessageBox::Escape | QMessageBox::Default, | 418 | QMessageBox::No | QMessageBox::Escape | QMessageBox::Default, |
413 | QMessageBox::NoButton, this); | 419 | QMessageBox::NoButton, this); |
414 | 420 | ||
421 | messageBox.setButtonText(QMessageBox::Yes, tr("Yes")); | ||
422 | messageBox.setButtonText(QMessageBox::No, tr("No")); | ||
423 | |||
415 | if (messageBox.exec() == QMessageBox::Yes) { | 424 | if (messageBox.exec() == QMessageBox::Yes) { |
416 | m_pages.remove(m_pages.current()); | 425 | m_pages.remove(m_pages.current()); |
417 | 426 | ||