summaryrefslogtreecommitdiff
path: root/core/apps/textedit/fileBrowser.cpp
authorbipolar <bipolar>2002-03-01 14:49:41 (UTC)
committer bipolar <bipolar>2002-03-01 14:49:41 (UTC)
commit2dfc5c76379baf8ae8ad6aed5f6c44d59d79087b (patch) (side-by-side diff)
treed4b0572e3204ab4b7bdacde937bca46392182f75 /core/apps/textedit/fileBrowser.cpp
parent38e7dc570dfbcea350795d9cf8f66b643ad159a8 (diff)
downloadopie-2dfc5c76379baf8ae8ad6aed5f6c44d59d79087b.zip
opie-2dfc5c76379baf8ae8ad6aed5f6c44d59d79087b.tar.gz
opie-2dfc5c76379baf8ae8ad6aed5f6c44d59d79087b.tar.bz2
ljp (llornkcor) commited this. Fixes fileSaveas and filedialog positioning
when input method is opened. Added home buttons on each.
Diffstat (limited to 'core/apps/textedit/fileBrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp
index 2275388..3e3cc3a 100644
--- a/core/apps/textedit/fileBrowser.cpp
+++ b/core/apps/textedit/fileBrowser.cpp
@@ -15,2 +15,3 @@
#include <qpe/config.h>
+#include <qpe/resource.h>
@@ -27,8 +28,15 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
setName( "fileBrowser" );
- resize( 236, 280 );
+ resize( 240, 280 );
setCaption(tr( "Browse for file" ) );
filterStr=filter;
+
dirLabel = new QLabel(this, "DirLabel");
dirLabel->setText(currentDir.canonicalPath());
- dirLabel->setGeometry(10,4,230,30);
+ dirLabel->setGeometry(10,20,230,15);
+
+ QPushButton *homeButton;
+ homeButton = new QPushButton(Resource::loadIconSet("home"),"",this,"homeButton");
+ homeButton->setGeometry(200,4,25,25);
+ connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) );
+
ListView = new QListView( this, "ListView" );
@@ -53,2 +61,3 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
populateList();
+ move(0,15);
}
@@ -96,3 +105,3 @@ void fileBrowser::populateList()
ListView->setSorting( 2, FALSE);
- dirLabel->setText("Current Directory:\n"+currentDir.canonicalPath());
+ dirLabel->setText(currentDir.canonicalPath());
}
@@ -164 +173,8 @@ void fileBrowser::OnOK()
}
+
+void fileBrowser::homeButtonPushed() {
+ chdir( QDir::homeDirPath().latin1() );
+ currentDir.cd( QDir::homeDirPath(), TRUE);
+ populateList();
+ update();
+}