Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp index 37c3a91..698dfd3 100644 --- a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp @@ -1 +1,2 @@ + #include "interfaceinformationimp.h" @@ -3,2 +4,7 @@ +/* OPIE */ +#include <qpe/config.h> +#include <qpe/qpeapplication.h> + +/* QT */ #include <qcheckbox.h> @@ -9,3 +15,2 @@ -#include <qpe/config.h> @@ -20,3 +25,4 @@ */ -InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *name, Interface *i, WFlags f):InterfaceInformation(parent, name, f), interface(i){ +InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *name, Interface *i, WFlags f):InterfaceInformation(parent, name, f), interface(i) +{ connect(i, SIGNAL(updateInterface(Interface *)), this, SLOT(updateInterface(Interface *))); @@ -46,4 +52,6 @@ InterfaceInformationImp::~InterfaceInformationImp() */ -void InterfaceInformationImp::updateInterface(Interface *){ - if(interface->getStatus()){ +void InterfaceInformationImp::updateInterface(Interface *) +{ + if(interface->getStatus()) + { startButton->setEnabled(false); @@ -52,3 +60,4 @@ void InterfaceInformationImp::updateInterface(Interface *){ } - else{ + else + { startButton->setEnabled(true); @@ -67,3 +76,4 @@ void InterfaceInformationImp::updateInterface(Interface *){ */ -void InterfaceInformationImp::advanced(){ +void InterfaceInformationImp::advanced() +{ InterfaceAdvanced *a = new InterfaceAdvanced(this, "InterfaceAdvanced", Qt::WType_Modal | Qt::WDestructiveClose | Qt::WStyle_Dialog); @@ -78,3 +88,3 @@ void InterfaceInformationImp::advanced(){ a->dhcpInformation->setEnabled(interface->isDhcp()); - a->showMaximized(); + QPEApplication::showWidget( a ); } @@ -86,3 +96,4 @@ void InterfaceInformationImp::advanced(){ */ -void InterfaceInformationImp::showMessage(const QString &message){ +void InterfaceInformationImp::showMessage(const QString &message) +{ if (CheckBoxSilent->isChecked()) return; |