43 #include "private/qapplication_p.h" 44 #include "private/qgraphicssystem_p.h" 46 #include "private/qwidget_p.h" 47 #include "private/qdesktopwidget_qpa_p.h" 57 int targetLength = screenList.
length();
61 if(currentLength > targetLength) {
63 while (currentLength-- > targetLength) {
68 else if (currentLength < targetLength) {
70 while (currentLength < targetLength) {
93 d->updateScreenList();
102 return QApplicationPrivate::platformIntegration()->isVirtualDesktop();
119 if (screen < 0 || screen >=
d->screens.length())
120 return d->screens.at(0);
121 return d->screens.at(screen);
130 if (screenNo < 0 || screenNo >= screens.
size())
133 return screens[screenNo]->availableGeometry();
142 if (screenNo < 0 || screenNo >= screens.
size())
145 return screens[screenNo]->geometry();
157 return screenNumber(midpoint);
165 for (
int i = 0; i < screens.
size(); ++i)
166 if (screens[i]->geometry().
contains(p))
#define QT_END_NAMESPACE
This macro expands to.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QRect boundingRect() const
Returns the bounding rectangle of this region.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
QPoint bottomRight() const
Returns the position of the rectangle's bottom-right corner.
const T & at(int i) const
Returns the item at index position i in the list.
The QResizeEvent class contains event parameters for resize events.
The QRegion class specifies a clip region for a painter.
void moveTopLeft(const QPoint &p)
Moves the rectangle, leaving the top-left corner at the given position.
int length() const
This function is identical to count().
The QPoint class defines a point in the plane using integer precision.
int size() const
Returns the number of items in the list.
The QRect class defines a rectangle in the plane using integer precision.
#define QT_USE_NAMESPACE
This macro expands to using QT_NAMESPACE if QT_NAMESPACE is defined and nothing otherwise.
T takeLast()
Removes the last item in the list and returns it.
The QList class is a template class that provides lists.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.