Use consistent naming of QPA screen change callbacks in QGuiApplication
Change-Id: I76be8a993e5d71e472faf9a5770b4c1128e8a4c6 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
f271dd8f96
commit
be35539123
@ -1858,19 +1858,19 @@ void QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePriv
|
||||
static_cast<QWindowSystemInterfacePrivate::CloseEvent *>(e));
|
||||
break;
|
||||
case QWindowSystemInterfacePrivate::ScreenOrientation:
|
||||
QGuiApplicationPrivate::reportScreenOrientationChange(
|
||||
QGuiApplicationPrivate::processScreenOrientationChange(
|
||||
static_cast<QWindowSystemInterfacePrivate::ScreenOrientationEvent *>(e));
|
||||
break;
|
||||
case QWindowSystemInterfacePrivate::ScreenGeometry:
|
||||
QGuiApplicationPrivate::reportGeometryChange(
|
||||
QGuiApplicationPrivate::processScreenGeometryChange(
|
||||
static_cast<QWindowSystemInterfacePrivate::ScreenGeometryEvent *>(e));
|
||||
break;
|
||||
case QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInch:
|
||||
QGuiApplicationPrivate::reportLogicalDotsPerInchChange(
|
||||
QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange(
|
||||
static_cast<QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *>(e));
|
||||
break;
|
||||
case QWindowSystemInterfacePrivate::ScreenRefreshRate:
|
||||
QGuiApplicationPrivate::reportRefreshRateChange(
|
||||
QGuiApplicationPrivate::processScreenRefreshRateChange(
|
||||
static_cast<QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *>(e));
|
||||
break;
|
||||
case QWindowSystemInterfacePrivate::ThemeChange:
|
||||
@ -2901,7 +2901,7 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
|
||||
}
|
||||
}
|
||||
|
||||
void QGuiApplicationPrivate::reportScreenOrientationChange(QWindowSystemInterfacePrivate::ScreenOrientationEvent *e)
|
||||
void QGuiApplicationPrivate::processScreenOrientationChange(QWindowSystemInterfacePrivate::ScreenOrientationEvent *e)
|
||||
{
|
||||
// This operation only makes sense after the QGuiApplication constructor runs
|
||||
if (QCoreApplication::startingUp())
|
||||
@ -2938,7 +2938,7 @@ void QGuiApplicationPrivate::reportScreenOrientationChange(QScreen *s)
|
||||
QCoreApplication::sendEvent(QCoreApplication::instance(), &event);
|
||||
}
|
||||
|
||||
void QGuiApplicationPrivate::reportGeometryChange(QWindowSystemInterfacePrivate::ScreenGeometryEvent *e)
|
||||
void QGuiApplicationPrivate::processScreenGeometryChange(QWindowSystemInterfacePrivate::ScreenGeometryEvent *e)
|
||||
{
|
||||
// This operation only makes sense after the QGuiApplication constructor runs
|
||||
if (QCoreApplication::startingUp())
|
||||
@ -2981,7 +2981,7 @@ void QGuiApplicationPrivate::reportGeometryChange(QWindowSystemInterfacePrivate:
|
||||
}
|
||||
}
|
||||
|
||||
void QGuiApplicationPrivate::reportLogicalDotsPerInchChange(QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e)
|
||||
void QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange(QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e)
|
||||
{
|
||||
// This operation only makes sense after the QGuiApplication constructor runs
|
||||
if (QCoreApplication::startingUp())
|
||||
@ -2996,7 +2996,7 @@ void QGuiApplicationPrivate::reportLogicalDotsPerInchChange(QWindowSystemInterfa
|
||||
emit s->logicalDotsPerInchChanged(s->logicalDotsPerInch());
|
||||
}
|
||||
|
||||
void QGuiApplicationPrivate::reportRefreshRateChange(QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e)
|
||||
void QGuiApplicationPrivate::processScreenRefreshRateChange(QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e)
|
||||
{
|
||||
// This operation only makes sense after the QGuiApplication constructor runs
|
||||
if (QCoreApplication::startingUp())
|
||||
|
@ -139,10 +139,10 @@ public:
|
||||
|
||||
static void updateFilteredScreenOrientation(QScreen *screen);
|
||||
static void reportScreenOrientationChange(QScreen *screen);
|
||||
static void reportScreenOrientationChange(QWindowSystemInterfacePrivate::ScreenOrientationEvent *e);
|
||||
static void reportGeometryChange(QWindowSystemInterfacePrivate::ScreenGeometryEvent *e);
|
||||
static void reportLogicalDotsPerInchChange(QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e);
|
||||
static void reportRefreshRateChange(QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e);
|
||||
static void processScreenOrientationChange(QWindowSystemInterfacePrivate::ScreenOrientationEvent *e);
|
||||
static void processScreenGeometryChange(QWindowSystemInterfacePrivate::ScreenGeometryEvent *e);
|
||||
static void processScreenLogicalDotsPerInchChange(QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e);
|
||||
static void processScreenRefreshRateChange(QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e);
|
||||
static void processThemeChanged(QWindowSystemInterfacePrivate::ThemeChangeEvent *tce);
|
||||
|
||||
static void processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent *e);
|
||||
|
Loading…
Reference in New Issue
Block a user