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 | |||
@@ -6,6 +6,11 @@ | |||
6 | #include <qgroupbox.h> | 6 | #include <qgroupbox.h> |
7 | #include <qmessagebox.h> | 7 | #include <qmessagebox.h> |
8 | 8 | ||
9 | #ifdef QTE_VERSION | ||
10 | #else | ||
11 | #define showMaximized show | ||
12 | #endif | ||
13 | |||
9 | /** | 14 | /** |
10 | * Constructor for the InterfaceInformationImp class. This class pretty much | 15 | * Constructor for the InterfaceInformationImp class. This class pretty much |
11 | * just display's information about the interface that is passed to it. | 16 | * just display's information about the interface that is passed to it. |
@@ -48,7 +53,7 @@ void InterfaceInformationImp::updateInterface(Interface *){ | |||
48 | * Display it. | 53 | * Display it. |
49 | */ | 54 | */ |
50 | void InterfaceInformationImp::advanced(){ | 55 | void InterfaceInformationImp::advanced(){ |
51 | InterfaceAdvanced *a = new InterfaceAdvanced(0, "InterfaceAdvanced"); | 56 | InterfaceAdvanced *a = new InterfaceAdvanced(this, "InterfaceAdvanced", Qt::WShowModal | Qt::WDestructiveClose | Qt::WType_Dialog); |
52 | a->interfaceName->setText(interface->getInterfaceName()); | 57 | a->interfaceName->setText(interface->getInterfaceName()); |
53 | a->macAddressLabel->setText(interface->getMacAddress()); | 58 | a->macAddressLabel->setText(interface->getMacAddress()); |
54 | a->ipAddressLabel->setText(interface->getIp()); | 59 | a->ipAddressLabel->setText(interface->getIp()); |
@@ -58,9 +63,7 @@ void InterfaceInformationImp::advanced(){ | |||
58 | a->leaseObtainedLabel->setText(interface->getLeaseObtained()); | 63 | a->leaseObtainedLabel->setText(interface->getLeaseObtained()); |
59 | a->leaseExpiresLabel->setText(interface->getLeaseExpires()); | 64 | a->leaseExpiresLabel->setText(interface->getLeaseExpires()); |
60 | a->dhcpInformation->setEnabled(interface->isDhcp()); | 65 | a->dhcpInformation->setEnabled(interface->isDhcp()); |
61 | |||
62 | a->showMaximized(); | 66 | a->showMaximized(); |
63 | a->show(); | ||
64 | } | 67 | } |
65 | 68 | ||
66 | /** | 69 | /** |