diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
| commit | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/pluginlistsortproxy.h | |
| parent | 5ad912e1934061b38825801a27f7c12933878005 (diff) | |
Applied clang-format on source
Diffstat (limited to 'src/pluginlistsortproxy.h')
| -rw-r--r-- | src/pluginlistsortproxy.h | 44 |
1 files changed, 17 insertions, 27 deletions
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 <http://www.gnu.org/licenses/>. #ifndef PLUGINLISTSORTPROXY_H
#define PLUGINLISTSORTPROXY_H
-
-#include <bitset>
-#include <QSortFilterProxyModel>
#include "pluginlist.h"
+#include <QSortFilterProxyModel>
+#include <bitset>
-
-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<PluginList::COL_LASTCOLUMN + 1> m_EnabledColumns;
- QString m_CurrentFilter;
-
+ std::bitset<PluginList::COL_LASTCOLUMN + 1> m_EnabledColumns;
+ QString m_CurrentFilter;
};
#endif // PLUGINLISTSORTPROXY_H
|
