[vlmc-devel] PreferenceWidget: Workaround wrong row height for FolderListWidget
Yikai Lu
git at videolan.org
Tue Jun 20 17:55:57 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jun 21 00:53:14 2017 +0900| [a81ef7d3bdeff55556fa22799ca49ffa75270f65] | committer: Yikai Lu
PreferenceWidget: Workaround wrong row height for FolderListWidget
> https://code.videolan.org/videolan/vlmc/commit/a81ef7d3bdeff55556fa22799ca49ffa75270f65
---
src/Gui/settings/PreferenceWidget.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Gui/settings/PreferenceWidget.cpp b/src/Gui/settings/PreferenceWidget.cpp
index d35bb5eb..fab79f27 100644
--- a/src/Gui/settings/PreferenceWidget.cpp
+++ b/src/Gui/settings/PreferenceWidget.cpp
@@ -62,6 +62,8 @@ PreferenceWidget::PreferenceWidget( const QString &name, const char *label, Sett
continue ;
ISettingsCategoryWidget *widget = widgetFactory( s );
QLabel *label = new QLabel( tr( s->name() ), this );
+ if ( s->flags().testFlag( SettingValue::Folders ) == true )
+ label->setMinimumHeight( 650 ); // The expected height of FolderListWidget
label->setToolTip( tr( s->description() ) );
m_labels.insert( s, label );
widget->setToolTip( s->description() );
More information about the Vlmc-devel
mailing list