author | benmeyer <benmeyer> | 2002-10-18 18:12:53 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-18 18:12:53 (UTC) |
commit | a63b3b36cf4d665b67733e069bfaad8f96388276 (patch) (unidiff) | |
tree | 0089ca8d5bacd31982d8bec367d091b4f58cace1 /noncore/settings/networksettings/mainwindowimp.cpp | |
parent | 5ec0d959ca9d3ade0c7271885028fd4309cf2b4c (diff) | |
download | opie-a63b3b36cf4d665b67733e069bfaad8f96388276.zip opie-a63b3b36cf4d665b67733e069bfaad8f96388276.tar.gz opie-a63b3b36cf4d665b67733e069bfaad8f96388276.tar.bz2 |
interfaces now watches for # in most cases
Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 01063c2..8e4e898 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp | |||
@@ -223,25 +223,25 @@ void MainWindowImp::configureClicked(){ | |||
223 | return; | 223 | return; |
224 | } | 224 | } |
225 | 225 | ||
226 | QString currentProfile = currentProfileLabel->text(); | 226 | QString currentProfile = currentProfileLabel->text(); |
227 | if(profilesList->count() <= 1 || currentProfile == "All"){ | 227 | if(profilesList->count() <= 1 || currentProfile == "All"){ |
228 | currentProfile = ""; | 228 | currentProfile = ""; |
229 | } | 229 | } |
230 | 230 | ||
231 | Interface *i = interfaceItems[item]; | 231 | Interface *i = interfaceItems[item]; |
232 | if(i->getModuleOwner()){ | 232 | if(i->getModuleOwner()){ |
233 | i->getModuleOwner()->setProfile(currentProfile); | 233 | i->getModuleOwner()->setProfile(currentProfile); |
234 | QTabWidget *tabWidget = NULL; | 234 | QTabWidget *tabWidget = NULL; |
235 | QWidget *moduleConfigure = i->getModuleOwner()->configure(&tabWidget); | 235 | QWidget *moduleConfigure = i->getModuleOwner()->configure(i, &tabWidget); |
236 | if(moduleConfigure != NULL){ | 236 | if(moduleConfigure != NULL){ |
237 | if(tabWidget != NULL){ | 237 | if(tabWidget != NULL){ |
238 | InterfaceSetupImp *configure = new InterfaceSetupImp(tabWidget, "InterfaceSetupImp", i, true); | 238 | InterfaceSetupImp *configure = new InterfaceSetupImp(tabWidget, "InterfaceSetupImp", i, true); |
239 | configure->setProfile(currentProfile); | 239 | configure->setProfile(currentProfile); |
240 | tabWidget->insertTab(configure, "TCP/IP"); | 240 | tabWidget->insertTab(configure, "TCP/IP"); |
241 | 241 | ||
242 | } | 242 | } |
243 | moduleConfigure->showMaximized(); | 243 | moduleConfigure->showMaximized(); |
244 | moduleConfigure->show(); | 244 | moduleConfigure->show(); |
245 | return; | 245 | return; |
246 | } | 246 | } |
247 | } | 247 | } |
@@ -269,25 +269,25 @@ void MainWindowImp::informationClicked(){ | |||
269 | if(!i->isAttached()){ | 269 | if(!i->isAttached()){ |
270 | QMessageBox::information(this, "Error","No information about\na disconnected interface.", QMessageBox::Ok); | 270 | QMessageBox::information(this, "Error","No information about\na disconnected interface.", QMessageBox::Ok); |
271 | return; | 271 | return; |
272 | } | 272 | } |
273 | 273 | ||
274 | QStringList list; | 274 | QStringList list; |
275 | for(uint i = 0; i < profilesList->count(); i++){ | 275 | for(uint i = 0; i < profilesList->count(); i++){ |
276 | list.append(profilesList->text(i)); | 276 | list.append(profilesList->text(i)); |
277 | } | 277 | } |
278 | 278 | ||
279 | if(i->getModuleOwner()){ | 279 | if(i->getModuleOwner()){ |
280 | QTabWidget *tabWidget = NULL; | 280 | QTabWidget *tabWidget = NULL; |
281 | QWidget *moduleInformation = i->getModuleOwner()->information(&tabWidget); | 281 | QWidget *moduleInformation = i->getModuleOwner()->information(i, &tabWidget); |
282 | if(moduleInformation != NULL){ | 282 | if(moduleInformation != NULL){ |
283 | if(tabWidget != NULL){ | 283 | if(tabWidget != NULL){ |
284 | InterfaceInformationImp *information = new InterfaceInformationImp(tabWidget, "InterfaceSetupImp", i, true); | 284 | InterfaceInformationImp *information = new InterfaceInformationImp(tabWidget, "InterfaceSetupImp", i, true); |
285 | tabWidget->insertTab(information, "TCP/IP"); | 285 | tabWidget->insertTab(information, "TCP/IP"); |
286 | } | 286 | } |
287 | moduleInformation->showMaximized(); | 287 | moduleInformation->showMaximized(); |
288 | moduleInformation->show(); | 288 | moduleInformation->show(); |
289 | return; | 289 | return; |
290 | } | 290 | } |
291 | } | 291 | } |
292 | 292 | ||
293 | InterfaceInformationImp *information = new InterfaceInformationImp(0, "InterfaceSetupImp", i, true); | 293 | InterfaceInformationImp *information = new InterfaceInformationImp(0, "InterfaceSetupImp", i, true); |