comparison main/MainWindow.cpp @ 462:083182cde1c7 toggle

Textual changes only
author Chris Cannam
date Thu, 21 Jul 2011 10:12:56 +0100
parents f8f74f1b5b4f
children af0a2d9ece0c
comparison
equal deleted inserted replaced
461:9a7006ebfc56 462:083182cde1c7
738 m_viewMenu = menuBar()->addMenu(tr("&View")); 738 m_viewMenu = menuBar()->addMenu(tr("&View"));
739 m_viewMenu->setTearOffEnabled(true); 739 m_viewMenu->setTearOffEnabled(true);
740 740
741 m_viewToolBar = addToolBar(tr("View Toolbar")); 741 m_viewToolBar = addToolBar(tr("View Toolbar"));
742 742
743 m_keyReference->setCategory(tr("User Interface design")); 743 m_keyReference->setCategory(tr("Display Features"));
744 744
745 QIcon icon = il.load("toggle16"); 745 QIcon icon = il.load("toggle16");
746 icon.addPixmap(il.loadPixmap("toggle22")); 746 icon.addPixmap(il.loadPixmap("toggle22"));
747 action = new QAction(icon,tr("Minimal Mode"), this); 747 action = new QAction(icon,tr("Minimal Mode"), this);
748 action->setShortcut(tr("C")); 748 action->setShortcut(tr("C"));
749 action->setStatusTip(tr("Activates the Minimal Mode")); 749 action->setStatusTip(tr("Switch between minimal and full view modes"));
750 connect(action, SIGNAL(triggered()), this, SLOT(toggleViewMode())); 750 connect(action, SIGNAL(triggered()), this, SLOT(toggleViewMode()));
751 action->setCheckable(true); 751 action->setCheckable(true);
752 752
753 QSettings settings; 753 QSettings settings;
754 settings.beginGroup("Preferences"); 754 settings.beginGroup("Preferences");