aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/playlistheader.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-02 19:44:28 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-02 19:44:28 +0000
commitf90557b42a0704a949e33b88647146612d32f6da (patch)
tree0fe97bf14c1e3b3b0cc80629f7ca2c62087333e3 /src/plugins/Ui/skinned/playlistheader.h
parentf9e340bec72f62cb8a775d9f1c43b71895295197 (diff)
downloadqmmp-f90557b42a0704a949e33b88647146612d32f6da.tar.gz
qmmp-f90557b42a0704a949e33b88647146612d32f6da.tar.bz2
qmmp-f90557b42a0704a949e33b88647146612d32f6da.zip
skinned: apply custom colors to header and playlist selector
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9458 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/playlistheader.h')
-rw-r--r--src/plugins/Ui/skinned/playlistheader.h34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/plugins/Ui/skinned/playlistheader.h b/src/plugins/Ui/skinned/playlistheader.h
index ce0d8564c..572b47174 100644
--- a/src/plugins/Ui/skinned/playlistheader.h
+++ b/src/plugins/Ui/skinned/playlistheader.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2015-2016 by Ilya Kotov *
+ * Copyright (C) 2015-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -31,7 +31,6 @@ class QMouseEvent;
class QContextMenuEvent;
class QMenu;
class QAction;
-class Skin;
class PlayListHeaderModel;
/**
@@ -61,7 +60,6 @@ public slots:
void hideSortIndicator();
private slots:
- void updateSkin();
void addColumn();
void editColumn();
void removeColumn();
@@ -78,7 +76,6 @@ private:
void resizeEvent(QResizeEvent *e) override;
void contextMenuEvent(QContextMenuEvent *e) override;
void paintEvent(QPaintEvent *) override;
- void loadColors();
void adjustColumn(int index);
int autoResizeColumn() const;
int findColumn(QPoint pos);
@@ -98,27 +95,26 @@ private:
ALIGNMENT
};
- Skin *m_skin;
- QFontMetrics *m_metrics;
+ QFontMetrics *m_metrics = nullptr;
QMenu *m_menu, *m_alignmentMenu;
QFont m_font;
QColor m_normal, m_normal_bg, m_current;
QPoint m_pressed_pos;
QPoint m_mouse_pos;
PlayListHeaderModel *m_model;
- QAction *m_trackStateAction;
- QAction *m_autoResizeAction;
+ QAction *m_trackStateAction = nullptr;
+ QAction *m_autoResizeAction = nullptr;
QPixmap m_arrow_up, m_arrow_down;
- bool m_reverted;
- bool m_auto_resize;
- int m_number_width;
- int m_pressed_column;
- int m_old_size;
- int m_press_offset;
- int m_padding;
- int m_pl_padding;
- int m_sorting_column;
- int m_offset;
+ bool m_reverted = false;
+ bool m_auto_resize = false;
+ int m_number_width = 0;
+ int m_pressed_column = -1;
+ int m_old_size = 0;
+ int m_press_offset = 0;
+ int m_padding = 0;
+ int m_pl_padding = 0;
+ int m_sorting_column = -1;
+ int m_offset = 0;
enum
@@ -127,7 +123,7 @@ private:
RESIZE,
MOVE,
SORT
- } m_task;
+ } m_task = NO_TASK;
};