Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
HiDPI is default in Qt6, adjust main.cpp
Browse files Browse the repository at this point in the history
exclude all wallpaper files
  • Loading branch information
demmm committed Apr 17, 2023
1 parent bd7f016 commit d925a18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions croeso.pro
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ INSTALLS += target desktop icon qml

DISTFILES +=

HEADERS += \
wallpaper/unsplash.h \
wallpaper/photo.h \
wallpaper/photolist.h \
wallpaper/photosavethread.h \
wallpaper/filesystem.h \
wallpaper/localphotolist.h
#HEADERS += \
# wallpaper/unsplash.h \
# wallpaper/photo.h \
# wallpaper/photolist.h \
# wallpaper/photosavethread.h \
# wallpaper/filesystem.h \
# wallpaper/localphotolist.h
12 changes: 6 additions & 6 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#include <QDebug>
#include <QDir>

#include "wallpaper/filesystem.h"
#include "wallpaper/unsplash.h"
#include "wallpaper/photo.h"
#include "wallpaper/photolist.h"
#include "wallpaper/localphotolist.h"
//#include "wallpaper/filesystem.h"
//#include "wallpaper/unsplash.h"
//#include "wallpaper/photo.h"
//#include "wallpaper/photolist.h"
//#include "wallpaper/localphotolist.h"

#include <Magick++.h>
using namespace Magick;
Expand All @@ -26,7 +26,7 @@ int main(int argc, char *argv[])
InitializeMagick(*argv);

QtWebView::initialize();
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QGuiApplication app(argc, argv);

FileSystem::init();
Expand Down

0 comments on commit d925a18

Please sign in to comment.