Diffstat (limited to 'noncore/apps/opie-gutenbrowser/browserDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/browserDialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/opie-gutenbrowser/browserDialog.cpp b/noncore/apps/opie-gutenbrowser/browserDialog.cpp index 81dd516..cc05d04 100644 --- a/noncore/apps/opie-gutenbrowser/browserDialog.cpp +++ b/noncore/apps/opie-gutenbrowser/browserDialog.cpp | |||
@@ -7,12 +7,13 @@ copyright 2001 by L.J. Potter ljp@llornkcor.com | |||
7 | 7 | ||
8 | #include "optionsDialog.h" | 8 | #include "optionsDialog.h" |
9 | //#include "fileBrowser.h" | 9 | //#include "fileBrowser.h" |
10 | 10 | ||
11 | /* OPIE */ | 11 | /* OPIE */ |
12 | #include <opie2/ofiledialog.h> | 12 | #include <opie2/ofiledialog.h> |
13 | #include <opie2/odebug.h> | ||
13 | using namespace Opie::Ui; | 14 | using namespace Opie::Ui; |
14 | 15 | ||
15 | /* QT */ | 16 | /* QT */ |
16 | #include <qlabel.h> | 17 | #include <qlabel.h> |
17 | #include <qlistbox.h> | 18 | #include <qlistbox.h> |
18 | #include <qpushbutton.h> | 19 | #include <qpushbutton.h> |
@@ -49,13 +50,13 @@ void optionsDialog::BrowseSelected() { | |||
49 | map.insert(tr("All"), text ); | 50 | map.insert(tr("All"), text ); |
50 | 51 | ||
51 | QString str = OFileDialog::getOpenFileName( 2, dir , QString::null, map); | 52 | QString str = OFileDialog::getOpenFileName( 2, dir , QString::null, map); |
52 | if( !str.isEmpty() && QFile(str).exists() && !QFileInfo(str).isDir() ) { | 53 | if( !str.isEmpty() && QFile(str).exists() && !QFileInfo(str).isDir() ) { |
53 | fileName = str; | 54 | fileName = str; |
54 | // QStringList fileList=browseForFiles->fileList; | 55 | // QStringList fileList=browseForFiles->fileList; |
55 | // qDebug(selFile); | 56 | // odebug << selFile << oendl; |
56 | // QStringList::ConstIterator f; | 57 | // QStringList::ConstIterator f; |
57 | // QString fileTemp,filer; | 58 | // QString fileTemp,filer; |
58 | // for ( f = fileList.begin(); f != fileList.end(); f++ ) { | 59 | // for ( f = fileList.begin(); f != fileList.end(); f++ ) { |
59 | 60 | ||
60 | // fileTemp = *f; | 61 | // fileTemp = *f; |
61 | // fileTemp.right( fileTemp.length()-5); | 62 | // fileTemp.right( fileTemp.length()-5); |
@@ -73,13 +74,13 @@ void optionsDialog::BrowseSelected() { | |||
73 | 74 | ||
74 | } | 75 | } |
75 | 76 | ||
76 | void optionsDialog::setHttp(int index) { | 77 | void optionsDialog::setHttp(int index) { |
77 | Config config("Gutenbrowser"); | 78 | Config config("Gutenbrowser"); |
78 | config.setGroup( "HttpServer" ); | 79 | config.setGroup( "HttpServer" ); |
79 | qDebug("writing http server"); | 80 | odebug << "writing http server" << oendl; |
80 | if( index== 0) { | 81 | if( index== 0) { |
81 | config.writeEntry("Preferred", "http://sailor.gutenberg.org"); | 82 | config.writeEntry("Preferred", "http://sailor.gutenberg.org"); |
82 | } else { | 83 | } else { |
83 | config.writeEntry("Preferred", "http://www.prairienet.org/pg"); | 84 | config.writeEntry("Preferred", "http://www.prairienet.org/pg"); |
84 | } | 85 | } |
85 | 86 | ||