/****************************************************************************
-** ui.h extension file, included from the uic-generated form implementation.
-**
-** Add custom slot implementations here. Use a slot init() for
-** initialization code called during construction, and a slot destroy()
-** for cleanup code called during destruction.
-**
-** This file gets modified by Qt Designer whenever you add, rename or
-** remove custom slots. Implementation code does not get lost.
-*****************************************************************************/
+ ** ui.h extension file, included from the uic-generated form implementation.
+ **
+ ** Add custom slot implementations here. Use a slot init() for
+ ** initialization code called during construction, and a slot destroy()
+ ** for cleanup code called during destruction.
+ **
+ ** This file gets modified by Qt Designer whenever you add, rename or
+ ** remove custom slots. Implementation code does not get lost.
+ *****************************************************************************/
void CTickViewBase::slotMaxTick(int i)
{
- if ( !oneTickCheck->isChecked())
- minTickSpin->setMaxValue(i);
-
+ if ( !oneTickCheck->isChecked())
+ minTickSpin->setMaxValue(i);
+
}
void CTickViewBase::slotMinTick( int i )
{
- if ( !oneTickCheck->isChecked())
- maxTickSpin->setMinValue(i);
+ if ( !oneTickCheck->isChecked())
+ maxTickSpin->setMinValue(i);
}
void CTickViewBase::slotTickChanged(int i)
{
- if ( oneTickCheck->isChecked())
- {
- maxTickSpin->setValue(i);
- //minTickSpin->setValue(i-1);
- emit ticksChanged( maxTickSpin->value() - 1, maxTickSpin->value());
- return;
- }
- emit ticksChanged( minTickSpin->value(), maxTickSpin->value());
+ if ( oneTickCheck->isChecked())
+ {
+ maxTickSpin->setValue(i);
+ //minTickSpin->setValue(i-1);
+ emit ticksChanged( maxTickSpin->value() - 1, maxTickSpin->value());
+ return;
+ }
+ emit ticksChanged( minTickSpin->value(), maxTickSpin->value());
}
void CTickViewBase::slotOneTick( bool b )
{
- if(b)
- {
- maxTickSpin->setMinValue(0);
- minTickSpin->setDisabled(true);
- minTickSpin->setMaxValue(99);
- }
- else
- {
- minTickSpin->setEnabled(true);
- maxTickSpin->setMinValue( minTickSpin->value());
- minTickSpin->setMaxValue( maxTickSpin->value());
- }
-}
\ No newline at end of file
+ if(b)
+ {
+ maxTickSpin->setMinValue(0);
+ minTickSpin->setDisabled(true);
+ minTickSpin->setMaxValue(99);
+ }
+ else
+ {
+ minTickSpin->setEnabled(true);
+ maxTickSpin->setMinValue( minTickSpin->value());
+ minTickSpin->setMaxValue( maxTickSpin->value());
+ }
+}