Commit 35406b14 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Consistently order includes

parent 1c240a3c
Pipeline #77235 passed with stage
in 18 seconds
......@@ -5,11 +5,16 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "kweathersettings.h"
#include <QString>
#include <KLocalizedContext>
#include <KLocalizedString>
#include <QString>
#include <unordered_map>
#include "kweathersettings.h"
namespace Kweather
{
static const QString WEATHER_LOCATIONS_CFG_GROUP = QStringLiteral("WeatherLocations");
......
......@@ -6,6 +6,7 @@
*/
#include "locationquerymodel.h"
#include <QDebug>
#include <QTimer>
......
......@@ -7,9 +7,11 @@
#pragma once
#include <KWeatherCore/LocationQuery>
#include <QAbstractListModel>
#include <QObject>
#include <KWeatherCore/LocationQuery>
class QTimer;
class LocationQueryModel : public QAbstractListModel
{
......
......@@ -3,7 +3,9 @@
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "hourlymodel.h"
#include <QProcess>
QVariant HourlyModel::data(const QModelIndex &index, int role) const
{
if (index.row() < 0 || index.row() >= rowCount(QModelIndex()))
......
......@@ -5,8 +5,10 @@
#ifndef HOURLYMODEL_H
#define HOURLYMODEL_H
#include <KWeatherCore/WeatherForecast>
#include <QAbstractListModel>
#include <KWeatherCore/WeatherForecast>
class HourlyModel : public QAbstractListModel
{
Q_OBJECT
......
......@@ -3,11 +3,16 @@
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "kweather_1x4.h"
#include "hourlymodel.h"
#include "kweathersettings.h"
#include <QQmlApplicationEngine>
#include <KSharedConfig>
#include <KWeatherCore/WeatherForecastSource>
#include <QQmlApplicationEngine>
#include "hourlymodel.h"
#include "kweathersettings.h"
KWeather_1x4::KWeather_1x4(QObject *parent, const QVariantList &args)
: Plasma::Applet(parent, args)
, m_hourlyModel(new HourlyModel())
......
......@@ -5,8 +5,11 @@
#ifndef KWEATHER_1X4_H
#define KWEATHER_1X4_H
#include <KWeatherCore/WeatherForecast>
#include <Plasma/Applet>
#include <KWeatherCore/WeatherForecast>
class HourlyModel;
class KWeather_1x4 : public Plasma::Applet
{
......
......@@ -6,15 +6,18 @@
*/
#include "weatherforecastmanager.h"
#include "weatherlocation.h"
#include "weatherlocationmodel.h"
#include <KConfigCore/KConfigGroup>
#include <QDirIterator>
#include <QFile>
#include <QStandardPaths>
#include <QTimeZone>
#include <QTimer>
#include <KConfigCore/KConfigGroup>
#include "weatherlocation.h"
#include "weatherlocationmodel.h"
WeatherForecastManager::WeatherForecastManager()
: m_model(new WeatherLocationListModel(this))
{
......
......@@ -7,21 +7,20 @@
*/
#include "weatherlocation.h"
#include "global.h"
#include "kweathersettings.h"
#include "locationquerymodel.h"
#include <QDateTimeAxis>
#include <QDir>
#include <QFile>
#include <QJsonArray>
#include <QQmlEngine>
#include <QSplineSeries>
#include <QTimeZone>
#include <QTimer>
#include <QValueAxis>
#include <utility>
#include "global.h"
#include "kweathersettings.h"
#include "locationquerymodel.h"
WeatherLocation::WeatherLocation(QString locationId,
QString locationName,
QString timeZone,
......
......@@ -7,7 +7,7 @@
*/
#pragma once
#include <KWeatherCore/WeatherForecastSource>
#include <QAbstractListModel>
#include <QColor>
#include <QDateTime>
......@@ -17,6 +17,9 @@
#include <QObject>
#include <QTimeZone>
#include <QTimer>
#include <KWeatherCore/WeatherForecastSource>
#include <utility>
namespace QtCharts
......
......@@ -6,15 +6,17 @@
*/
#include "weatherlocationmodel.h"
#include "global.h"
#include "kweathersettings.h"
#include "weatherlocation.h"
#include <QJsonArray>
#include <QQmlEngine>
#include <KConfigCore/KConfigGroup>
#include <KConfigCore/KSharedConfig>
#include <QJsonArray>
#include <QQmlEngine>
#include "global.h"
#include "kweathersettings.h"
#include "weatherlocation.h"
/* ~~~ WeatherLocationListModel ~~~ */
WeatherLocationListModel::WeatherLocationListModel(QObject *parent)
: QAbstractListModel(parent)
......
......@@ -7,10 +7,11 @@
#pragma once
#include <KWeatherCore/LocationQuery>
#include <QAbstractListModel>
#include <QObject>
#include <KWeatherCore/LocationQuery>
class WeatherLocation;
class WeatherLocationListModel : public QAbstractListModel
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment