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))) {
bool isDown() const
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
Type type() const
const QPalette & palette() const
virtual void resizeEvent(QResizeEvent *ev)
The resize event resizes child0, child1 and the divider.
Definition: k3dockwidget_private.cpp:240
int width() const
virtual void leaveEvent(QEvent *)
Definition: k3dockwidget_private.cpp:670
void setCursor(const QCursor &)
void fillRect(const QRectF &rectangle, const QBrush &brush)
K3DockButton_Private(QWidget *parent=0, const char *name=0)
Definition: k3dockwidget_private.cpp:625
void setFocusPolicy(Qt::FocusPolicy policy)
K3DockSplitter(QWidget *parent=0, const char *name=0, Qt::Orientation orient=Qt::Vertical, int pos=50)
Constructor.
Definition: k3dockwidget_private.cpp:33
minimumWidth
int y() const
bool isVisible() const
void setSeparatorPosX(int pos, bool do_resize=false)
For usage from outside.
Definition: k3dockwidget_private.cpp:229
void setFrameStyle(int style)
void drawLine(const QLineF &line)
void setLineWidth(int)
QIcon icon() const
void setGeometry(int x, int y, int w, int h)
QWidget * getAnother(QWidget *w) const
If w is child0, return child1, otherwise child0.
Definition: k3dockwidget_private.cpp:579
int width() const
void setMinimumSize(const QSize &)
const char * name() const
void setSeparatorPos(int pos, bool do_resize=true)
set separator position.
Definition: k3dockwidget_private.cpp:222
const QPoint & globalPos() const
void installEventFilter(QObject *filterObj)
int x() const
bool inherits(const char *className) const
void setUpdatesEnabled(bool enable)
void setPen(const QColor &color)
void setFocus()
virtual void enterEvent(QEvent *)
Definition: k3dockwidget_private.cpp:664
const QSize & oldSize() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
int checkValueOverlapped(int position, QWidget *child) const
Make sure the splitter position is not out of bounds.
Definition: k3dockwidget_private.cpp:443
void raise()
const char * constData() const
QPoint pos() const
virtual bool eventFilter(QObject *watched, QEvent *event)
~K3DockWidgetPrivate()
Definition: k3dockwidget_private.cpp:705
const QPixmap * pixmap() const
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 hide()
void setForcedFixedHeight(K3DockWidget *dw, int h)
Definition: k3dockwidget_private.cpp:133
void paint(QPainter *painter, const QRect &rect, QFlags< Qt::AlignmentFlag > alignment, Mode mode, State state) const
QRect rect() const
void setName(const char *name)
const QSize & size() const
K3DockWidgetPrivate()
Definition: k3dockwidget_private.cpp:683
void restoreFromForcedFixedSize(K3DockWidget *dw)
Definition: k3dockwidget_private.cpp:155
void setMaximumSize(const QSize &)
void repaint()
bool isChecked() const
void setForcedFixedWidth(K3DockWidget *dw, int w)
Definition: k3dockwidget_private.cpp:111
QByteArray toLatin1() const
maximumWidth
QPoint pos()
Floatable widget that can be dragged around with the mouse and encapsulate the actual widgets (and me...
Definition: k3dockwidget.h:415
maximumHeight
QWidget * parentWidget() const
void setWindowTitle(const QString &)
QPoint mapFromGlobal(const QPoint &pos) const
int height() const
virtual void drawButton(QPainter *)
Definition: k3dockwidget_private.cpp:636
minimumHeight
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
void show()
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
virtual bool event(QEvent *event)
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
int height() const
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.