# HG changeset patch # User Chris Cannam # Date 1287934791 -7200 # Node ID 487d208fadb32514c25ab76e7631ab6443b108bc # Parent 210a409e135a585631c2693609eace7a3f9c953c * Add show/hide time rulers toggle (on # key) diff -r 210a409e135a -r 487d208fadb3 main/MainWindow.cpp --- 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"));