Changeset 47bfffb
- Timestamp:
- 01/29/10 15:37:22 (13 years ago)
- Branches:
- master, qt5
- Children:
- b0a3bc7
- Parents:
- 6645e1f
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/app/appsettings.cpp
r6645e1f r47bfffb 6 6 7 7 QSettings AppSettings::mSettings("Ixonos", "FOSDEM"); 8 9 10 8 11 9 QString AppSettings::proxyAddress() … … 39 37 } 40 38 39 bool AppSettings::contains(const QString &aKey) 40 { 41 return mSettings.contains(aKey); 42 } 43 -
src/app/appsettings.h
r6645e1f r47bfffb 13 13 14 14 public: 15 static bool contains(const QString &aKey); 16 15 17 static QString proxyAddress(); 16 18 static quint16 proxyPort(); -
src/gui/mainwindow.cpp
r6645e1f r47bfffb 32 32 setupUi(this); 33 33 34 qDebug() << "Setting-up proxy: " << AppSettings::proxyAddress() << ":" << AppSettings::proxyPort(); 34 // first time run aplication: -> let's have it direct connection in this case 35 if(!AppSettings::contains("proxyIsDirectConnection")) 36 AppSettings::setDirectConnection(true); 37 38 if(AppSettings::isDirectConnection()) 39 { 40 qDebug() << "Setting-up proxy: " << AppSettings::proxyAddress() << ":" << AppSettings::proxyPort(); 41 } 35 42 QNetworkProxy proxy( 36 43 AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : QNetworkProxy::HttpProxy,
Note: See TracChangeset
for help on using the changeset viewer.