summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloadlistwidget.h')
-rw-r--r--src/downloadlistwidget.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/downloadlistwidget.h b/src/downloadlistwidget.h
index 0002e2b4..4776d259 100644
--- a/src/downloadlistwidget.h
+++ b/src/downloadlistwidget.h
@@ -28,6 +28,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <QLabel>
#include <QProgressBar>
#include <QTreeView>
+#include <QHeaderView>
#include <QStyledItemDelegate>
@@ -50,6 +51,18 @@ private:
DownloadListSortProxy *m_SortProxy;
};
+class DownloadListHeader : public QHeaderView
+{
+ Q_OBJECT
+
+public:
+ explicit DownloadListHeader(Qt::Orientation orientation, QWidget *parent = nullptr) : QHeaderView(orientation, parent) {}
+ void customResizeSections();
+
+private:
+ void mouseReleaseEvent(QMouseEvent *event) override;
+};
+
class DownloadListWidget : public QTreeView
{
Q_OBJECT
@@ -101,6 +114,8 @@ private:
DownloadManager *m_Manager;
DownloadList *m_SourceModel = 0;
int m_ContextRow;
+
+ void resizeEvent(QResizeEvent *event);
};
#endif // DOWNLOADLISTWIDGET_H