diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-08-25 21:10:06 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-08-25 21:10:06 +0000 |
| commit | a8de6bc53396f50aa3f7f0af05e6bd91824f6a33 (patch) | |
| tree | d8564d8eaa3ead1c3ef3f340df4206a28b75e720 /src/plugins/Ui/skinned/listwidget.h | |
| parent | 3cc55bb058875aa84a39747f2b928d227ed46f45 (diff) | |
| download | qmmp-a8de6bc53396f50aa3f7f0af05e6bd91824f6a33.tar.gz qmmp-a8de6bc53396f50aa3f7f0af05e6bd91824f6a33.tar.bz2 qmmp-a8de6bc53396f50aa3f7f0af05e6bd91824f6a33.zip | |
improved scrolling api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7389 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/listwidget.h')
| -rw-r--r-- | src/plugins/Ui/skinned/listwidget.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/Ui/skinned/listwidget.h b/src/plugins/Ui/skinned/listwidget.h index a28e53ea7..42157dbb8 100644 --- a/src/plugins/Ui/skinned/listwidget.h +++ b/src/plugins/Ui/skinned/listwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2016 by Ilya Kotov * + * Copyright (C) 2006-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -69,8 +69,7 @@ public: public slots: void readSettings(); void updateList(int flags); - void scroll(int); //0-99 - void recenterCurrent(); + void scroll(int); void setModel(PlayListModel *selected, PlayListModel *previous = 0); signals: @@ -97,13 +96,15 @@ private slots: void updateSkin(); void autoscroll(); void updateRepeatIndicator(); - void scrollToCurrent(); + void scrollTo(int index); private: enum ScrollDirection { NONE = 0,TOP,DOWN }; + + void recenterTo(int index); /*! * Returns string with queue number or(and) repeate flag for the item number \b i. */ |
