]> ruin.nu Git - hbs.git/blob - bs/ui/tickviewbase.ui.h
Some changes
[hbs.git] / bs / ui / tickviewbase.ui.h
1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
3 ** 
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.
7 **
8 ** This file gets modified by Qt Designer whenever you add, rename or
9 ** remove custom slots. Implementation code does not get lost.
10 *****************************************************************************/
11
12
13 void CTickViewBase::slotMaxTick(int i)
14 {
15      if ( !oneTickCheck->isChecked())
16          minTickSpin->setMaxValue(i);
17 }
18
19 void CTickViewBase::slotMinTick( int i )
20 {
21      if ( !oneTickCheck->isChecked())
22          maxTickSpin->setMinValue(i);
23 }
24
25 void CTickViewBase::slotTickChanged(int i)
26 {
27    if ( oneTickCheck->isChecked())
28     {
29         maxTickSpin->setValue(i);
30         minTickSpin->setValue(i);
31     }
32 }
33
34 void CTickViewBase::slotOneTick( bool b )
35 {
36     if(b)
37     {
38         maxTickSpin->setMinValue(0);
39         minTickSpin->setMaxValue(99);
40     }
41     else
42     {
43         maxTickSpin->setMinValue( minTickSpin->value());
44         minTickSpin->setMaxValue( maxTickSpin->value());
45     }
46 }