equal
deleted
inserted
replaced
33 * @author unc0rr |
33 * @author unc0rr |
34 * @since 0.9.12 |
34 * @since 0.9.12 |
35 */ |
35 */ |
36 class FreqSpinBox : public QSpinBox |
36 class FreqSpinBox : public QSpinBox |
37 { |
37 { |
38 Q_OBJECT |
38 Q_OBJECT |
39 |
39 |
40 public: |
40 public: |
41 /** |
41 /** |
42 * @brief Class constructor. |
42 * @brief Class constructor. |
43 * @param parent parent widget. |
43 * @param parent parent widget. |
44 */ |
44 */ |
45 FreqSpinBox(QWidget * parent); |
45 FreqSpinBox(QWidget * parent); |
46 |
46 |
47 protected: |
47 protected: |
48 /** |
48 /** |
49 * Returns it's value as localized frequency. |
49 * Returns it's value as localized frequency. |
50 * 'Never', 'Every Turn', 'Every 2 Turns', etc. |
50 * 'Never', 'Every Turn', 'Every 2 Turns', etc. |
51 * @param value integer value to be representing as string. |
51 * @param value integer value to be representing as string. |
52 * @return the turn frequence-like string representation. |
52 * @return the turn frequence-like string representation. |
53 */ |
53 */ |
54 QString textFromValue(int value) const; |
54 QString textFromValue(int value) const; |
55 }; |
55 }; |
56 |
56 |
57 |
57 |
58 #endif // HEDGEWARS_FREQSPINBOX_H |
58 #endif // HEDGEWARS_FREQSPINBOX_H |