Reintroducing scroll arrows, since the visual glitch seems a Qt bug

This commit is contained in:
Andrea Decorte 2011-04-15 21:54:19 +00:00
parent b9d35c29fe
commit 32ae9bd1de
1 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,7 @@ PlaylistTabBar::PlaylistTabBar(QWidget *parent)
{
setAcceptDrops(true);
setElideMode(Qt::ElideRight);
setUsesScrollButtons(false);
setUsesScrollButtons(true);
remove_ = menu_->addAction(IconLoader::Load("list-remove"), tr("Remove playlist"), this, SLOT(Remove()));
rename_ = menu_->addAction(IconLoader::Load("edit-rename"), tr("Rename playlist..."), this, SLOT(Rename()));
@ -267,9 +267,10 @@ void PlaylistTabBar::dropEvent(QDropEvent* e) {
}
bool PlaylistTabBar::event(QEvent* e) {
QHelpEvent *he = static_cast<QHelpEvent*>(e);
switch (he->type()) {
switch (e->type()) {
case QEvent::ToolTip: {
QHelpEvent *he = static_cast<QHelpEvent*>(e);
QRect displayed_tab;
QSize real_tab;
bool is_elided = false;