comparison main/MainWindow.cpp @ 229:66dc07525671

* Fix #1841095 tapping time instant gives wrong time in aligned track * Fix #1815654 source tidying: Labeller * Fix (I hope) #1849999 Time value graphs one instant out
author Chris Cannam
date Thu, 13 Dec 2007 17:14:33 +0000
parents b99c6449c2ed
children 1000222cd8f1
comparison
equal deleted inserted replaced
228:b99c6449c2ed 229:66dc07525671
623 if (i->first == Labeller::ValueFromTwoLevelCounter) { 623 if (i->first == Labeller::ValueFromTwoLevelCounter) {
624 624
625 QMenu *cycleMenu = numberingMenu->addMenu(tr("Cycle size")); 625 QMenu *cycleMenu = numberingMenu->addMenu(tr("Cycle size"));
626 QActionGroup *cycleGroup = new QActionGroup(this); 626 QActionGroup *cycleGroup = new QActionGroup(this);
627 627
628 int cycles[] = { 2, 3, 4, 5, 6, 7, 8, 10, 12, 16 }; 628 int cycles[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16 };
629 for (int i = 0; i < int(sizeof(cycles)/sizeof(cycles[0])); ++i) { 629 for (int i = 0; i < int(sizeof(cycles)/sizeof(cycles[0])); ++i) {
630 action = new QAction(QString("%1").arg(cycles[i]), this); 630 action = new QAction(QString("%1").arg(cycles[i]), this);
631 connect(action, SIGNAL(triggered()), this, SLOT(setInstantsCounterCycle())); 631 connect(action, SIGNAL(triggered()), this, SLOT(setInstantsCounterCycle()));
632 action->setCheckable(true); 632 action->setCheckable(true);
633 action->setChecked(cycles[i] == m_labeller->getCounterCycleSize()); 633 action->setChecked(cycles[i] == m_labeller->getCounterCycleSize());