From bfd6b3e0e6745d52622f251f6aff1d0d214f9246 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE <0xfeedc0de64@gmail.com> Date: Sun, 11 Mar 2018 14:37:15 +0100 Subject: [PATCH] Moved line edit into member --- plugins/weatherplugin/weathersettings.cpp | 3 ++- plugins/weatherplugin/weathersettings.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/weatherplugin/weathersettings.cpp b/plugins/weatherplugin/weathersettings.cpp index b89296f..a9a51b6 100644 --- a/plugins/weatherplugin/weathersettings.cpp +++ b/plugins/weatherplugin/weathersettings.cpp @@ -11,7 +11,8 @@ WeatherSettings::WeatherSettings(ZeiterfassungSettings &settings, QWidget *paren auto layout = new QFormLayout(this); layout->setMargin(0); - layout->addRow(tr("Weather API:"), new QLineEdit(this)); + m_lineEdit = new QLineEdit(this); + layout->addRow(tr("Weather API:"), m_lineEdit); setLayout(layout); } diff --git a/plugins/weatherplugin/weathersettings.h b/plugins/weatherplugin/weathersettings.h index f4a9e8d..e0a1b7a 100644 --- a/plugins/weatherplugin/weathersettings.h +++ b/plugins/weatherplugin/weathersettings.h @@ -20,6 +20,8 @@ public Q_SLOTS: private: ZeiterfassungSettings &m_settings; + + QLineEdit *m_lineEdit; }; #endif // WEATHERSETTINGS_H