KDDockWidgets API Documentation
1.5
|
An abstraction/wrapper around QWidget, QtQuickItem or anything else. More...
#include <Widget.h>
Public Member Functions | |
Widget (QObject *thisObj) | |
virtual | ~Widget () |
QObject * | asQObject () const |
virtual QWidget * | asQWidget () const |
virtual QDebug & | dumpDebug (QDebug &) const =0 |
virtual QRect | geometry () const =0 |
virtual void | hide ()=0 |
QString | id () const |
returns an id for corelation purposes for saving layouts More... | |
virtual bool | isVisible () const =0 |
virtual QSize | maxSizeHint () const =0 |
virtual QSize | minSize () const =0 |
virtual void | move (int x, int y)=0 |
bool | operator== (const QObject *obj) const |
QObject * | parent () const |
virtual std::unique_ptr< Widget > | parentWidget () const =0 |
QRect | rect () const |
virtual void | setGeometry (QRect)=0 |
virtual void | setHeight (int height)=0 |
virtual void | setLayoutItem (Item *)=0 |
virtual void | setParent (Widget *)=0 |
virtual void | setSize (int width, int height)=0 |
virtual void | setVisible (bool) const =0 |
virtual void | setWidth (int width)=0 |
virtual void | show ()=0 |
QSize | size () const |
virtual QSize | sizeHint () const |
virtual void | update ()=0 |
int | x () const |
int | y () const |
Static Public Member Functions | |
template<typename T > | |
static QSize | widgetMaxSize (const T *w) |
template<typename T > | |
static QSize | widgetMinSize (const T *w) |
Static Protected Member Functions | |
static QSize | boundedMaxSize (QSize min, QSize max) |
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
So the layout can host QWidget, etc without depending on it.
Inherit from it via multi-inheritance so this wrapper is deleted when the actual QWidget/QQuickItem is deleted.
|
explicit |
Definition at line 19 of file Widget.cpp.
|
virtual |
Definition at line 25 of file Widget.cpp.
|
inlinevirtual |
Reimplemented in Layouting::Widget_qwidget.
Definition at line 34 of file Widget.cpp.
References QSize::boundedTo(), QSize::expandedTo(), QSize::height(), QSize::setHeight(), QSize::setWidth(), and QSize::width().
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
QString Widget::id | ( | ) | const |
returns an id for corelation purposes for saving layouts
Definition at line 29 of file Widget.cpp.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
inline |
|
inline |
Definition at line 128 of file Widget.h.
References QObject::parent().
Referenced by Layouting::Widget_quick::createQQuickItem(), Layouting::SeparatorQuick::createRubberBand(), Layouting::Widget_quick::setParent(), and Layouting::Widget_qwidget::setParent().
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
inline |
Definition at line 119 of file Widget.h.
Referenced by Layouting::Widget_quick::dumpDebug(), Layouting::Widget_qwidget::dumpDebug(), Layouting::Widget_quick::setGeometry(), and Layouting::Widget_qwidget::setGeometry().
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
inlinevirtual |
Reimplemented in Layouting::Widget_qwidget.
|
pure virtual |
Implemented in Layouting::Widget_qwidget, and Layouting::Widget_quick.
|
inlinestatic |
Definition at line 164 of file Widget.h.
References QSizePolicy::Fixed, QSize::height(), QSizePolicy::horizontalPolicy(), QSizePolicy::Maximum, QSize::setHeight(), QSize::setWidth(), QSizePolicy::verticalPolicy(), and QSize::width().
Referenced by Layouting::Widget_qwidget::maxSizeHint().
|
inlinestatic |
Definition at line 152 of file Widget.h.
References QSize::expandedTo(), and QSize::width().
Referenced by Layouting::Widget_qwidget::minSize().
|
inline |
Definition at line 133 of file Widget.h.
Referenced by Layouting::Widget_quick::move(), and Layouting::Widget_qwidget::move().
|
inline |
Definition at line 138 of file Widget.h.
Referenced by Layouting::Widget_quick::move(), and Layouting::Widget_qwidget::move().