Mercurial > hg > svgui
comparison widgets/LabelCounterInputDialog.cpp @ 373:0895517bb2d1 1.2-stable
* merge from trunk (1.2 ended up being tracked from trunk, but we may want
this branch for fixes later)
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 10:32:45 +0000 |
parents | fee76aa923d8 |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
337:813170c57b13 | 373:0895517bb2d1 |
---|---|
35 | 35 |
36 label = new QLabel(tr("Coarse counter (bars):")); | 36 label = new QLabel(tr("Coarse counter (bars):")); |
37 layout->addWidget(label, 0, 0); | 37 layout->addWidget(label, 0, 0); |
38 | 38 |
39 QSpinBox *counter = new QSpinBox; | 39 QSpinBox *counter = new QSpinBox; |
40 counter->setMinimum(1); | 40 counter->setMinimum(-10); |
41 counter->setMaximum(10000); | 41 counter->setMaximum(10000); |
42 counter->setSingleStep(1); | 42 counter->setSingleStep(1); |
43 m_origSecondCounter = m_labeller->getSecondLevelCounterValue(); | 43 m_origSecondCounter = m_labeller->getSecondLevelCounterValue(); |
44 counter->setValue(m_origSecondCounter); | 44 counter->setValue(m_origSecondCounter); |
45 connect(counter, SIGNAL(valueChanged(int)), | 45 connect(counter, SIGNAL(valueChanged(int)), |
46 this, SLOT(secondCounterChanged(int))); | 46 this, SLOT(secondCounterChanged(int))); |
47 layout->addWidget(counter, 0, 1); | 47 layout->addWidget(counter, 0, 1); |
48 | 48 |
49 counter = new QSpinBox; | 49 counter = new QSpinBox; |
50 counter->setMinimum(1); | 50 counter->setMinimum(-10); |
51 counter->setMaximum(10000); | 51 counter->setMaximum(10000); |
52 counter->setSingleStep(1); | 52 counter->setSingleStep(1); |
53 m_origCounter = m_labeller->getCounterValue(); | 53 m_origCounter = m_labeller->getCounterValue(); |
54 counter->setValue(m_origCounter); | 54 counter->setValue(m_origCounter); |
55 connect(counter, SIGNAL(valueChanged(int)), | 55 connect(counter, SIGNAL(valueChanged(int)), |