Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 466:33d0632255b5 integration_library
Merge with the Kiosk branch
author | mathieub <mathieu.barthet@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 21:04:31 +0100 |
parents | b3b9cc8f5466 f8f74f1b5b4f |
children |
comparison
equal
deleted
inserted
replaced
465:b3b9cc8f5466 | 466:33d0632255b5 |
---|---|
349 gui->move(prevrect.topLeft()); | 349 gui->move(prevrect.topLeft()); |
350 } | 350 } |
351 } | 351 } |
352 settings.endGroup(); | 352 settings.endGroup(); |
353 | 353 |
354 settings.beginGroup("Preferences"); | |
355 bool mini = settings.value("start-in-mini-mode",true).toBool(); | |
356 | |
357 //std::cerr << "Minimal mode at startup (true/false): " << mini << std::endl; | |
358 | |
359 if (mini) { | |
360 gui->toggleViewMode(); | |
361 } | |
362 settings.endGroup(); | |
363 | |
354 gui->show(); | 364 gui->show(); |
355 | 365 |
356 // The MainWindow class seems to have trouble dealing with this if | 366 // The MainWindow class seems to have trouble dealing with this if |
357 // it tries to adapt to this preference before the constructor is | 367 // it tries to adapt to this preference before the constructor is |
358 // complete. As a lazy hack, apply it explicitly from here | 368 // complete. As a lazy hack, apply it explicitly from here |