| 52 | } |
| 53 | |
| 54 | void 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 | |
| 71 | QSize TransactionItemView::sizeHint() const |
| 72 | { |