The KisQmlPopupWidgetManager class This encapsulates a KisQQuickPopupWidget.h class, so it can be used from QML.
More...
#include <KisQmlPopupWidgetManager.h>
The KisQmlPopupWidgetManager class This encapsulates a KisQQuickPopupWidget.h class, so it can be used from QML.
QQuickWidgets don't allow popups to go outside their bounds, so this class is essentially working around that by using a KisQQuickPopupWidget to wrap the content item in.
Definition at line 21 of file KisQmlPopupWidgetManager.h.
◆ KisQmlPopupWidgetManager()
| KisQmlPopupWidgetManager::KisQmlPopupWidgetManager |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ ~KisQmlPopupWidgetManager()
| KisQmlPopupWidgetManager::~KisQmlPopupWidgetManager |
( |
| ) |
|
◆ bottomMargin()
| qreal KisQmlPopupWidgetManager::bottomMargin |
( |
| ) |
const |
◆ bottomMarginChanged
| void KisQmlPopupWidgetManager::bottomMarginChanged |
( |
| ) |
|
|
signal |
◆ close()
| void KisQmlPopupWidgetManager::close |
( |
| ) |
|
◆ itemParent()
| QQuickItem * KisQmlPopupWidgetManager::itemParent |
( |
| ) |
const |
◆ itemParentChanged
| void KisQmlPopupWidgetManager::itemParentChanged |
( |
| ) |
|
|
signal |
◆ leftMargin()
| qreal KisQmlPopupWidgetManager::leftMargin |
( |
| ) |
const |
◆ leftMarginChanged
| void KisQmlPopupWidgetManager::leftMarginChanged |
( |
| ) |
|
|
signal |
◆ margins()
| qreal KisQmlPopupWidgetManager::margins |
( |
| ) |
const |
◆ marginsChanged
| void KisQmlPopupWidgetManager::marginsChanged |
( |
| ) |
|
|
signal |
◆ open()
| void KisQmlPopupWidgetManager::open |
( |
| ) |
|
Definition at line 180 of file KisQmlPopupWidgetManager.cpp.
181{
182 if (!
d->itemParent) {
183 qWarning() << "Parent not set! PopupWidget requires parent to be explicitely set!";
184 return;
185 }
188 d->popup->move(
d->itemParent->mapToGlobal(QPointF(
d->x,
d->y)).toPoint());
189
190 d->popup->activateWindow();
192}
References d, and visibleChanged().
◆ releaseKeyboard()
| void KisQmlPopupWidgetManager::releaseKeyboard |
( |
| ) |
|
◆ resetBottomMargin()
| void KisQmlPopupWidgetManager::resetBottomMargin |
( |
| ) |
|
◆ resetLeftMargin()
| void KisQmlPopupWidgetManager::resetLeftMargin |
( |
| ) |
|
◆ resetRightMargin()
| void KisQmlPopupWidgetManager::resetRightMargin |
( |
| ) |
|
◆ resetTopMargin()
| void KisQmlPopupWidgetManager::resetTopMargin |
( |
| ) |
|
◆ rightMargin()
| qreal KisQmlPopupWidgetManager::rightMargin |
( |
| ) |
const |
◆ rightMarginChanged
| void KisQmlPopupWidgetManager::rightMarginChanged |
( |
| ) |
|
|
signal |
◆ rootControl()
| QQuickItem * KisQmlPopupWidgetManager::rootControl |
( |
| ) |
const |
◆ rootControlChanged
| void KisQmlPopupWidgetManager::rootControlChanged |
( |
| ) |
|
|
signal |
◆ setBottomMargin()
| void KisQmlPopupWidgetManager::setBottomMargin |
( |
const qreal | value | ) |
|
◆ setItemParent()
| void KisQmlPopupWidgetManager::setItemParent |
( |
QQuickItem * | item | ) |
|
◆ setLeftMargin()
| void KisQmlPopupWidgetManager::setLeftMargin |
( |
const qreal | value | ) |
|
◆ setMargins()
| void KisQmlPopupWidgetManager::setMargins |
( |
const qreal | value | ) |
|
◆ setRightMargin()
| void KisQmlPopupWidgetManager::setRightMargin |
( |
const qreal | value | ) |
|
◆ setTopMargin()
| void KisQmlPopupWidgetManager::setTopMargin |
( |
const qreal | value | ) |
|
◆ setX()
| void KisQmlPopupWidgetManager::setX |
( |
const qreal | value | ) |
|
◆ setY()
| void KisQmlPopupWidgetManager::setY |
( |
const qreal | value | ) |
|
◆ topMargin()
| qreal KisQmlPopupWidgetManager::topMargin |
( |
| ) |
const |
◆ topMarginChanged
| void KisQmlPopupWidgetManager::topMarginChanged |
( |
| ) |
|
|
signal |
◆ updateMargins
| void KisQmlPopupWidgetManager::updateMargins |
( |
| ) |
|
|
privateslot |
◆ visible()
| bool KisQmlPopupWidgetManager::visible |
( |
| ) |
const |
◆ visibleChanged
| void KisQmlPopupWidgetManager::visibleChanged |
( |
| ) |
|
|
signal |
◆ x()
| qreal KisQmlPopupWidgetManager::x |
( |
| ) |
const |
◆ xChanged
| void KisQmlPopupWidgetManager::xChanged |
( |
| ) |
|
|
signal |
◆ y()
| qreal KisQmlPopupWidgetManager::y |
( |
| ) |
const |
◆ yChanged
| void KisQmlPopupWidgetManager::yChanged |
( |
| ) |
|
|
signal |
| QScopedPointer<Private> KisQmlPopupWidgetManager::d |
|
private |
◆ bottomMargin
| qreal KisQmlPopupWidgetManager::bottomMargin |
|
readwrite |
◆ leftMargin
| qreal KisQmlPopupWidgetManager::leftMargin |
|
readwrite |
◆ margins
| qreal KisQmlPopupWidgetManager::margins |
|
readwrite |
◆ parent
| QQuickItem* KisQmlPopupWidgetManager::parent |
|
readwrite |
◆ rightMargin
| qreal KisQmlPopupWidgetManager::rightMargin |
|
readwrite |
◆ rootControl
| QQuickItem* KisQmlPopupWidgetManager::rootControl |
|
read |
◆ topMargin
| qreal KisQmlPopupWidgetManager::topMargin |
|
readwrite |
◆ visible
| bool KisQmlPopupWidgetManager::visible |
|
read |
| qreal KisQmlPopupWidgetManager::x |
|
readwrite |
| qreal KisQmlPopupWidgetManager::y |
|
readwrite |
The documentation for this class was generated from the following files: