From f9e340bec72f62cb8a775d9f1c43b71895295197 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 2 Aug 2020 16:54:23 +0000 Subject: refactoring git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9457 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/listwidgetdrawer.h | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'src/plugins/Ui/skinned/listwidgetdrawer.h') diff --git a/src/plugins/Ui/skinned/listwidgetdrawer.h b/src/plugins/Ui/skinned/listwidgetdrawer.h index ce942a621..a46c50bbb 100644 --- a/src/plugins/Ui/skinned/listwidgetdrawer.h +++ b/src/plugins/Ui/skinned/listwidgetdrawer.h @@ -27,9 +27,7 @@ #include #include - class QPainter; -class Skin; class PlayListHeaderModel; struct ListWidgetRow @@ -83,7 +81,6 @@ public: ~ListWidgetDrawer(); void readSettings(); - void loadSkinColors(); int rowHeight() const; int numberWidth() const; void calculateNumberWidth(int count); @@ -98,22 +95,19 @@ public: private: QColor m_normal, m_current, m_normal_bg, m_selected_bg, m_alternate_bg, m_highlighted, m_splitter; QColor m_group_bg, m_group_alt_bg, m_group_text, m_current_bg, m_current_alt_bg; - Skin *m_skin; - QFontMetrics *m_metrics; - QFontMetrics *m_extra_metrics; + QFontMetrics *m_metrics = nullptr; + QFontMetrics *m_extra_metrics = nullptr; QFont m_font, m_extra_font; - bool m_update; - bool m_show_numbers; - bool m_show_anchor; - bool m_align_numbers; - bool m_show_lengths; - bool m_use_skin_colors; - bool m_single_column; - bool m_show_splitters; - bool m_alternate_splitter_color; - int m_padding; - int m_number_width; - int m_row_height; + bool m_show_numbers = false; + bool m_show_anchor = false; + bool m_align_numbers = false; + bool m_show_lengths = false; + bool m_use_skin_colors = false; + bool m_single_column = false; + bool m_show_splitters = false; + int m_padding = 0; + int m_number_width = 0; + int m_row_height = 0; }; #endif // LISTWIDGETDRAWER_H -- cgit v1.2.3-13-gbd6f