OSDN Git Service

kdeplasma-addons: search for location when return is pressed while the weather locati...
authorIvailo Monev <xakepa10@gmail.com>
Sat, 15 Jul 2023 17:56:10 +0000 (20:56 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 15 Jul 2023 17:56:10 +0000 (20:56 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kdeplasma-addons/libs/plasmaweather/weatherconfig.cpp

index fb8bfad..fa6abb7 100644 (file)
@@ -170,6 +170,7 @@ WeatherConfig::WeatherConfig(QWidget *parent)
         d->ui.visibilityComboBox->addItem(KLength::unitDescription(unit), unit);
     }
 
+    connect(d->ui.locationCombo, SIGNAL(returnPressed()), this, SLOT(changePressed()));
     connect(d->ui.changeButton, SIGNAL(clicked()), this, SLOT(changePressed()));
 
     connect(d->ui.updateIntervalSpinBox, SIGNAL(valueChanged(int)),