kdeplasma-addons: remove unused member and method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-30 01:03:10 +03:00
parent 0652c463c2
commit 188de57c29
3 changed files with 0 additions and 9 deletions

View file

@ -31,7 +31,6 @@ BackgroundListModel::BackgroundListModel(float ratio, Plasma::Wallpaper *listene
m_listener(listener),
m_structureParent(listener),
m_ratio(ratio),
m_size(0,0),
m_resizeMethod(Plasma::Wallpaper::ScaledResize)
{
connect(&m_dirwatch, SIGNAL(deleted(QString)), this, SLOT(removeBackground(QString)));
@ -341,11 +340,6 @@ QList<Plasma::Package *> BackgroundListModel::findAllBackgrounds(Plasma::Wallpap
return res;
}
void BackgroundListModel::setWallpaperSize(QSize size)
{
m_size = size;
}
void BackgroundListModel::setResizeMethod(Plasma::Wallpaper::ResizeMethod resizeMethod)
{
m_resizeMethod = resizeMethod;

View file

@ -49,7 +49,6 @@ public:
KProgressDialog *progress = 0);
static void initProgressDialog(KProgressDialog *dialog);
void setWallpaperSize(QSize size);
void setResizeMethod(Plasma::Wallpaper::ResizeMethod resizeMethod);
protected Q_SLOTS:
@ -69,7 +68,6 @@ private:
float m_ratio;
KDirWatch m_dirwatch;
QSize m_size;
Plasma::Wallpaper::ResizeMethod m_resizeMethod;
};

View file

@ -274,7 +274,6 @@ void WeatherWallpaper::showAdvancedDialog()
qreal ratio = m_size.isEmpty() ? 1.0 : m_size.width() / qreal(m_size.height());
m_model = new BackgroundListModel(ratio, this, m_advancedDialog);
m_model->setResizeMethod(m_resizeMethod);
m_model->setWallpaperSize(m_size);
m_model->reload(m_usersWallpapers);
m_advancedUi.m_wallpaperView->setModel(m_model);
m_advancedUi.m_wallpaperView->setItemDelegate(new BackgroundDelegate(m_advancedUi.m_wallpaperView->view(),