KDEUI
Go to the documentation of this file.
23 class KToolBarSpacerAction::Private
33 void _k_spacerDestroyed(
QObject* spacer )
35 spacers.removeAll( static_cast<QWidget*>( spacer ) );
60 if ( d->width == width )
65 foreach (
QWidget* spacer, d->spacers )
66 spacer->resize( width, spacer->height() );
71 return d->minimumWidth;
76 if ( d->minimumWidth == width )
79 d->minimumWidth =
width;
81 foreach (
QWidget* spacer, d->spacers )
82 spacer->setMinimumWidth( width );
87 return d->maximumWidth;
92 if ( d->maximumWidth == width )
95 d->maximumWidth =
width;
97 foreach (
QWidget* spacer, d->spacers )
98 spacer->setMaximumWidth( width );
105 return KAction::createWidget(_parent);
107 spacer->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );
109 d->spacers.append( spacer );
110 connect( spacer, SIGNAL(destroyed(
QObject*)),
111 SLOT(_k_spacerDestroyed(
QObject*)) );
118 d->spacers.removeAll(widget);
119 KAction::deleteWidget(widget);
122 #include "ktoolbarspaceraction.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Sep 23 2014 09:57:49 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.