equal
deleted
inserted
replaced
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
|
19 /** |
|
20 * @file |
|
21 * @brief FreqSpinBox class implementation |
|
22 */ |
|
23 |
19 #include "FreqSpinBox.h" |
24 #include "FreqSpinBox.h" |
20 |
25 |
21 /** |
26 |
22 * Returns it's value as localized frequency. |
27 FreqSpinBox::FreqSpinBox(QWidget* parent) : QSpinBox(parent) |
23 * 'Never', 'Every Turn', 'Every 2 Turns', etc. |
28 { |
24 * @param value integer value to be representing as string |
29 // do nothing |
25 * @return the turn frequence-like string representation |
30 }; |
26 */ |
31 |
|
32 |
27 QString FreqSpinBox::textFromValue(int value) const |
33 QString FreqSpinBox::textFromValue(int value) const |
28 { |
34 { |
29 if (value == 0) |
35 if (value == 0) |
30 return tr("Never"); |
36 return tr("Never"); |
31 else |
37 else |