diff main/MainWindow.cpp @ 387:487d208fadb3

* Add show/hide time rulers toggle (on # key)
author Chris Cannam
date Sun, 24 Oct 2010 17:39:51 +0200
parents dbc1d2d72cf1
children 58b7e3893963 065b61fe7cc3 d70890996156
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Oct 18 12:45:14 2010 +0100
+++ b/main/MainWindow.cpp	Sun Oct 24 17:39:51 2010 +0200
@@ -839,7 +839,16 @@
     overlayGroup->addAction(action);
     m_keyReference->registerShortcut(action);
     menu->addAction(action);
-        
+
+    menu->addSeparator();
+
+    action = new QAction(tr("Show All Time Rulers"), this);
+    action->setShortcut(tr("#"));
+    action->setStatusTip(tr("Show or hide all time rulers"));
+    connect(action, SIGNAL(triggered()), this, SLOT(toggleTimeRulers()));
+    m_keyReference->registerShortcut(action);
+    menu->addAction(action);
+
     menu->addSeparator();
 
     action = new QAction(tr("Show &Zoom Wheels"), this);
@@ -850,7 +859,7 @@
     action->setChecked(m_viewManager->getZoomWheelsEnabled());
     m_keyReference->registerShortcut(action);
     menu->addAction(action);
-        
+
     action = new QAction(tr("Show Property Bo&xes"), this);
     action->setShortcut(tr("X"));
     action->setStatusTip(tr("Show the layer property boxes at the side of the main window"));