aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/listwidget.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-06-29 12:36:37 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-06-29 12:36:37 +0000
commitcde2bf3d8d2c5d132805d1c142940410d6a22596 (patch)
tree0652990365df5c2d667e04ab9f606e1592018d27 /src/plugins/Ui/skinned/listwidget.cpp
parenteb0064e40886328f3b3d9a809abd61c804903a7f (diff)
downloadqmmp-cde2bf3d8d2c5d132805d1c142940410d6a22596.tar.gz
qmmp-cde2bf3d8d2c5d132805d1c142940410d6a22596.tar.bz2
qmmp-cde2bf3d8d2c5d132805d1c142940410d6a22596.zip
skinned: added horizontal slider
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5188 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/listwidget.cpp')
-rw-r--r--src/plugins/Ui/skinned/listwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/Ui/skinned/listwidget.cpp b/src/plugins/Ui/skinned/listwidget.cpp
index 1688e0cdb..3a76881cc 100644
--- a/src/plugins/Ui/skinned/listwidget.cpp
+++ b/src/plugins/Ui/skinned/listwidget.cpp
@@ -37,6 +37,7 @@
#include "actionmanager.h"
#include "skin.h"
#include "popupwidget.h"
+#include "horizontalslider.h"
#include "playlist.h"
#define INVALID_INDEX -1
@@ -53,6 +54,7 @@ ListWidget::ListWidget(QWidget *parent)
m_timer->setInterval(50);
m_header = new PlayListHeader(this);
+ m_slider = new HorizontalSlider(this);
m_update = false;
m_drop_index = INVALID_INDEX;
m_scroll_direction = NONE;
@@ -247,6 +249,7 @@ void ListWidget::mousePressEvent(QMouseEvent *e)
void ListWidget::resizeEvent(QResizeEvent *e)
{
m_header->setGeometry(0,0,width(), m_header->requiredHeight());
+ m_slider->setGeometry(0, height() - 7, width(), 7);
m_row_count = (e->size().height() - (m_header->isVisibleTo(this) ? m_header->height() : 0)) / m_drawer.rowHeight();
m_row_count = qMax(m_row_count, 0);
updateList(PlayListModel::STRUCTURE);