summaryrefslogtreecommitdiffstats
path: root/src/common/gui/number_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/gui/number_gui.h')
-rw-r--r--src/common/gui/number_gui.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/common/gui/number_gui.h b/src/common/gui/number_gui.h
index f910820..2b23d2b 100644
--- a/src/common/gui/number_gui.h
+++ b/src/common/gui/number_gui.h
@@ -9,28 +9,29 @@
#ifndef NUMBER_GUI_H
#define NUMBER_GUI_H
-#include <qvalidator.h>
+#include <tqvalidator.h>
#include <klineedit.h>
#include "common/common/number.h"
//-----------------------------------------------------------------------------
-extern uint maxCharWidth(const QString &s, const QFont &font);
-extern uint maxCharWidth(NumberBase base, const QFont &font);
-inline uint maxStringWidth(NumberBase base, uint nbChars, const QFont &font) { return nbChars * maxCharWidth(base, font); }
-extern uint maxLabelWidth(NumberBase base, uint nbChars, const QFont &font);
+extern uint maxCharWidth(const TQString &s, const TQFont &font);
+extern uint maxCharWidth(NumberBase base, const TQFont &font);
+inline uint maxStringWidth(NumberBase base, uint nbChars, const TQFont &font) { return nbChars * maxCharWidth(base, font); }
+extern uint maxLabelWidth(NumberBase base, uint nbChars, const TQFont &font);
-extern QValidator::State validateNumber(const QString &s);
+extern TQValidator::State validateNumber(const TQString &s);
//-----------------------------------------------------------------------------
class NumberLineEdit : public KLineEdit
{
Q_OBJECT
+ TQ_OBJECT
public:
- NumberLineEdit(QWidget *parent = 0, const char *name = 0);
- NumberLineEdit(const QString &text, QWidget *parent = 0, const char *name = 0);
+ NumberLineEdit(TQWidget *tqparent = 0, const char *name = 0);
+ NumberLineEdit(const TQString &text, TQWidget *tqparent = 0, const char *name = 0);
uint value(bool *ok = 0) const { return fromAnyLabel(text(), ok); }
- void setColor(const QColor &color) { setPaletteForegroundColor(color); }
+ void setColor(const TQColor &color) { setPaletteForegroundColor(color); }
void unsetColor() { unsetPalette(); }
private slots: