resize the graphicswidget when the dialog resizes, now it's done in a
waay cleaner way sonce the thing is no more in a layout :) svn path=/trunk/KDE/kdelibs/; revision=896336
This commit is contained in:
parent
26c61a6205
commit
19e5467675
10
dialog.cpp
10
dialog.cpp
@ -328,15 +328,7 @@ void Dialog::resizeEvent(QResizeEvent *e)
|
||||
setMask(d->background->mask());
|
||||
|
||||
if (d->resizeStartCorner != Dialog::NoCorner && d->view && d->widget) {
|
||||
d->widget->setPreferredSize(d->view->size());
|
||||
|
||||
QGraphicsLayoutItem *layout = d->widget->parentLayoutItem();
|
||||
QGraphicsWidget *parentWidget = d->widget->parentWidget();
|
||||
|
||||
if (layout && parentWidget) {
|
||||
layout->updateGeometry();
|
||||
parentWidget->resize(layout->preferredSize());
|
||||
}
|
||||
d->widget->resize(d->view->size());
|
||||
|
||||
d->view->setSceneRect(d->widget->mapToScene(d->widget->boundingRect()).boundingRect());
|
||||
d->view->centerOn(d->widget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user