while still adjusting hard size hints, keep the tabbar centered
svn path=/trunk/KDE/kdelibs/; revision=1115434
This commit is contained in:
parent
6ff8621d3a
commit
ee661f4347
@ -205,6 +205,7 @@ void TabBarPrivate::shapeChanged(const QTabBar::Shape shape)
|
|||||||
}
|
}
|
||||||
tabProxy->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
tabProxy->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||||
}
|
}
|
||||||
|
tabProxy->setPreferredSize(tabProxy->native->sizeHint());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabBarPrivate::setPalette()
|
void TabBarPrivate::setPalette()
|
||||||
@ -345,7 +346,6 @@ void TabBar::resizeEvent(QGraphicsSceneResizeEvent * event)
|
|||||||
setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
||||||
} else {
|
} else {
|
||||||
d->tabProxy->native->setMinimumSize(QSize(0,0));
|
d->tabProxy->native->setMinimumSize(QSize(0,0));
|
||||||
d->tabProxy->setMinimumSize(QSize(0,0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user