mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
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:
parent
9b96c28596
commit
8f5db4efad
2 changed files with 0 additions and 18 deletions
|
@ -51,13 +51,8 @@ WallpaperQml::WallpaperQml(QObject *parent, const QVariantList &args)
|
||||||
|
|
||||||
m_component = new QDeclarativeComponent(m_engine);
|
m_component = new QDeclarativeComponent(m_engine);
|
||||||
connect(
|
connect(
|
||||||
#if QT_VERSION < 0x041300
|
|
||||||
m_component, SIGNAL(statusChanged(QDeclarativeComponent::Status)),
|
|
||||||
this, SLOT(componentStatusChanged(QDeclarativeComponent::Status))
|
|
||||||
#else
|
|
||||||
m_component, SIGNAL(statusChanged(QDeclarativeComponent::ComponentStatus)),
|
m_component, SIGNAL(statusChanged(QDeclarativeComponent::ComponentStatus)),
|
||||||
this, SLOT(componentStatusChanged(QDeclarativeComponent::ComponentStatus))
|
this, SLOT(componentStatusChanged(QDeclarativeComponent::ComponentStatus))
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
connect(this, SIGNAL(renderHintsChanged()), SLOT(resizeWallpaper()));
|
connect(this, SIGNAL(renderHintsChanged()), SLOT(resizeWallpaper()));
|
||||||
connect(m_scene, SIGNAL(changed(QList<QRectF>)), SLOT(shouldRepaint(QList<QRectF>)));
|
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;
|
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)
|
void WallpaperQml::componentStatusChanged(QDeclarativeComponent::ComponentStatus s)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
if (s==QDeclarativeComponent::Ready) {
|
if (s==QDeclarativeComponent::Ready) {
|
||||||
if (m_item) {
|
if (m_item) {
|
||||||
|
@ -113,13 +104,8 @@ void WallpaperQml::componentStatusChanged(QDeclarativeComponent::ComponentStatus
|
||||||
delete m_component;
|
delete m_component;
|
||||||
m_component = new QDeclarativeComponent(m_engine);
|
m_component = new QDeclarativeComponent(m_engine);
|
||||||
connect(
|
connect(
|
||||||
#if QT_VERSION < 0x041300
|
|
||||||
m_component, SIGNAL(statusChanged(QDeclarativeComponent::Status)),
|
|
||||||
this, SLOT(componentStatusChanged(QDeclarativeComponent::Status))
|
|
||||||
#else
|
|
||||||
m_component, SIGNAL(statusChanged(QDeclarativeComponent::ComponentStatus)),
|
m_component, SIGNAL(statusChanged(QDeclarativeComponent::ComponentStatus)),
|
||||||
this, SLOT(componentStatusChanged(QDeclarativeComponent::ComponentStatus))
|
this, SLOT(componentStatusChanged(QDeclarativeComponent::ComponentStatus))
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (!m_component->errors().isEmpty())
|
if (!m_component->errors().isEmpty())
|
||||||
|
|
|
@ -40,11 +40,7 @@ class WallpaperQml : public Plasma::Wallpaper
|
||||||
private slots:
|
private slots:
|
||||||
void resizeWallpaper();
|
void resizeWallpaper();
|
||||||
void shouldRepaint(const QList< QRectF >& rects);
|
void shouldRepaint(const QList< QRectF >& rects);
|
||||||
#if QT_VERSION < 0x041300
|
|
||||||
void componentStatusChanged(QDeclarativeComponent::Status s);
|
|
||||||
#else
|
|
||||||
void componentStatusChanged(QDeclarativeComponent::ComponentStatus s);
|
void componentStatusChanged(QDeclarativeComponent::ComponentStatus s);
|
||||||
#endif
|
|
||||||
void setPackageName(const QString& name);
|
void setPackageName(const QString& name);
|
||||||
void changeWallpaper(const QModelIndex& idx);
|
void changeWallpaper(const QModelIndex& idx);
|
||||||
void setBackgroundColor(const QColor& color);
|
void setBackgroundColor(const QColor& color);
|
||||||
|
|
Loading…
Add table
Reference in a new issue