From 5e5c9c07291f6b09623d31c92b1fb61c4ede576e Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Thu, 22 Feb 2018 16:54:34 +0100 Subject: Applied clang-format on source --- src/pluginlistsortproxy.h | 44 +++++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) (limited to 'src/pluginlistsortproxy.h') diff --git a/src/pluginlistsortproxy.h b/src/pluginlistsortproxy.h index 89f60e70..b9cdd0fa 100644 --- a/src/pluginlistsortproxy.h +++ b/src/pluginlistsortproxy.h @@ -20,49 +20,39 @@ along with Mod Organizer. If not, see . #ifndef PLUGINLISTSORTPROXY_H #define PLUGINLISTSORTPROXY_H - -#include -#include #include "pluginlist.h" +#include +#include - -class PluginListSortProxy : public QSortFilterProxyModel -{ - Q_OBJECT +class PluginListSortProxy : public QSortFilterProxyModel { + Q_OBJECT public: - - enum ESorting { - SORT_ASCENDING, - SORT_DESCENDING - }; + enum ESorting { SORT_ASCENDING, SORT_DESCENDING }; public: + explicit PluginListSortProxy(QObject* parent = 0); - explicit PluginListSortProxy(QObject *parent = 0); - - void setEnabledColumns(unsigned int columns); + void setEnabledColumns(unsigned int columns); - virtual Qt::ItemFlags flags(const QModelIndex &modelIndex) const; + virtual Qt::ItemFlags flags(const QModelIndex& modelIndex) const; - virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent); + virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, + const QModelIndex& parent); public slots: - void updateFilter(const QString &filter); + void updateFilter(const QString& filter); protected: - - virtual bool filterAcceptsRow(int row, const QModelIndex &parent) const; - virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const; + virtual bool filterAcceptsRow(int row, const QModelIndex& parent) const; + virtual bool lessThan(const QModelIndex& left, const QModelIndex& right) const; private: + int m_SortIndex; + Qt::SortOrder m_SortOrder; - int m_SortIndex; - Qt::SortOrder m_SortOrder; - - std::bitset m_EnabledColumns; - QString m_CurrentFilter; - + std::bitset m_EnabledColumns; + QString m_CurrentFilter; }; #endif // PLUGINLISTSORTPROXY_H -- cgit v1.3.1