summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-05-29 15:24:04 (UTC)
committer llornkcor <llornkcor>2002-05-29 15:24:04 (UTC)
commitceaf90ad848c69d693f0c9eedbc8f9ab1935e42f (patch) (side-by-side diff)
treed66941f764e2c162b1707881ce44b8d396651f98
parent949c238e785ad1060db41690bb60b1e252824708 (diff)
downloadopie-ceaf90ad848c69d693f0c9eedbc8f9ab1935e42f.zip
opie-ceaf90ad848c69d693f0c9eedbc8f9ab1935e42f.tar.gz
opie-ceaf90ad848c69d693f0c9eedbc8f9ab1935e42f.tar.bz2
: is not the proper way to end a line in C, nor C++.. please use a ; next time
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 403bd92..f89ed6d 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -489,49 +489,49 @@ void TextEdit::setItalic(bool y)
void TextEdit::setWordWrap(bool y)
{
bool state = editor->edited();
editor->setWordWrap(y ? QMultiLineEdit::WidgetWidth : QMultiLineEdit::NoWrap );
editor->setEdited( state );
}
void TextEdit::fileNew()
{
// if( !bFromDocView ) {
// saveAs();
// }
newFile(DocLnk());
}
void TextEdit::fileOpen()
{
Config cfg("TextEdit");
cfg.setGroup("View");
bool b=FALSE;
// if(cfg.readEntry("useOldFileDialog") == "TRUE")
// b=TRUE;
// if(!b) {
- QString str = OFileDialog::getOpenFileName( 1,"/")://,"", "*", this );
+ QString str = OFileDialog::getOpenFileName( 1,"/");//,"", "*", this );
if(!str.isEmpty() )
openFile( str );
// } else {
// QString str;
// browseForFiles = new fileBrowser(this,tr("Open File"),TRUE,0, "*"); //
// browseForFiles->setFileView( viewSelection );
// browseForFiles->showMaximized();
// // if( result != -1 )
// if( browseForFiles->exec() != -1 ) {
// QString selFile = browseForFiles->selectedFileName;
// QStringList fileList = browseForFiles->fileList;
// qDebug(selFile);
// QStringList::ConstIterator f;
// QString fileTemp;
// for ( f = fileList.begin(); f != fileList.end(); f++ ) {
// fileTemp = *f;
// fileTemp.right( fileTemp.length()-5);
// QString fileName = fileTemp;
// if( fileName != "Unnamed" || fileName != "Empty Text" ) {
// currentFileName = fileName;
// qDebug("please open "+currentFileName);
// openFile(currentFileName );
// }