diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2022-05-17 11:47:01 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:20:40 +0200 |
| commit | d13f6bb870cdda71257f665367be8ef9fca86255 (patch) | |
| tree | 52e214718478f1e52856572f5aa1a2ac58537f9f /src/downloadlistview.h | |
| parent | 86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff) | |
Apply clang-format.
Diffstat (limited to 'src/downloadlistview.h')
| -rw-r--r-- | src/downloadlistview.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/downloadlistview.h b/src/downloadlistview.h index dfeec8a5..65d98849 100644 --- a/src/downloadlistview.h +++ b/src/downloadlistview.h @@ -20,19 +20,19 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #ifndef DOWNLOADLISTWIDGET_H #define DOWNLOADLISTWIDGET_H -#include "downloadmanager.h" #include "downloadlist.h" -#include <QWidget> +#include "downloadmanager.h" +#include <QHeaderView> #include <QItemDelegate> #include <QLabel> #include <QProgressBar> -#include <QTreeView> -#include <QHeaderView> #include <QStyledItemDelegate> +#include <QTreeView> +#include <QWidget> - -namespace Ui { - class DownloadListView; +namespace Ui +{ +class DownloadListView; } class DownloadListView; @@ -44,8 +44,8 @@ class DownloadProgressDelegate : public QStyledItemDelegate public: DownloadProgressDelegate(DownloadManager* manager, DownloadListView* list); - void paint(QPainter *painter, const QStyleOptionViewItem &option, - const QModelIndex &index) const override; + void paint(QPainter* painter, const QStyleOptionViewItem& option, + const QModelIndex& index) const override; private: DownloadManager* m_Manager; @@ -57,11 +57,13 @@ class DownloadListHeader : public QHeaderView Q_OBJECT public: - explicit DownloadListHeader(Qt::Orientation orientation, QWidget *parent = nullptr) : QHeaderView(orientation, parent) {} + explicit DownloadListHeader(Qt::Orientation orientation, QWidget* parent = nullptr) + : QHeaderView(orientation, parent) + {} void customResizeSections(); private: - void mouseReleaseEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent* event) override; }; class DownloadListView : public QTreeView @@ -69,11 +71,11 @@ class DownloadListView : public QTreeView Q_OBJECT public: - explicit DownloadListView(QWidget *parent = 0); + explicit DownloadListView(QWidget* parent = 0); ~DownloadListView(); - void setManager(DownloadManager *manager); - void setSourceModel(DownloadList *sourceModel); + void setManager(DownloadManager* manager); + void setSourceModel(DownloadList* sourceModel); signals: void installDownload(int index); @@ -119,10 +121,10 @@ private slots: void issueQueryInfoMd5(int index); private: - DownloadManager *m_Manager; - DownloadList *m_SourceModel = 0; + DownloadManager* m_Manager; + DownloadList* m_SourceModel = 0; - void resizeEvent(QResizeEvent *event); + void resizeEvent(QResizeEvent* event); }; -#endif // DOWNLOADLISTWIDGET_H +#endif // DOWNLOADLISTWIDGET_H |
