MCPcopy Create free account
hub / github.com/KDE/kdevelop / resizeEvent

Method resizeEvent

kdevplatform/shell/progresswidget/progressdialog.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void TransactionItemView::resizeEvent ( QResizeEvent *event )
55{
56 // Tell the layout in the parent (progressdialog) that our size changed
57 updateGeometry();
58
59 QSize sz = parentWidget()->sizeHint();
60 int currentWidth = parentWidget()->width();
61
62 // Don't resize to sz.width() every time when it only reduces a little bit
63 if ( currentWidth < sz.width() || currentWidth > sz.width() + 100 ) {
64 currentWidth = sz.width();
65 }
66 parentWidget()->resize( currentWidth, sz.height() );
67
68 QScrollArea::resizeEvent( event );
69}
70
71QSize TransactionItemView::sizeHint() const
72{

Callers

nothing calls this directly

Calls 1

sizeHintMethod · 0.45

Tested by

no test coverage detected