Skip to content

Commit

Permalink
Set application and organization name to enable using QSettings
Browse files Browse the repository at this point in the history
QSettings can be used to store the latest folder used to open or save
files. Instead of repeatedly passing the application and organization
names to the QSettings member functions, they are set globally.
  • Loading branch information
naavis committed Jul 23, 2022
1 parent 20215fb commit e360228
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ int main(int argc, char *argv[])
Q_INIT_RESOURCE(haloray);
initializeLogging();

QCoreApplication::setOrganizationName("Other Computer Software");
QCoreApplication::setApplicationName("HaloRay");

QGuiApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
QGuiApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
Expand Down

0 comments on commit e360228

Please sign in to comment.