Plugin settings (weather & lunch) #74
@@ -11,7 +11,7 @@ WeatherSettingsWidget::WeatherSettingsWidget(ZeiterfassungSettings &settings, QW
|
||||
auto layout = new QFormLayout(this);
|
||||
layout->setMargin(0);
|
||||
|
||||
m_lineEdit = new QLineEdit(this);
|
||||
m_lineEdit = new QLineEdit(m_settings.url().toString(), this);
|
||||
layout->addRow(tr("Weather API:"), m_lineEdit);
|
||||
|
||||
setLayout(layout);
|
||||
|
@@ -1,10 +1,12 @@
|
||||
#ifndef WEATHERSETTINGS_H
|
||||
#define WEATHERSETTINGS_H
|
||||
#ifndef WEATHERSETTINGSWIDGET_H
|
||||
#define WEATHERSETTINGSWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "settingswidget.h"
|
||||
|
||||
#include "weathersettings.h"
|
||||
|
||||
class QLineEdit;
|
||||
|
||||
class ZeiterfassungSettings;
|
||||
@@ -21,9 +23,9 @@ public Q_SLOTS:
|
||||
void apply() Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
ZeiterfassungSettings &m_settings;
|
||||
WeatherSettings m_settings;
|
||||
|
||||
QLineEdit *m_lineEdit;
|
||||
};
|
||||
|
||||
#endif // WEATHERSETTINGS_H
|
||||
#endif // WEATHERSETTINGSWIDGET_H
|
||||
|
Reference in New Issue
Block a user