Skip to content

Commit

Permalink
Added the possibility to use .ini files for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SverrirValgeirsson committed Apr 15, 2018
1 parent 4922815 commit 0331c5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
2.09
New in 2.10
===========

* Added Global Hotkey support
* Support for saving settings in an .ini file by sending "-useini" as argument to the application


New in 2.09
===========

* Added Global Hotkey support (Ctrl-Alt-t)
* Fixed a bug where the font change wasn't saved from preferences
* Ensure that the windows is shown on an existing screen when the application starts.

Expand Down
5 changes: 5 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ MainWindow::MainWindow(QWidget *parent) :



// Check if we're supposed to have the settings from .ini file or not
if(QCoreApplication::arguments().contains("-useini")){
QSettings::setDefaultFormat(QSettings::IniFormat);
}

// Restore the position of the window
auto rec = QApplication::desktop()->screenGeometry();
auto maxx = rec.height();
Expand Down

0 comments on commit 0331c5a

Please sign in to comment.