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