Plasma
dialog.cpp
Go to the documentation of this file.
254 if (extender->d->scrollWidget->viewportGeometry().height() < extender->d->scrollWidget->contentsSize().height()) {
316 QSize newMaximumSize(qMin(int(graphicsWidget->maximumSize().width()) + left + right, maxSize.width()),
508 if ((newGeom.width() >= minimumSize().width()) && (newGeom.height() >= minimumSize().height())) {
711 //here have to be done immediately, ideally should have to be done -before- shwing, but is not possible to catch show() so early
QLayout * layout() const
void setBottom(int y)
Definition: framesvg.h:91
const QRect screenGeometry(int screen) const
Type type() const
const QPalette & palette() const
Qt::LayoutDirection layoutDirection()
int width() const
virtual QRect screenGeometry(int id) const
Returns the geometry of a given screen.
Definition: corona.cpp:441
void mouseReleaseEvent(QMouseEvent *event)
Definition: dialog.cpp:533
void unsetCursor()
void moveTopRight(const QPoint &position)
void setCompositionMode(CompositionMode mode)
void dialogVisible(bool status)
Emit a signal when the dialog become visible/invisible.
void enableBlurBehind(WId window, bool enable, const QRegion ®ion)
Instructs the window manager to blur the background in the specified region behind the given window...
Definition: windoweffects.cpp:310
void updateGeometry()
Definition: framesvg.h:88
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void overrideShadow(WId window, bool override)
Forbid te windowmanager to automatically generate a shadow for this window.
Definition: windoweffects.cpp:294
int right() const
Definition: framesvg.h:93
bool eventFilter(QObject *watched, QEvent *event)
Definition: dialog.cpp:673
void animatedShow(Plasma::Direction direction)
Causes an animated show; requires compositing to work, otherwise the dialog will simply show...
Definition: dialog.cpp:829
virtual Location location() const
Returns the location of the scene which is displaying applet.
Definition: applet.cpp:1618
The applet is no wider (in horizontal formfactors) or no higher (in vertical ones) than a square...
Definition: plasma.h:215
int x() const
int y() const
Plasma::AspectRatioMode aspectRatioMode() const
Definition: dialog.cpp:872
int minimumWidth() const
virtual QRegion availableScreenRegion(int id) const
Returns the available region for a given screen.
Definition: corona.cpp:454
int y() const
bool isVisible() const
QRectF sceneBoundingRect() const
On the planar desktop layer, extending across the full screen from edge to edge.
Definition: plasma.h:111
void setAttribute(Qt::WidgetAttribute attribute, bool on)
int height() const
Qt::MouseButtons buttons() const
void moveBottomLeft(const QPoint &position)
QGraphicsScene * scene() const
virtual void mouseReleaseEvent(QMouseEvent *event)
int screenNumber(const QWidget *widget) const
void syncToGraphicsWidget()
Adjusts the dialog to the associated QGraphicsWidget's geometry Should not normally need to be called...
Definition: dialog.cpp:283
int x() const
int y() const
const QRect & geometry() const
int width() const
void setGraphicsWidget(QGraphicsWidget *widget)
Sets a QGraphicsWidget to be shown as the content in this dialog.
Definition: dialog.cpp:614
QSize size() const
const QRect & rect() const
void setMinimumSize(const QSize &)
enabled
void installEventFilter(QObject *filterObj)
virtual void mousePressEvent(QMouseEvent *event)
int x() const
Location
The Location enumeration describes where on screen an element, such as an Applet or its managing cont...
Definition: plasma.h:108
int top() const
void setTop(int y)
int left() const
QPalette::ColorRole backgroundRole() const
Definition: framesvg.h:89
virtual void mouseMoveEvent(QMouseEvent *event)
QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint) const
QPoint center() const
virtual bool eventFilter(QObject *watched, QEvent *event)
bool inControlArea(const QPoint &point)
Convenience method to know whether the point is in a control area (e.g.
Definition: dialog.cpp:862
WId winId() const
bool contains(const QPoint &point, bool proper) const
void slideWindow(WId id, Plasma::Location location, int offset)
Mark a window as sliding from screen edge.
Definition: windoweffects.cpp:97
void hide()
maximumSize
void setMargin(int margin)
void getContentsMargins(int *left, int *top, int *right, int *bottom) const
void addWidget(QWidget *w)
void setMinimumResizeLimits(int left, int top, int right, int bottom)
Sets the minimum values that each of four sides of the rect may expand to or from.
Definition: dialog.cpp:769
Q_INVOKABLE bool windowTranslucencyEnabled() const
Definition: theme.cpp:998
Qt::KeyboardModifiers modifiers() const
bool contains(const QPoint &p) const
void animatedHide(Plasma::Direction direction)
Causes an animated hide; requires compositing to work, otherwise the dialog will simply hide...
Definition: dialog.cpp:796
int key() const
void setAspectRatioMode(Plasma::AspectRatioMode mode)
Sets the preferred aspect ratio mode for placement and resizing.
Definition: dialog.cpp:877
Definition: dialog.h:61
void setMaximumSize(const QSize &)
Definition: framesvg.h:90
Definition: dialog.h:60
void setRight(int x)
QVariant data(int key) const
Dialog(QWidget *parent=0, Qt::WindowFlags f=Qt::Window)
Definition: dialog.cpp:381
int width() const
int maximumWidth() const
QDesktopWidget * desktop()
int maximumHeight() const
void setFocus(Qt::FocusReason focusReason)
void getMinimumResizeLimits(int *left, int *top, int *right, int *bottom)
Retrives the minimum resize limits for the dialog.
Definition: dialog.cpp:777
Definition: dialog.h:63
void setWidth(qreal width)
Definition: framesvg.h:92
int height() const
int bottom() const
ResizeCorners resizeCorners() const
Convenience method to get the enabled resize corners.
Definition: dialog.cpp:759
int minimumHeight() const
void setMouseTracking(bool enable)
Definition: dialog.h:62
typedef WindowFlags
const QRect availableGeometry(int screen) const
void show()
layout
const QPoint & pos() const
void setResizeHandleCorners(ResizeCorners corners)
Definition: dialog.cpp:751
minimumSize
Direction
The Direction enumeration describes in which direction, relative to the Applet (and its managing cont...
Definition: plasma.h:89
qreal height() const
void addOffscreenWidget(QGraphicsWidget *widget)
Adds a widget in the topleft quadrant in the scene.
Definition: corona.cpp:377
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setSize(const QSize &size)
virtual bool event(QEvent *event)
void setLeft(int x)
qreal width() const
void setSpacing(int spacing)
int height() const
Definition: dialog.h:59
Definition: plasma.h:218
void rect(int *x, int *y, int *width, int *height) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 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:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.