diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-08-12 21:03:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-08-12 21:03:34 +0000 |
| commit | 7ef8d11baeaf1847ba7f1df5d858f8cffea9300d (patch) | |
| tree | a741fb49db8834efd4b46d760b89082547eb2a9d /src/plugins/Ui/qsui/listwidget.h | |
| parent | 6f301f5880f7efce76ed46e7b502830642b87370 (diff) | |
| download | qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.gz qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.bz2 qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.zip | |
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/qsui/listwidget.h')
| -rw-r--r-- | src/plugins/Ui/qsui/listwidget.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/plugins/Ui/qsui/listwidget.h b/src/plugins/Ui/qsui/listwidget.h index 795560a9a..46c3f04d8 100644 --- a/src/plugins/Ui/qsui/listwidget.h +++ b/src/plugins/Ui/qsui/listwidget.h @@ -47,7 +47,7 @@ class ListWidget : public QWidget { Q_OBJECT public: - ListWidget(PlayListModel *model, QWidget *parent = nullptr); + explicit ListWidget(PlayListModel *model, QWidget *parent = nullptr); ~ListWidget(); @@ -120,24 +120,22 @@ private: void restoreFirstVisible(); void updateScrollBars(); - bool m_update; - int m_pressed_index; - QMenu *m_menu; + bool m_update = false; + int m_pressed_index, m_drop_index, m_anchor_index; + QMenu *m_menu = nullptr; PlayListModel *m_model; - int m_row_count, m_first, m_count; //visible rows, first visible index, total item count - PlayListItem *m_firstItem; //first visible item - int m_anchor_index; + int m_row_count = 0, m_first = 0, m_count = 0; //visible rows, first visible index, total item count + PlayListItem *m_firstItem = nullptr; //first visible item /*! * Scroll direction that is performing in current moment. */ - ScrollDirection m_scroll_direction; - int m_prev_y; - bool m_select_on_release; + ScrollDirection m_scroll_direction = NONE; + int m_prev_y = 0; + bool m_select_on_release = false; bool m_show_protocol; - int m_drop_index; QList<ListWidgetRow *> m_rows; QmmpUiSettings *m_ui_settings; - PlayListPopup::PopupWidget *m_popupWidget; + PlayListPopup::PopupWidget *m_popupWidget = nullptr; QTimer *m_timer; QScrollBar *m_scrollBar; ListWidgetDrawer m_drawer; @@ -145,7 +143,7 @@ private: QScrollBar *m_hslider; QString m_filterString; - bool m_filterMode; + bool m_filterMode = false; QList<PlayListItem *> m_filteredItems; }; |
