kdeplasma-addons: remove now redundant version check

the minimum Katie version is 4.14.0 now, see the following commit in the
kdelibs repo:
e7823a048493a1fbbcc93c5f71d4a39622eb6b55

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-28 21:03:25 +03:00
parent 9b96c28596
commit 8f5db4efad
2 changed files with 0 additions and 18 deletions

View file

@ -51,13 +51,8 @@ WallpaperQml::WallpaperQml(QObject *parent, const QVariantList &args)
m_component = new QDeclarativeComponent(m_engine);
connect(
#if QT_VERSION < 0x041300
m_component, SIGNAL(statusChanged(QDeclarativeComponent::Status)),
this, SLOT(componentStatusChanged(QDeclarativeComponent::Status))
#else
m_component, SIGNAL(statusChanged(QDeclarativeComponent::ComponentStatus)),
this, SLOT(componentStatusChanged(QDeclarativeComponent::ComponentStatus))
#endif
);
connect(this, SIGNAL(renderHintsChanged()), SLOT(resizeWallpaper()));
connect(m_scene, SIGNAL(changed(QList<QRectF>)), SLOT(shouldRepaint(QList<QRectF>)));
@ -91,11 +86,7 @@ void WallpaperQml::setPackageName(const QString& packageName)
kWarning() << "couldn't load the package named" << packageName;
}
#if QT_VERSION < 0x041300
void WallpaperQml::componentStatusChanged(QDeclarativeComponent::Status s)
#else
void WallpaperQml::componentStatusChanged(QDeclarativeComponent::ComponentStatus s)
#endif
{
if (s==QDeclarativeComponent::Ready) {
if (m_item) {
@ -113,13 +104,8 @@ void WallpaperQml::componentStatusChanged(QDeclarativeComponent::ComponentStatus
delete m_component;
m_component = new QDeclarativeComponent(m_engine);
connect(
#if QT_VERSION < 0x041300
m_component, SIGNAL(statusChanged(QDeclarativeComponent::Status)),
this, SLOT(componentStatusChanged(QDeclarativeComponent::Status))
#else
m_component, SIGNAL(statusChanged(QDeclarativeComponent::ComponentStatus)),
this, SLOT(componentStatusChanged(QDeclarativeComponent::ComponentStatus))
#endif
);
}
if (!m_component->errors().isEmpty())

View file

@ -40,11 +40,7 @@ class WallpaperQml : public Plasma::Wallpaper
private slots:
void resizeWallpaper();
void shouldRepaint(const QList< QRectF >& rects);
#if QT_VERSION < 0x041300
void componentStatusChanged(QDeclarativeComponent::Status s);
#else
void componentStatusChanged(QDeclarativeComponent::ComponentStatus s);
#endif
void setPackageName(const QString& name);
void changeWallpaper(const QModelIndex& idx);
void setBackgroundColor(const QColor& color);