author | kergoth <kergoth> | 2003-04-09 16:34:52 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-09 16:34:52 (UTC) |
commit | dc219288ae070e0fe91e2d7da768d620f8b91592 (patch) (side-by-side diff) | |
tree | 6be9c510e6f6689e30bdda88f277ed7d31f88fe5 /noncore/settings | |
parent | 73f4014f0175c77b9bff8dd06f1c034eb80442f9 (diff) | |
download | opie-dc219288ae070e0fe91e2d7da768d620f8b91592.zip opie-dc219288ae070e0fe91e2d7da768d620f8b91592.tar.gz opie-dc219288ae070e0fe91e2d7da768d620f8b91592.tar.bz2 |
Ben, please dont use Qt3 Widget Flags in Opie..
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp index 271bb78..15293fd 100644 --- a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp @@ -32,48 +32,48 @@ InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *na * know about). */ void InterfaceInformationImp::updateInterface(Interface *){ if(interface->getStatus()){ startButton->setEnabled(false); stopButton->setEnabled(true); restartButton->setEnabled(true); } else{ startButton->setEnabled(true); stopButton->setEnabled(false); restartButton->setEnabled(false); } macAddressLabel->setText(interface->getMacAddress()); ipAddressLabel->setText(interface->getIp()); subnetMaskLabel->setText(interface->getSubnetMask()); broadcastLabel->setText(interface->getBroadcast()); } /** * Create the advanced widget. Fill it with the current interface's information. * Display it. */ void InterfaceInformationImp::advanced(){ - InterfaceAdvanced *a = new InterfaceAdvanced(this, "InterfaceAdvanced", Qt::WShowModal | Qt::WDestructiveClose | Qt::WType_Dialog); + InterfaceAdvanced *a = new InterfaceAdvanced(this, "InterfaceAdvanced", Qt::WType_Modal | Qt::WDestructiveClose | Qt::WStyle_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(); } /** * Messages from the interface if start/stop went as planned. * Purly for user feedback. * @param message the message to display. */ void InterfaceInformationImp::showMessage(const QString &message){ QMessageBox::information(this, "Message", message, QMessageBox::Ok); } // infoimp.cpp |