From 4522d985929f65fd6ff14a36447b91b01ab4715d Mon Sep 17 00:00:00 2001 From: Sergey Chupligin Date: Tue, 16 Jul 2024 14:54:36 +0300 Subject: [PATCH] Fixup clang format --- src/models/searchmodel.cpp | 8 ++++---- src/models/searchmodel.h | 5 ++--- src/search/searchpluginmanager.cpp | 4 ++-- src/search/searchpluginmanager.h | 7 +++---- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/models/searchmodel.cpp b/src/models/searchmodel.cpp index 57328fa..bb26ce5 100644 --- a/src/models/searchmodel.cpp +++ b/src/models/searchmodel.cpp @@ -19,8 +19,8 @@ #include "searchmodel.h" -SearchModel::SearchModel(QObject *parent) - : QAbstractListModel{parent} +SearchModel::SearchModel(QObject* parent) + : QAbstractListModel { parent } , m_manager(new SearchPluginManager(this)) { m_hash.insert(Qt::UserRole, QByteArray("iconTitle")); @@ -30,12 +30,12 @@ SearchModel::SearchModel(QObject *parent) m_hash.insert(Qt::UserRole + 4, QByteArray("action")); } -int SearchModel::rowCount(const QModelIndex &parent) const +int SearchModel::rowCount(const QModelIndex& parent) const { return -1; } -QVariant SearchModel::data(const QModelIndex &index, int role) const +QVariant SearchModel::data(const QModelIndex& index, int role) const { return QVariant(); } diff --git a/src/models/searchmodel.h b/src/models/searchmodel.h index 9dd1f95..c753569 100644 --- a/src/models/searchmodel.h +++ b/src/models/searchmodel.h @@ -25,11 +25,10 @@ #include "search/searchpluginmanager.h" -class SearchModel : public QAbstractListModel -{ +class SearchModel : public QAbstractListModel { Q_OBJECT public: - explicit SearchModel(QObject *parent = nullptr); + explicit SearchModel(QObject* parent = nullptr); int rowCount(const QModelIndex& parent = QModelIndex()) const; QVariant data(const QModelIndex& index, int role) const; diff --git a/src/search/searchpluginmanager.cpp b/src/search/searchpluginmanager.cpp index 671a5c2..19f461d 100644 --- a/src/search/searchpluginmanager.cpp +++ b/src/search/searchpluginmanager.cpp @@ -22,8 +22,8 @@ #include #include -SearchPluginManager::SearchPluginManager(QObject *parent) - : QObject{parent} +SearchPluginManager::SearchPluginManager(QObject* parent) + : QObject { parent } { QTimer::singleShot(0, this, SLOT(loadSearchPlugins())); } diff --git a/src/search/searchpluginmanager.h b/src/search/searchpluginmanager.h index c272ae0..446415b 100644 --- a/src/search/searchpluginmanager.h +++ b/src/search/searchpluginmanager.h @@ -20,16 +20,15 @@ #ifndef SEARCHPLUGINMANAGER_H #define SEARCHPLUGINMANAGER_H +#include "glaciersearchplugin.h" #include #include #include -#include "glaciersearchplugin.h" -class SearchPluginManager : public QObject -{ +class SearchPluginManager : public QObject { Q_OBJECT public: - explicit SearchPluginManager(QObject *parent = nullptr); + explicit SearchPluginManager(QObject* parent = nullptr); virtual ~SearchPluginManager(); signals: