Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup clang format
Browse files Browse the repository at this point in the history
neochapay committed Jul 16, 2024
1 parent 59d91ea commit 4522d98
Showing 4 changed files with 11 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/models/searchmodel.cpp
Original file line number Diff line number Diff line change
@@ -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();
}
5 changes: 2 additions & 3 deletions src/models/searchmodel.h
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 2 additions & 2 deletions src/search/searchpluginmanager.cpp
Original file line number Diff line number Diff line change
@@ -22,8 +22,8 @@
#include <QPluginLoader>
#include <QTimer>

SearchPluginManager::SearchPluginManager(QObject *parent)
: QObject{parent}
SearchPluginManager::SearchPluginManager(QObject* parent)
: QObject { parent }
{
QTimer::singleShot(0, this, SLOT(loadSearchPlugins()));
}
7 changes: 3 additions & 4 deletions src/search/searchpluginmanager.h
Original file line number Diff line number Diff line change
@@ -20,16 +20,15 @@
#ifndef SEARCHPLUGINMANAGER_H
#define SEARCHPLUGINMANAGER_H

#include "glaciersearchplugin.h"
#include <QMap>
#include <QObject>
#include <QVariant>
#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:

0 comments on commit 4522d98

Please sign in to comment.