author | benmeyer <benmeyer> | 2002-12-16 21:48:37 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-12-16 21:48:37 (UTC) |
commit | 9cb9007f211c22349e3183ba20bb7f817d811005 (patch) (side-by-side diff) | |
tree | 71d929282b4edfff101ef208d6ab4d1512b20960 /noncore/settings | |
parent | 05ee76167ad314aea710966e7c93b124da252a95 (diff) | |
download | opie-9cb9007f211c22349e3183ba20bb7f817d811005.zip opie-9cb9007f211c22349e3183ba20bb7f817d811005.tar.gz opie-9cb9007f211c22349e3183ba20bb7f817d811005.tar.bz2 |
Remove the lease time requst. Wasn't realy needed and was uneccessary
3 files changed, 13 insertions, 90 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp index cf3dba1..1fa5d38 100644 --- a/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfaceinformationimp.cpp @@ -28,3 +28,3 @@ InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *na */ -void InterfaceInformationImp::updateInterface(Interface *i){ +void InterfaceInformationImp::updateInterface(Interface *){ if(interface->getStatus()){ diff --git a/noncore/settings/networksettings/interfaces/interfacesetup.ui b/noncore/settings/networksettings/interfaces/interfacesetup.ui index df55d25..2b45d49 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetup.ui +++ b/noncore/settings/networksettings/interfaces/interfacesetup.ui @@ -13,3 +13,3 @@ <y>0</y> - <width>290</width> + <width>286</width> <height>280</height> @@ -42,70 +42,15 @@ <widget> - <class>QLayoutWidget</class> + <class>QCheckBox</class> <property stdset="1"> <name>name</name> - <cstring>Layout9</cstring> + <cstring>dhcpCheckBox</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>DHCP</string> + </property> + <property stdset="1"> + <name>checked</name> + <bool>true</bool> </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>0</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>6</number> - </property> - <widget> - <class>QCheckBox</class> - <property stdset="1"> - <name>name</name> - <cstring>dhcpCheckBox</cstring> - </property> - <property stdset="1"> - <name>text</name> - <string>DHCP</string> - </property> - <property stdset="1"> - <name>checked</name> - <bool>true</bool> - </property> - </widget> - <widget> - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>leaseHoursLabel</cstring> - </property> - <property stdset="1"> - <name>text</name> - <string>Requested Lease</string> - </property> - </widget> - <widget> - <class>QSpinBox</class> - <property stdset="1"> - <name>name</name> - <cstring>leaseTime</cstring> - </property> - <property stdset="1"> - <name>suffix</name> - <string> hours</string> - </property> - <property stdset="1"> - <name>maxValue</name> - <number>87600</number> - </property> - <property stdset="1"> - <name>minValue</name> - <number>1</number> - </property> - <property stdset="1"> - <name>lineStep</name> - <number>24</number> - </property> - <property stdset="1"> - <name>value</name> - <number>168</number> - </property> - </widget> - </hbox> </widget> @@ -283,14 +228,2 @@ <signal>toggled(bool)</signal> - <receiver>leaseHoursLabel</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <connection> - <sender>dhcpCheckBox</sender> - <signal>toggled(bool)</signal> - <receiver>leaseTime</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <connection> - <sender>dhcpCheckBox</sender> - <signal>toggled(bool)</signal> <receiver>staticGroupBox</receiver> @@ -302,3 +235,2 @@ <tabstop>dhcpCheckBox</tabstop> - <tabstop>leaseTime</tabstop> <tabstop>ipAddressEdit</tabstop> diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp index 4818e37..56bbe93 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp @@ -52,7 +52,4 @@ bool InterfaceSetupImp::saveSettings(){ // DHCP - if(dhcpCheckBox->isChecked()){ + if(dhcpCheckBox->isChecked()) interfaces.setInterfaceMethod(INTERFACES_METHOD_DHCP); - interfaces.setInterfaceOption("leasehours", QString("%1").arg(leaseTime->value())); - interfaces.setInterfaceOption("leasetime", QString("%1").arg(leaseTime->value()*60*60)); - } else{ @@ -124,7 +121,2 @@ void InterfaceSetupImp::setProfile(const QString &profile){ dhcpCheckBox->setChecked(false); - leaseTime->setValue(interfaces.getInterfaceOption("leasehours", error).toInt()); - if(error) - leaseTime->setValue(interfaces.getInterfaceOption("leasetime", error).toInt()/60/60); - if(error) - leaseTime->setValue(24); @@ -140,3 +132,2 @@ void InterfaceSetupImp::setProfile(const QString &profile){ gatewayEdit->setText(interfaces.getInterfaceOption("gateway", error)); - } |