Libplasma
appletpopup.cpp
71 PlasmaShellWaylandIntegration::get(this)->setRole(QtWayland::org_kde_plasma_surface::role::role_appletpopup);
97 connect(this, &PopupPlasmaWindow::effectivePopupDirectionChanged, this, updateWindowResizerEdges);
195 bool childHasFocus = focusWindow && ((focusWindow->isActive() && isAncestorOf(focusWindow)) || (focusWindow->type() & Qt::Popup) == Qt::Popup);
197 const bool viewClicked = qobject_cast<const PlasmaQuick::SharedQmlEngine *>(focusWindow) || qobject_cast<const ConfigView *>(focusWindow);
217 connect(m_layoutChangedProxy.data(), &LayoutChangedProxy::maximumSizeChanged, this, &AppletPopup::updateMaxSize);
218 connect(m_layoutChangedProxy.data(), &LayoutChangedProxy::minimumSizeChanged, this, &AppletPopup::updateMinSize);
219 connect(m_layoutChangedProxy.data(), &LayoutChangedProxy::implicitSizeChanged, this, &AppletPopup::updateSize);
237 resize(std::max(size().width(), minimumSize().width()), std::max(size().height(), minimumSize().height()));
248 maxSize.setWidth(std::min(maxSize.width(), int(std::round(screen()->geometry().width() * 0.95))));
249 maxSize.setHeight(std::min(maxSize.height(), int(std::round(screen()->geometry().height() * 0.95))));
267 // NOTE: not using std::clamp as it might assert due to (possible) malformed values, sich as min > max
286 m_preferredWidth = QQmlProperty(item, QStringLiteral("Layout.preferredWidth"), qmlContext(item));
287 m_preferredHeight = QQmlProperty(item, QStringLiteral("Layout.preferredHeight"), qmlContext(item));
289 m_minimumWidth.connectNotifySignal(this, QMetaMethod::fromSignal(&LayoutChangedProxy::minimumSizeChanged).methodIndex());
290 m_minimumHeight.connectNotifySignal(this, QMetaMethod::fromSignal(&LayoutChangedProxy::minimumSizeChanged).methodIndex());
291 m_maximumWidth.connectNotifySignal(this, QMetaMethod::fromSignal(&LayoutChangedProxy::maximumSizeChanged).methodIndex());
292 m_maximumHeight.connectNotifySignal(this, QMetaMethod::fromSignal(&LayoutChangedProxy::maximumSizeChanged).methodIndex());
293 m_preferredWidth.connectNotifySignal(this, QMetaMethod::fromSignal(&LayoutChangedProxy::implicitSizeChanged).methodIndex());
294 m_preferredHeight.connectNotifySignal(this, QMetaMethod::fromSignal(&LayoutChangedProxy::implicitSizeChanged).methodIndex());
295 connect(item, &QQuickItem::implicitWidthChanged, this, &LayoutChangedProxy::implicitSizeChanged);
296 connect(item, &QQuickItem::implicitHeightChanged, this, &LayoutChangedProxy::implicitSizeChanged);
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QString readEntry(const char *key, const char *aDefault=nullptr) const
bool sync() override
static bool isPlatformX11()
static void setType(WId win, NET::WindowType windowType)
AppletPopup
bool hideOnWindowDeactivate
Whether the dialog should be hidden when the dialog loses focus.
Definition appletpopup.h:42
QQuickItem * appletInterface
This property holds a pointer to the AppletInterface used by.
Definition appletpopup.h:35
The EdgeEventForwarder class This class forwards edge events to be replayed within the given margin T...
Definition edgeeventforwarder.h:27
The PopupPlasmaWindow class is a styled Plasma window that can be positioned relative to an existing ...
Definition popupplasmawindow.h:25
static PlasmaShellWaylandIntegration * get(QWindow *window)
Returns the relevant PlasmaWaylandShellIntegration instance for this window creating one if needed.
Definition plasmashellwaylandintegration.cpp:127
KCRASH_EXPORT void setFlags(KCrash::CrashFlags flags)
The EdgeEventForwarder class This class forwards edge events to be replayed within the given margin T...
Definition action.h:20
QWindow * focusWindow()
QMetaMethod fromSignal(PointerToMemberFunction signal)
Q_EMITQ_EMIT
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
T * data() const const
QVariant read(const QObject *object, const QString &name)
void implicitHeightChanged()
void implicitWidthChanged()
transientParent
T * data() const const
void reset(T *other)
void geometryChanged(const QRect &geometry)
QSize grownBy(QMargins margins) const const
int height() const const
bool isEmpty() const const
int & rheight()
int & rwidth()
void setHeight(int height)
void setWidth(int width)
QSize shrunkBy(QMargins margins) const const
int width() const const
Dialog
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
qreal toReal(bool *ok) const const
flags
virtual void focusOutEvent(QFocusEvent *ev)
QRect geometry() const const
height
virtual void hideEvent(QHideEvent *ev)
bool isActive() const const
bool isAncestorOf(const QWindow *child, AncestorMode mode) const const
QSize maximumSize() const const
QSize minimumSize() const const
void resize(const QSize &newSize)
QScreen * screen() const const
void setMaximumSize(const QSize &size)
void setMinimumSize(const QSize &size)
virtual QSize size() const const override
transientParent
Qt::WindowType type() const const
void setVisible(bool visible)
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.