comparison src/main.cpp @ 148:665421937ec8

Add another commandline option "reset" for reseting the UI position, size and scale to default values.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Aug 2017 22:34:24 +0300
parents c722cb0b6662
children 2a8c97753381
comparison
equal deleted inserted replaced
147:c722cb0b6662 148:665421937ec8
252 // Check commandline arguments for configuring backup settings 252 // Check commandline arguments for configuring backup settings
253 if (argc >= 4 && strcmp(argv[1], "config") == 0) 253 if (argc >= 4 && strcmp(argv[1], "config") == 0)
254 { 254 {
255 settings.dbBackupURL = QString(argv[2]); 255 settings.dbBackupURL = QString(argv[2]);
256 settings.dbBackupSecret = QString(argv[3]); 256 settings.dbBackupSecret = QString(argv[3]);
257 }
258
259 // Also possibility of resetting the UI settings
260 if (argc >= 2 && strcmp(argv[1], "reset") == 0)
261 {
262 settings.uiPos = QPoint(100, 100);
263 settings.uiSize = QSize(1000, 600);
264 settings.uiScale = 1.0f;
257 } 265 }
258 266
259 // 267 //
260 // Create logfile and data directory 268 // Create logfile and data directory
261 // 269 //