summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-19 01:26:49 (UTC)
committer llornkcor <llornkcor>2002-10-19 01:26:49 (UTC)
commit7871e87fbd796c57374b23ec91890962b2ef1fe9 (patch) (side-by-side diff)
treebc6cb8493540674ce18bfc017637108d10906cbf
parenta0ea0e7ff2fad769a92136edc1a7381692e7739f (diff)
downloadopie-7871e87fbd796c57374b23ec91890962b2ef1fe9.zip
opie-7871e87fbd796c57374b23ec91890962b2ef1fe9.tar.gz
opie-7871e87fbd796c57374b23ec91890962b2ef1fe9.tar.bz2
default fileopen to docs dir
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 35f9d3c..209c5de 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -526,33 +526,33 @@ void TextEdit::fileNew() {
// }
newFile(DocLnk());
}
void TextEdit::fileOpen() {
Config cfg("TextEdit");
cfg.setGroup("View");
// bool b=FALSE;
QMap<QString, QStringList> map;
map.insert(tr("All"), QStringList() );
QStringList text;
text << "text/*";
map.insert(tr("Text"), text );
text << "*";
map.insert(tr("All"), text );
- QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);
+ QString str = OFileDialog::getOpenFileName( 2, QPEApplication::documentDir(), QString::null, map);
if(!str.isEmpty() )
openFile( str );
}
void TextEdit::doSearchBar() {
Config cfg("TextEdit");
cfg.setGroup("View");
if(cfg.readEntry("SearchBar","Closed") != "Opened")
searchBar->hide();
}
#if 0
void TextEdit::slotFind() {
FindDialog frmFind( tr("Text Editor"), this );
connect( &frmFind, SIGNAL(signalFindClicked(const QString &, bool, bool, int)),
@@ -801,33 +801,33 @@ bool TextEdit::saveAs() {
docname = docname.left(40);
if ( docname.isEmpty() )
docname = tr("Unnamed");
doc->setName(docname);
currentFileName=docname;
}
}
QMap<QString, QStringList> map;
map.insert(tr("All"), QStringList() );
QStringList text;
text << "text/*";
map.insert(tr("Text"), text );
text << "*";
map.insert(tr("All"), text );
- QString str = OFileDialog::getSaveFileName( 2,"/", QString::null, map);
+ QString str = OFileDialog::getSaveFileName( 2,QPEApplication::documentDir(), QString::null, map);
if(!str.isEmpty() ) {
QString fileNm=str;
qDebug("saving filename "+fileNm);
QFileInfo fi(fileNm);
currentFileName=fi.fileName();
if(doc) {
// QString file = doc->file();
// doc->removeFiles();
delete doc;
DocLnk nf;
nf.setType("text/plain");
nf.setFile( fileNm);
doc = new DocLnk(nf);
// editor->setText(rt);