summaryrefslogtreecommitdiff
authorar <ar>2004-02-14 16:58:36 (UTC)
committer ar <ar>2004-02-14 16:58:36 (UTC)
commitc6bca75c479533d064a782a5f27d3dfb3aa1c042 (patch) (side-by-side diff)
tree69abff2d3ac0a763b203f1551b33a3cc38ff0dcc
parent1ab6282d6869ca200133a0e47323ae9a760b3400 (diff)
downloadopie-c6bca75c479533d064a782a5f27d3dfb3aa1c042.zip
opie-c6bca75c479533d064a782a5f27d3dfb3aa1c042.tar.gz
opie-c6bca75c479533d064a782a5f27d3dfb3aa1c042.tar.bz2
improve support for BigScreen
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
@@ -35,12 +35,13 @@
#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>
@@ -600,11 +601,9 @@ 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());
@@ -616,11 +615,9 @@ 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());
}
}
@@ -628,9 +625,9 @@ void DrawPad::exportPage()
void DrawPad::thumbnailView()
{
ThumbnailView thumbnailView(this, m_pDrawPadCanvas, this);
- thumbnailView.showMaximized();
+ QPEApplication::showWidget( &thumbnailView );
thumbnailView.exec();
}
void DrawPad::pageInformation()