summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/drawpad.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/drawpad.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index 369e7f0..45fb886 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -20,12 +20,13 @@
20#include "filledellipsetool.h" 20#include "filledellipsetool.h"
21#include "filledrectangletool.h" 21#include "filledrectangletool.h"
22#include "filltool.h" 22#include "filltool.h"
23#include "importdialog.h" 23#include "importdialog.h"
24#include "linetool.h" 24#include "linetool.h"
25#include "newpagedialog.h" 25#include "newpagedialog.h"
26#include "page.h"
26#include "pageinformationdialog.h" 27#include "pageinformationdialog.h"
27#include "pointtool.h" 28#include "pointtool.h"
28#include "rectangletool.h" 29#include "rectangletool.h"
29#include "texttool.h" 30#include "texttool.h"
30#include "thumbnailview.h" 31#include "thumbnailview.h"
31 32
@@ -278,14 +279,14 @@ void DrawPad::newPage()
278{ 279{
279 QRect rect = m_pDrawPadCanvas->contentsRect(); 280 QRect rect = m_pDrawPadCanvas->contentsRect();
280 281
281 NewPageDialog newPageDialog(rect.width(), rect.height(), m_pen.color(), m_brush.color(), this); 282 NewPageDialog newPageDialog(rect.width(), rect.height(), m_pen.color(), m_brush.color(), this);
282 283
283 if (newPageDialog.exec() == QDialog::Accepted) { 284 if (newPageDialog.exec() == QDialog::Accepted) {
284 m_pDrawPadCanvas->newPage(newPageDialog.selectedWidth(), newPageDialog.selectedHeight(), 285 m_pDrawPadCanvas->newPage(newPageDialog.selectedTitle(), newPageDialog.selectedWidth(),
285 newPageDialog.selectedColor()); 286 newPageDialog.selectedHeight(), newPageDialog.selectedColor());
286 } 287 }
287} 288}
288 289
289void DrawPad::clearPage() 290void DrawPad::clearPage()
290{ 291{
291 QMessageBox messageBox(tr("Clear Page"), tr("Do you want to clear\nthe current page?"), 292 QMessageBox messageBox(tr("Clear Page"), tr("Do you want to clear\nthe current page?"),
@@ -601,8 +602,9 @@ void DrawPad::thumbnailView()
601 602
602void DrawPad::pageInformation() 603void DrawPad::pageInformation()
603{ 604{
604 PageInformationDialog pageInformationDialog(m_pDrawPadCanvas->currentPage()); 605 PageInformationDialog pageInformationDialog(m_pDrawPadCanvas->currentPage());
605 606
606 if (pageInformationDialog.exec() == QDialog::Accepted) { 607 if (pageInformationDialog.exec() == QDialog::Accepted) {
608 m_pDrawPadCanvas->currentPage()->setTitle(pageInformationDialog.selectedTitle());
607 } 609 }
608} 610}