mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: hide the weather applet latitude and longitude configuration widgets conditionally
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
873a17971d
commit
2c49d2e182
1 changed files with 4 additions and 4 deletions
|
@ -713,17 +713,17 @@ void WeatherApplet::slotCheckLocation()
|
|||
{
|
||||
const int locationindex = m_locationbox->currentIndex();
|
||||
if (locationindex == 1) {
|
||||
m_latitudeinput->setEnabled(true);
|
||||
m_latitudeinput->setVisible(true);
|
||||
m_latitudeinput->setRange(-90.0, 90.0);
|
||||
m_latitudeinput->setValue(0.0);
|
||||
m_longitudeinput->setEnabled(true);
|
||||
m_longitudeinput->setVisible(true);
|
||||
m_longitudeinput->setRange(-180.0, 180.0);
|
||||
m_longitudeinput->setValue(0.0);
|
||||
} else {
|
||||
m_latitudeinput->setEnabled(false);
|
||||
m_latitudeinput->setVisible(false);
|
||||
m_latitudeinput->setRange(KTimeZone::UNKNOWN, KTimeZone::UNKNOWN);
|
||||
m_latitudeinput->setValue(KTimeZone::UNKNOWN);
|
||||
m_longitudeinput->setEnabled(false);
|
||||
m_longitudeinput->setVisible(false);
|
||||
m_longitudeinput->setRange(KTimeZone::UNKNOWN, KTimeZone::UNKNOWN);
|
||||
m_longitudeinput->setValue(KTimeZone::UNKNOWN);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue