KDDockWidgets API Documentation  1.5
Public Member Functions | List of all members
Layouting::Widget_qwidget Class Reference

A Layouting::Widget that's deals in QWidget Allows to host a QWidget in the layout. More...

#include <Widget_qwidget.h>

Inheritance diagram for Layouting::Widget_qwidget:
Inheritance graph
[legend]
Collaboration diagram for Layouting::Widget_qwidget:
Collaboration graph
[legend]

Public Member Functions

 Widget_qwidget (QWidget *thisWidget)
 
 ~Widget_qwidget () override
 
QWidgetasQWidget () const override
 
QDebugdumpDebug (QDebug &) const override
 
QRect geometry () const override
 
void hide () override
 
bool isVisible () const override
 
QSize maxSizeHint () const override
 
QSize minSize () const override
 
void move (int x, int y) override
 
std::unique_ptr< WidgetparentWidget () const override
 
void setGeometry (QRect) override
 
void setHeight (int height) override
 
void setLayoutItem (Item *) override
 
void setParent (Widget *) override
 
void setSize (int width, int height) override
 
void setVisible (bool) const override
 
void setWidth (int width) override
 
void show () override
 
QSize sizeHint () const override
 
void update () override
 
- Public Member Functions inherited from Layouting::Widget
 Widget (QObject *thisObj)
 
virtual ~Widget ()
 
QObjectasQObject () const
 
QString id () const
 returns an id for corelation purposes for saving layouts More...
 
bool operator== (const QObject *obj) const
 
QObjectparent () const
 
QRect rect () const
 
QSize size () const
 
int x () const
 
int y () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Layouting::Widget
template<typename T >
static QSize widgetMaxSize (const T *w)
 
template<typename T >
static QSize widgetMinSize (const T *w)
 
- Static Protected Member Functions inherited from Layouting::Widget
static QSize boundedMaxSize (QSize min, QSize max)
 

Detailed Description

A Layouting::Widget that's deals in QWidget Allows to host a QWidget in the layout.

Definition at line 27 of file Widget_qwidget.h.

Constructor & Destructor Documentation

◆ Widget_qwidget()

Widget_qwidget::Widget_qwidget ( QWidget thisWidget)
explicit

Definition at line 20 of file Widget_qwidget.cpp.

Referenced by parentWidget().

◆ ~Widget_qwidget()

Widget_qwidget::~Widget_qwidget ( )
override

Definition at line 26 of file Widget_qwidget.cpp.

Member Function Documentation

◆ asQWidget()

QWidget* Layouting::Widget_qwidget::asQWidget ( ) const
inlineoverridevirtual

Reimplemented from Layouting::Widget.

Definition at line 33 of file Widget_qwidget.h.

◆ dumpDebug()

QDebug & Widget_qwidget::dumpDebug ( QDebug d) const
overridevirtual

Implements Layouting::Widget.

Definition at line 70 of file Widget_qwidget.cpp.

References QPaintDevice::devicePixelRatio(), and Layouting::Widget::rect().

◆ geometry()

QRect Widget_qwidget::geometry ( ) const
overridevirtual

Implements Layouting::Widget.

Definition at line 45 of file Widget_qwidget.cpp.

References QWidget::geometry.

◆ hide()

void Widget_qwidget::hide ( )
overridevirtual

Implements Layouting::Widget.

Definition at line 102 of file Widget_qwidget.cpp.

References QWidget::hide().

◆ isVisible()

bool Widget_qwidget::isVisible ( ) const
overridevirtual

Implements Layouting::Widget.

Definition at line 78 of file Widget_qwidget.cpp.

References QWidget::isVisible().

◆ maxSizeHint()

QSize Widget_qwidget::maxSizeHint ( ) const
overridevirtual

Implements Layouting::Widget.

Definition at line 40 of file Widget_qwidget.cpp.

References Layouting::Widget::widgetMaxSize().

◆ minSize()

QSize Widget_qwidget::minSize ( ) const
overridevirtual

Implements Layouting::Widget.

Definition at line 35 of file Widget_qwidget.cpp.

References Layouting::Widget::widgetMinSize().

◆ move()

void Widget_qwidget::move ( int  x,
int  y 
)
overridevirtual

Implements Layouting::Widget.

Definition at line 107 of file Widget_qwidget.cpp.

References QWidget::move(), Layouting::Widget::x(), and Layouting::Widget::y().

◆ parentWidget()

std::unique_ptr< Widget > Widget_qwidget::parentWidget ( ) const
overridevirtual

Implements Layouting::Widget.

Definition at line 88 of file Widget_qwidget.cpp.

References Widget_qwidget(), and QWidget::parentWidget().

◆ setGeometry()

void Widget_qwidget::setGeometry ( QRect  rect)
overridevirtual

Implements Layouting::Widget.

Definition at line 50 of file Widget_qwidget.cpp.

References Layouting::Widget::rect(), and QWidget::setGeometry().

◆ setHeight()

void Widget_qwidget::setHeight ( int  height)
overridevirtual

Implements Layouting::Widget.

Definition at line 122 of file Widget_qwidget.cpp.

References setSize(), and QWidget::width.

◆ setLayoutItem()

void Layouting::Widget_qwidget::setLayoutItem ( Item *  )
inlineoverridevirtual

Implements Layouting::Widget.

Definition at line 48 of file Widget_qwidget.h.

◆ setParent()

void Widget_qwidget::setParent ( Widget parent)
overridevirtual

Implements Layouting::Widget.

Definition at line 55 of file Widget_qwidget.cpp.

References Layouting::Widget::parent(), and QWidget::setParent().

◆ setSize()

void Widget_qwidget::setSize ( int  width,
int  height 
)
overridevirtual

Implements Layouting::Widget.

Definition at line 112 of file Widget_qwidget.cpp.

References QWidget::resize().

Referenced by setHeight(), and setWidth().

◆ setVisible()

void Widget_qwidget::setVisible ( bool  is) const
overridevirtual

Implements Layouting::Widget.

Definition at line 83 of file Widget_qwidget.cpp.

References QWidget::setVisible().

◆ setWidth()

void Widget_qwidget::setWidth ( int  width)
overridevirtual

Implements Layouting::Widget.

Definition at line 117 of file Widget_qwidget.cpp.

References QWidget::height, and setSize().

◆ show()

void Widget_qwidget::show ( )
overridevirtual

Implements Layouting::Widget.

Definition at line 97 of file Widget_qwidget.cpp.

References QWidget::show().

◆ sizeHint()

QSize Widget_qwidget::sizeHint ( ) const
overridevirtual

Reimplemented from Layouting::Widget.

Definition at line 30 of file Widget_qwidget.cpp.

References QWidget::sizeHint.

◆ update()

void Widget_qwidget::update ( )
overridevirtual

Implements Layouting::Widget.

Definition at line 127 of file Widget_qwidget.cpp.

References QWidget::update().


The documentation for this class was generated from the following files:

© 2019-2022 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated on Mon Mar 7 2022 02:01:21 for KDDockWidgets API Documentation by doxygen 1.8.20