author | ar <ar> | 2004-02-14 16:06:45 (UTC) |
---|---|---|
committer | ar <ar> | 2004-02-14 16:06:45 (UTC) |
commit | 1ab6282d6869ca200133a0e47323ae9a760b3400 (patch) (side-by-side diff) | |
tree | a7f2b4fb6f34edb4b50f00b12cf649b9cf59b8ca /noncore/games/backgammon/filedialog.cpp | |
parent | c7cf5faa7f1512fa48fb298a75902d4557bc9cfa (diff) | |
download | opie-1ab6282d6869ca200133a0e47323ae9a760b3400.zip opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.gz opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.bz2 |
improve support for BigScreen
Diffstat (limited to 'noncore/games/backgammon/filedialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/backgammon/filedialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/games/backgammon/filedialog.cpp b/noncore/games/backgammon/filedialog.cpp index 6c858a2..a5e71c9 100644 --- a/noncore/games/backgammon/filedialog.cpp +++ b/noncore/games/backgammon/filedialog.cpp @@ -1,49 +1,50 @@ #include "filedialog.h" #include <qdir.h> #include <qfileinfo.h> #include <qmessagebox.h> #include <qpixmap.h> #include <qpushbutton.h> #include <qpe/qpeapplication.h> FileDialog::FileDialog(QWidget* parent,QString header,QString extension,const char* name,bool modal,WFlags f) :QDialog(parent,name,modal,f) { setCaption(header); ext=extension; dirselector=new QListView(this); dirselector->setGeometry(1,10,235,200); dirselector->addColumn("Files"); connect(dirselector,SIGNAL(clicked(QListViewItem*)),this,SLOT(selectorclicked(QListViewItem*))); getCurrentDir(); file_name="user"; fileinput=new QLineEdit(file_name,this); fileinput->setGeometry(1,220,235,20); - showMaximized(); +
+ QPEApplication::showDialog( this );
} FileDialog::~FileDialog() {} void FileDialog::selectorclicked(QListViewItem* entry) { if(entry==NULL) return; file_name=entry->text(0); fileinput->setText(file_name); } void FileDialog::getCurrentDir() { dirselector->clear(); QDir dir(QPEApplication::qpeDir()+"/backgammon"); dir.setFilter(QDir::Files); QFileInfoListIterator it(*(dir.entryInfoList())); QFileInfo* fi; int ext_length=ext.length(); while((fi=it.current())) // go through all file and subdirs |