1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
4 ** Add custom slot implementations here. Use a slot init() for
5 ** initialization code called during construction, and a slot destroy()
6 ** for cleanup code called during destruction.
8 ** This file gets modified by Qt Designer whenever you add, rename or
9 ** remove custom slots. Implementation code does not get lost.
10 *****************************************************************************/
13 void CTickViewBase::slotMaxTick(int i)
15 if ( !oneTickCheck->isChecked())
16 minTickSpin->setMaxValue(i);
20 void CTickViewBase::slotMinTick( int i )
22 if ( !oneTickCheck->isChecked())
23 maxTickSpin->setMinValue(i);
26 void CTickViewBase::slotTickChanged(int i)
28 if ( oneTickCheck->isChecked())
30 maxTickSpin->setValue(i);
31 //minTickSpin->setValue(i-1);
32 emit ticksChanged( maxTickSpin->value() - 1, maxTickSpin->value());
35 emit ticksChanged( minTickSpin->value(), maxTickSpin->value());
38 void CTickViewBase::slotOneTick( bool b )
42 maxTickSpin->setMinValue(0);
43 minTickSpin->setDisabled(true);
44 minTickSpin->setMaxValue(99);
48 minTickSpin->setEnabled(true);
49 maxTickSpin->setMinValue( minTickSpin->value());
50 minTickSpin->setMaxValue( maxTickSpin->value());