mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Add wallpaper creation. Again. And Again.
This commit is contained in:
parent
f0b1c1bf84
commit
00e66f3d9a
@ -118,6 +118,8 @@ void Settings::setWallpaper(int monitorIndex, QUrl absoluteStoragePath)
|
||||
removeWallpaperAt(i);
|
||||
}
|
||||
}
|
||||
m_wallpapers.append(QSharedPointer<Wallpaper>(new Wallpaper(project, monitor)));
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -18,16 +18,17 @@ Wallpaper::Wallpaper(QWindow* parent)
|
||||
{
|
||||
}
|
||||
|
||||
Wallpaper::Wallpaper(Profile profile, ProjectFile project, Monitor monitor)
|
||||
Wallpaper::Wallpaper( ProjectFile project, Monitor monitor)
|
||||
{
|
||||
|
||||
m_profile = profile;
|
||||
|
||||
m_monitor = monitor;
|
||||
m_project = project;
|
||||
QString tmp = profile.m_absolutePath.toString() + "/Wallpaper/" + profile.m_wallpaperId + "/" + m_project.m_file.toString();
|
||||
QString tmp = m_project.m_absoluteStoragePath.toString() + "/" + m_project.m_file.toString();
|
||||
qDebug() << tmp;
|
||||
tmp.replace("/","\\\\");
|
||||
setAbsoluteFilePath(tmp);
|
||||
|
||||
qDebug() << tmp;
|
||||
this->setX(m_profile.m_rect.x());
|
||||
this->setY(m_profile.m_rect.y());
|
||||
this->setWidth(m_profile.m_rect.width());
|
||||
|
@ -18,7 +18,7 @@ class Wallpaper : public QWindow {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Wallpaper(QWindow* parent = 0);
|
||||
Wallpaper(Profile profile, ProjectFile project, Monitor monitor);
|
||||
Wallpaper( ProjectFile project, Monitor monitor);
|
||||
~Wallpaper();
|
||||
Q_PROPERTY(QString absoluteFilePath READ absoluteFilePath WRITE setAbsoluteFilePath NOTIFY absoluteFilePathChanged)
|
||||
Q_PROPERTY(bool isPlaying READ isPlaying WRITE setIsPlaying NOTIFY isPlayingChanged)
|
||||
|
Loading…
Reference in New Issue
Block a user