Go to the source code of this file.
◆ getDisplayId()
static int getDisplayId |
( |
const QString & |
spec | ) |
|
|
static |
Returns the display ID that corresponds to the given spec.
- Warning
- This function is not part of the public interface.
Definition at line 262 of file qscreenproxy_qws.cpp.
Referenced by QProxyScreen::connect().
265 if (regexp.lastIndexIn(spec) != -1) {
266 const QString capture = regexp.cap(1);
267 return capture.
toInt();
The QRegExp class provides pattern matching using regular expressions.
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.