Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp index 1fa5d38..271bb78 100644 --- a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp @@ -8,2 +8,7 @@ +#ifdef QTE_VERSION +#else + #define showMaximized show +#endif + /** @@ -50,3 +55,3 @@ void InterfaceInformationImp::updateInterface(Interface *){ void InterfaceInformationImp::advanced(){ - InterfaceAdvanced *a = new InterfaceAdvanced(0, "InterfaceAdvanced"); + InterfaceAdvanced *a = new InterfaceAdvanced(this, "InterfaceAdvanced", Qt::WShowModal | Qt::WDestructiveClose | Qt::WType_Dialog); a->interfaceName->setText(interface->getInterfaceName()); @@ -60,5 +65,3 @@ void InterfaceInformationImp::advanced(){ a->dhcpInformation->setEnabled(interface->isDhcp()); - a->showMaximized(); - a->show(); } |