KHTML
Go to the documentation of this file.
24 #include <QtGui/QHBoxLayout>
25 #include <QtGui/QToolButton>
26 #include <QtGui/QResizeEvent>
31 QHBoxLayout *layout =
new QHBoxLayout;
34 layout->setMargin( 2 );
37 if ( addCloseButton ) {
39 hideButton->setAutoRaise(
true );
40 hideButton->setIcon(
KIcon(
"dialog-close" ) );
41 connect( hideButton, SIGNAL(clicked()), SIGNAL(
hideMe()) );
42 layout->addWidget( hideButton );
43 layout->setAlignment( hideButton, Qt::AlignLeft | Qt::AlignTop );
47 m_centralWidget =
new QWidget(
this );
48 layout->addWidget( m_centralWidget );
51 setFocusProxy( m_centralWidget );
56 if ( event->size().width() != width() )
57 resize( event->size().width(), minimumSize().height() );
58 QWidget::resizeEvent( event );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 20:22:27 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.