Reintroducing scroll arrows, since the visual glitch seems a Qt bug
This commit is contained in:
parent
b9d35c29fe
commit
32ae9bd1de
@ -39,7 +39,7 @@ PlaylistTabBar::PlaylistTabBar(QWidget *parent)
|
|||||||
{
|
{
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
setElideMode(Qt::ElideRight);
|
setElideMode(Qt::ElideRight);
|
||||||
setUsesScrollButtons(false);
|
setUsesScrollButtons(true);
|
||||||
|
|
||||||
remove_ = menu_->addAction(IconLoader::Load("list-remove"), tr("Remove playlist"), this, SLOT(Remove()));
|
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()));
|
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) {
|
bool PlaylistTabBar::event(QEvent* e) {
|
||||||
QHelpEvent *he = static_cast<QHelpEvent*>(e);
|
switch (e->type()) {
|
||||||
switch (he->type()) {
|
|
||||||
case QEvent::ToolTip: {
|
case QEvent::ToolTip: {
|
||||||
|
QHelpEvent *he = static_cast<QHelpEvent*>(e);
|
||||||
|
|
||||||
QRect displayed_tab;
|
QRect displayed_tab;
|
||||||
QSize real_tab;
|
QSize real_tab;
|
||||||
bool is_elided = false;
|
bool is_elided = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user