kleopatra
Go to the documentation of this file.
34 #include <config-kleopatra.h>
39 #include <QVBoxLayout>
46 static QSize getMinimumSizeHint(
const QWidget * w ) {
47 return w ? w->minimumSizeHint() : QSize( 0, 0 );
50 static QSize getSizeHint(
const QWidget * w ) {
51 return w ? w->sizeHint() : QSize( 0, 0 );
58 new QVBoxLayout( widget() );
59 setWidgetResizable(
true );
68 return QSize( getMinimumSizeHint( widget() ).width() + getSizeHint( verticalScrollBar() ).width() + 2*frameWidth(), 0 )
69 .expandedTo( QScrollArea::minimumSizeHint() );
74 const QSize widgetSizeHint = getSizeHint( widget() );
75 const int fw = frameWidth();
76 return QScrollArea::sizeHint().expandedTo( widgetSizeHint + QSize( 2*fw, 2*fw ) + QSize( getSizeHint( verticalScrollBar() ).width(), 0 ) );
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.