author | benmeyer <benmeyer> | 2003-04-09 00:04:29 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2003-04-09 00:04:29 (UTC) |
commit | bbefacdb0099ebb8c80f40c56237c6adc18c9328 (patch) (side-by-side diff) | |
tree | 97dec1a29632d1ca6cc1c1118b2e8593f3925f9b /noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp | |
parent | 17ba7a490ca74c491cfb11df52b44ef7826d1297 (diff) | |
download | opie-bbefacdb0099ebb8c80f40c56237c6adc18c9328.zip opie-bbefacdb0099ebb8c80f40c56237c6adc18c9328.tar.gz opie-bbefacdb0099ebb8c80f40c56237c6adc18c9328.tar.bz2 |
kde update
Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp') (more/less context) (ignore 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 @@ -3,12 +3,17 @@ #include <qpushbutton.h> #include <qlabel.h> #include <qgroupbox.h> #include <qmessagebox.h> +#ifdef QTE_VERSION +#else + #define showMaximized show +#endif + /** * Constructor for the InterfaceInformationImp class. This class pretty much * just display's information about the interface that is passed to it. */ 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 *))); @@ -45,25 +50,23 @@ void InterfaceInformationImp::updateInterface(Interface *){ /** * Create the advanced widget. Fill it with the current interface's information. * Display it. */ 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()); a->macAddressLabel->setText(interface->getMacAddress()); a->ipAddressLabel->setText(interface->getIp()); a->subnetMaskLabel->setText(interface->getSubnetMask()); a->broadcastLabel->setText(interface->getBroadcast()); a->dhcpServerLabel->setText(interface->getDhcpServerIp()); a->leaseObtainedLabel->setText(interface->getLeaseObtained()); a->leaseExpiresLabel->setText(interface->getLeaseExpires()); a->dhcpInformation->setEnabled(interface->isDhcp()); - a->showMaximized(); - a->show(); } /** * Messages from the interface if start/stop went as planned. * Purly for user feedback. * @param message the message to display. |