[vlc-commits] Qt: epg: reset scrollbar due to autoscroll on input

Francois Cartegnie git at videolan.org
Tue Jul 4 20:26:07 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jul  4 16:05:09 2017 +0200| [5d0abf495d76f8b1a38705743df5af8e9ee30487] | committer: Francois Cartegnie

Qt: epg: reset scrollbar due to autoscroll on input

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d0abf495d76f8b1a38705743df5af8e9ee30487
---

 modules/gui/qt/dialogs/epg.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/dialogs/epg.cpp b/modules/gui/qt/dialogs/epg.cpp
index 48b15d7427..a7303da407 100644
--- a/modules/gui/qt/dialogs/epg.cpp
+++ b/modules/gui/qt/dialogs/epg.cpp
@@ -32,6 +32,7 @@
 
 #include <QVBoxLayout>
 #include <QSplitter>
+#include <QScrollBar>
 #include <QLabel>
 #include <QGroupBox>
 #include <QPushButton>
@@ -161,6 +162,7 @@ void EpgDialog::displayEvent( EPGItem *epgItem )
                              QString() )
                    );
     description->setText( epgItem->description() );
+    description->verticalScrollBar()->setValue(0);
 }
 
 void EpgDialog::updateInfos()



More information about the vlc-commits mailing list