X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fplaylist%2Fselector.cpp;h=2b42401046d1936ec3cf0f57bcf92d00d9351a77;hb=05d736eac9cb11e55fca0552ff4150cb48004ed8;hp=44a1999c3177654fb1ad0ee76dff7499ba4cc335;hpb=a9c6b1f121984d4962617c9da06261c8931d13af;p=vlc diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp index 44a1999c31..2b42401046 100644 --- a/modules/gui/qt4/components/playlist/selector.cpp +++ b/modules/gui/qt4/components/playlist/selector.cpp @@ -65,13 +65,14 @@ PLSelItem::PLSelItem ( QTreeWidgetItem *i, const QString& text ) layout->setContentsMargins(0,0,0,0); layout->addSpacing( 3 ); - lbl = new QLabel( text ); + lbl = new QVLCElidingLabel( text ); layout->addWidget(lbl, 1); setLayout( layout ); - setMinimumHeight( 22 ); //Action icon height plus 6 + int height = qMax( 22, fontMetrics().height() + 8 ); + setMinimumHeight( height ); } void PLSelItem::addAction( ItemAction act, const QString& tooltip )