KDE3Support
k3dockwidget_private.cpp
Go to the documentation of this file.
33 K3DockSplitter::K3DockSplitter(QWidget *parent, const char *name, Qt::Orientation orient, int pos)
180 minx = (child0->minimumWidth() > child1->minimumWidth()) ? child0->minimumWidth() : child1->minimumWidth();
181 maxx = (child0->maximumWidth() > child1->maximumWidth()) ? child0->maximumWidth() : child1->maximumWidth();
192 miny = (child0->minimumHeight() > child1->minimumHeight()) ? child0->minimumHeight() : child1->minimumHeight();
193 maxy = (child0->maximumHeight() > child1->maximumHeight()) ? child0->maximumHeight() : child1->maximumHeight();
254 // kDebug(282)<<"ResizeEvent :"<< ((initialised) ? "initialised":"not initialised")<<", "<< ((ev) ? "real event":"")<<", "<<(isVisible() ?"visible":"");
403 int position = checkValue( (m_orientation == Qt::Vertical ? width() : height()) * xpos / factor );
638 p->fillRect( 0,0, width(), height(), QBrush(QColorGroup(palette()).brush(QPalette::Background)) );
640 // ### TODO: is the centering done automatically or do we need some codelike for KDE3 (see below the #else part)
643 p->drawPixmap( (width() - pixmap()->width()) / 2, (height() - pixmap()->height()) / 2, *pixmap() );
713 if (embeddedWdg && ((embeddedWdg->focusPolicy() == Qt::ClickFocus) || (embeddedWdg->focusPolicy() == Qt::StrongFocus))) {
Like QSplitter but specially designed for dockwidgets stuff.
Definition: k3dockwidget_private.h:49
void setKeepSize(bool b=true)
If b is true, the splitter will keep its size on resize events.
Definition: k3dockwidget_private.cpp:612
virtual void resizeEvent(QResizeEvent *ev)
The resize event resizes child0, child1 and the divider.
Definition: k3dockwidget_private.cpp:240
virtual void leaveEvent(QEvent *)
Definition: k3dockwidget_private.cpp:670
K3DockButton_Private(QWidget *parent=0, const char *name=0)
Definition: k3dockwidget_private.cpp:625
K3DockSplitter(QWidget *parent=0, const char *name=0, Qt::Orientation orient=Qt::Vertical, int pos=50)
Constructor.
Definition: k3dockwidget_private.cpp:33
void setSeparatorPosX(int pos, bool do_resize=false)
For usage from outside.
Definition: k3dockwidget_private.cpp:229
QWidget * getAnother(QWidget *w) const
If w is child0, return child1, otherwise child0.
Definition: k3dockwidget_private.cpp:579
void setSeparatorPos(int pos, bool do_resize=true)
set separator position.
Definition: k3dockwidget_private.cpp:222
virtual void enterEvent(QEvent *)
Definition: k3dockwidget_private.cpp:664
int checkValueOverlapped(int position, QWidget *child) const
Make sure the splitter position is not out of bounds.
Definition: k3dockwidget_private.cpp:443
~K3DockWidgetPrivate()
Definition: k3dockwidget_private.cpp:705
int separatorPos() const
Return the separator position in the range [0..100000] To get the separator position in procent (%)...
Definition: k3dockwidget_private.cpp:235
void setForcedFixedHeight(K3DockWidget *dw, int h)
Definition: k3dockwidget_private.cpp:133
K3DockWidgetPrivate()
Definition: k3dockwidget_private.cpp:683
void restoreFromForcedFixedSize(K3DockWidget *dw)
Definition: k3dockwidget_private.cpp:155
void setForcedFixedWidth(K3DockWidget *dw, int w)
Definition: k3dockwidget_private.cpp:111
Floatable widget that can be dragged around with the mouse and encapsulate the actual widgets (and me...
Definition: k3dockwidget.h:415
virtual void drawButton(QPainter *)
Definition: k3dockwidget_private.cpp:636
void slotFocusEmbeddedWidget(QWidget *w=0L)
Especially used for Tab page docking.
Definition: k3dockwidget_private.cpp:709
virtual bool eventFilter(QObject *, QEvent *)
The eventfilter installed on the divider processes all splitter resizing events.
Definition: k3dockwidget_private.cpp:493
Definition: k3dockwidget_p.h:43
virtual void paintEvent(QPaintEvent *)
Definition: k3dockwidget_private.cpp:676
void setSeparatorPosInPercent(int percent)
Set the separator position in percent (%), so the range must be [0..100].
Definition: k3dockwidget_private.cpp:217
int checkValue(int position) const
Make sure the splitter position is not out of bounds.
Definition: k3dockwidget_private.cpp:467
int separatorPosInPercent()
Return the separator position in percent (%), so the range is [0..100].
Definition: k3dockwidget_private.cpp:212
~K3DockButton_Private()
Definition: k3dockwidget_private.cpp:632
void activate(QWidget *c0, QWidget *c1=0L)
Initialize the splitter.
Definition: k3dockwidget_private.cpp:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.