mainwindow: save/load complete window geometry and state
- Replaces the use of position and size 2d vectors when saving qt
application settings to the registry with geometry and state
byte arrays which includes information about the window's screen
number and fixes a bug which prevents the main window from ever
starting correctly maximized due to the disregarded taskbar
offset.
Change-Id: Iaa15f075970675e85ffcdb26da962a19a1914252
diff --git a/settingskey.h b/settingskey.h
index d09a91e..9fd4234 100644
--- a/settingskey.h
+++ b/settingskey.h
@@ -22,8 +22,8 @@
constexpr static char closeOrMinimized[] = "closeOrMin";
constexpr static char autoAnswer[] = "autoAnswer";
-constexpr static char savedSize[] = "savedSize";
-constexpr static char savedPos[] = "savedPos";
+constexpr static char geometry[] = "geometry";
+constexpr static char windowState[] = "windowState";
constexpr static char imShowAuthor[] = "imShowAuthor";
constexpr static char imShowDate[] = "imShowDate";
constexpr static char enableNotifications[] = "enableNotifications";