You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
581 B
29 lines
581 B
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
#include <QScreen>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
QString wallpaperFile;
|
|
|
|
if (argc > 1) {
|
|
wallpaperFile = QString(argv[1]);
|
|
} else {
|
|
return 1;
|
|
}
|
|
|
|
for (QScreen *screen : QApplication::screens()) {
|
|
MainWindow *w = new MainWindow(wallpaperFile);
|
|
w->setWindowFlags(Qt::WindowStaysOnBottomHint);
|
|
w->setGeometry(screen->geometry());
|
|
w->showFullScreen();
|
|
w->show();
|
|
w->applyWallpaper();
|
|
}
|
|
|
|
return a.exec();
|
|
}
|