src/main.cpp

changeset 221
e28f89b8ccdf
parent 218
63125c36de73
child 229
38d86002d548
equal deleted inserted replaced
220:a6d937f8c0ac 221:e28f89b8ccdf
340 const auto saveSettings = [&]{ 340 const auto saveSettings = [&]{
341 setSetting<Setting::MainWindowGeometry>(mainWindow.saveGeometry()); 341 setSetting<Setting::MainWindowGeometry>(mainWindow.saveGeometry());
342 setSetting<Setting::RecentFiles>(recentlyOpenedFiles); 342 setSetting<Setting::RecentFiles>(recentlyOpenedFiles);
343 setSetting<Setting::RenderStyle>(renderPreferences.style); 343 setSetting<Setting::RenderStyle>(renderPreferences.style);
344 setSetting<Setting::DrawAxes>(renderPreferences.drawAxes); 344 setSetting<Setting::DrawAxes>(renderPreferences.drawAxes);
345 setSetting<Setting::DrawAxes>("hello world");
346 libraries.storeToSettings(); 345 libraries.storeToSettings();
347 }; 346 };
348 const auto updateRecentlyOpenedDocumentsMenu = [&]{ 347 const auto updateRecentlyOpenedDocumentsMenu = [&]{
349 rebuildRecentFilesMenu(ui.menuRecentFiles, recentlyOpenedFiles, &mainWindow); 348 rebuildRecentFilesMenu(ui.menuRecentFiles, recentlyOpenedFiles, &mainWindow);
350 for (QAction* action : ui.menuRecentFiles->findChildren<QAction*>()) { 349 for (QAction* action : ui.menuRecentFiles->findChildren<QAction*>()) {

mercurial