summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index 71c9695..139c752 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -33,16 +33,17 @@
#include <opie/colordialog.h>
#include <opie/colorpopupmenu.h>
#include <qpe/applnk.h>
#include <qpe/config.h>
#include <qpe/global.h>
-#include <qmenubar.h>
#include <qpe/qpetoolbar.h>
#include <qpe/resource.h>
+#include <qpe/qpeapplication.h>
+#include <qmenubar.h>
#include <qaction.h>
#include <qfile.h>
#include <qmessagebox.h>
#include <qspinbox.h>
#include <qtoolbutton.h>
#include <qtooltip.h>
@@ -598,15 +599,13 @@ void DrawPad::deleteAll()
}
void DrawPad::importPage()
{
ImportDialog importDialog(this);
- importDialog.showMaximized();
-
- if (importDialog.exec() == QDialog::Accepted) {
+ if ( QPEApplication::execDialog( &importDialog ) == QDialog::Accepted ) {
const DocLnk* docLnk = importDialog.selected();
if (docLnk) {
m_pDrawPadCanvas->importPage(docLnk->file());
delete docLnk;
}
@@ -614,25 +613,23 @@ void DrawPad::importPage()
}
void DrawPad::exportPage()
{
ExportDialog exportDialog(m_pDrawPadCanvas->pagePosition(), m_pDrawPadCanvas->pageCount(), this);
- exportDialog.showMaximized();
-
- if (exportDialog.exec() == QDialog::Accepted) {
+ if ( QPEApplication::execDialog( &exportDialog ) == QDialog::Accepted ) {
m_pDrawPadCanvas->exportPage(exportDialog.selectedFromPage(), exportDialog.selectedToPage(),
exportDialog.selectedName(), exportDialog.selectedFormat());
}
}
void DrawPad::thumbnailView()
{
ThumbnailView thumbnailView(this, m_pDrawPadCanvas, this);
- thumbnailView.showMaximized();
+ QPEApplication::showWidget( &thumbnailView );
thumbnailView.exec();
}
void DrawPad::pageInformation()
{
PageInformationDialog pageInformationDialog(m_pDrawPadCanvas->currentPage());