summaryrefslogtreecommitdiff
path: root/src/pluginlistsortproxy.h
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2018-02-23 01:45:58 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2018-02-23 01:45:58 +0100
commitea6292168a6acd4c263913f0ccd7dd64daf4f5cf (patch)
tree312024abbd7c3c100274f3a8031d49096480b654 /src/pluginlistsortproxy.h
parent5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff)
Revert "Applied clang-format on source"
This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e.
Diffstat (limited to 'src/pluginlistsortproxy.h')
-rw-r--r--src/pluginlistsortproxy.h44
1 files changed, 27 insertions, 17 deletions
diff --git a/src/pluginlistsortproxy.h b/src/pluginlistsortproxy.h
index b9cdd0fa..89f60e70 100644
--- a/src/pluginlistsortproxy.h
+++ b/src/pluginlistsortproxy.h
@@ -20,39 +20,49 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#ifndef PLUGINLISTSORTPROXY_H
#define PLUGINLISTSORTPROXY_H
-#include "pluginlist.h"
-#include <QSortFilterProxyModel>
+
#include <bitset>
+#include <QSortFilterProxyModel>
+#include "pluginlist.h"
+
-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);
- void setEnabledColumns(unsigned int columns);
+ explicit PluginListSortProxy(QObject *parent = 0);
+
+ 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;
- std::bitset<PluginList::COL_LASTCOLUMN + 1> m_EnabledColumns;
- QString m_CurrentFilter;
+ int m_SortIndex;
+ Qt::SortOrder m_SortOrder;
+
+ std::bitset<PluginList::COL_LASTCOLUMN + 1> m_EnabledColumns;
+ QString m_CurrentFilter;
+
};
#endif // PLUGINLISTSORTPROXY_H