summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/scqtfileedit.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/scqtfileedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/zsafe/scqtfileedit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/apps/zsafe/scqtfileedit.cpp b/noncore/apps/zsafe/scqtfileedit.cpp
index effd86b..7a3d906 100644
--- a/noncore/apps/zsafe/scqtfileedit.cpp
+++ b/noncore/apps/zsafe/scqtfileedit.cpp
@@ -7,48 +7,50 @@
***************************************************************************/
/* $Id$ */
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "qdir.h"
#include "qdialog.h"
#include "qpixmap.h"
#include "qlistview.h"
#include "qlineedit.h"
#include "qtoolbutton.h"
#include "scqtfileedit.h"
+#include <qpe/qpeapplication.h>
+
// #define DEBUGFILEEDIT
/* XPM */
static const char* const file_xpm[]={
"16 16 5 1",
". c #7f7f7f",
"# c None",
"c c #000000",
"b c #bfbfbf",
"a c #ffffff",
"################",
"..........######",
".aaaaaaaab.#####",
".aaaaaaaaba.####",
".aaaaaaaacccc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
".aaaaaaaaaabc###",
@@ -137,49 +139,49 @@ ScQtFileEditDlg::ScQtFileEditDlg( QWidget *parent, const char *name,
{
// ListView->setRootIsDecorated ( TRUE );
#ifdef DEBUGFILEEDIT
printf ("\nScQtFileEditDlg:: constructor name=%s", name );
printf ("\n path=%s", (const char *)path );
printf ("\n filter=%s", (const char *)filter );
printf ("\n parent=%p", parent );
fflush(stdout);
#endif
bpath = path;
bfilter = filter;
exflag = false;
ListView->setAllColumnsShowFocus( TRUE );
ListView->setColumnAlignment( 1, Qt::AlignRight );
fileIcon = new QPixmap( (const char **)file_xpm);
dirIcon = new QPixmap( (const char **)closed_xpm);
linkIcon = new QPixmap( (const char **)link_file_xpm);
cdToParentIcon = new QPixmap( (const char **)cdtoparent_xpm);
#ifdef QWS
- showMaximized();
+ QPEApplication::execDialog( this );
#endif
mkdirflag = false;
MkDirButton->setEnabled( false );
initDirCombo( bpath );
initTypeCombo( bfilter );
dirstr = tr("dir");
filestr = tr("file");
linkstr = tr("link");
rFlag = false;
showTimer.stop();
connect( &showTimer, SIGNAL(timeout()), SLOT( slotShowDir() ) );
fmode = QDir::All;
fnfilter = false;
fsorting = false;
}
ScQtFileEditDlg::~ScQtFileEditDlg()