-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 @@ -347,9 +347,12 @@ void DrawPadCanvas::backupPage() void DrawPadCanvas::deleteAll() { - QMessageBox messageBox(tr("Delete All"), tr("Do you want to delete\nall the pages?"), + 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(); @@ -399,4 +402,7 @@ void DrawPadCanvas::clearPage() 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); @@ -413,4 +419,7 @@ void DrawPadCanvas::deletePage() 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()); |