Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
f6d14f04
Commit
f6d14f04
authored
Mar 10, 2022
by
Volker Krause
Browse files
Adapt to QQuickItem::geometryChanged() rename in Qt6
parent
fe56f36d
Pipeline
#148634
passed with stage
in 38 minutes and 19 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/effects/overview/expolayout.cpp
View file @
f6d14f04
...
...
@@ -304,12 +304,20 @@ void ExpoLayout::removeCell(ExpoCell *cell)
polish
();
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void
ExpoLayout
::
geometryChanged
(
const
QRectF
&
newGeometry
,
const
QRectF
&
oldGeometry
)
#else
void
ExpoLayout
::
geometryChange
(
const
QRectF
&
newGeometry
,
const
QRectF
&
oldGeometry
)
#endif
{
if
(
newGeometry
.
size
()
!=
oldGeometry
.
size
())
{
polish
();
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QQuickItem
::
geometryChanged
(
newGeometry
,
oldGeometry
);
#else
QQuickItem
::
geometryChange
(
newGeometry
,
oldGeometry
);
#endif
}
static
int
distance
(
const
QPoint
&
a
,
const
QPoint
&
b
)
...
...
src/effects/overview/expolayout.h
View file @
f6d14f04
...
...
@@ -47,7 +47,11 @@ public:
void
setReady
();
protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void
geometryChanged
(
const
QRectF
&
newGeometry
,
const
QRectF
&
oldGeometry
)
override
;
#else
void
geometryChange
(
const
QRectF
&
newGeometry
,
const
QRectF
&
oldGeometry
)
override
;
#endif
void
updatePolish
()
override
;
Q_SIGNALS:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment