Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 459:f8f74f1b5b4f toggle
Start in minimal mode option added in the Preferences/Appearance menu
author | mathieub <mathieu.barthet@eecs.qmul.ac.uk> |
---|---|
date | Mon, 04 Jul 2011 16:08:20 +0100 |
parents | 868f73825b37 |
children | 33d0632255b5 |
comparison
equal
deleted
inserted
replaced
458:a94be56cf98f | 459:f8f74f1b5b4f |
---|---|
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 |