summaryrefslogtreecommitdiffstats
path: root/src/gui/fieldwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/fieldwidget.h')
-rw-r--r--src/gui/fieldwidget.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/gui/fieldwidget.h b/src/gui/fieldwidget.h
index dd34ebb..1bd9582 100644
--- a/src/gui/fieldwidget.h
+++ b/src/gui/fieldwidget.h
@@ -16,12 +16,12 @@
#include "../datavectors.h"
-#include <qwidget.h>
-#include <qregexp.h>
+#include <tqwidget.h>
+#include <tqregexp.h>
-class QLabel;
-class QCheckBox;
-class QString;
+class TQLabel;
+class TQCheckBox;
+class TQString;
namespace Tellico {
namespace Data {
@@ -35,16 +35,17 @@ namespace Tellico {
*
* @author Robby Stephenson
*/
-class FieldWidget : public QWidget {
+class FieldWidget : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- FieldWidget(Data::FieldPtr field, QWidget* parent, const char* name=0);
+ FieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0);
virtual ~FieldWidget() {}
Data::FieldPtr field() const { return m_field; }
- virtual QString text() const = 0;
- virtual void setText(const QString& text) = 0;
+ virtual TQString text() const = 0;
+ virtual void setText(const TQString& text) = 0;
int labelWidth() const;
void setLabelWidth(int width);
@@ -55,10 +56,10 @@ public:
void updateField(Data::FieldPtr oldField, Data::FieldPtr newField);
// only used by LineFieldWidget, really
- virtual void addCompletionObjectItem(const QString&) {}
+ virtual void addCompletionObjectItem(const TQString&) {}
// factory function
- static FieldWidget* create(Data::FieldPtr field, QWidget* parent, const char* name=0);
+ static FieldWidget* create(Data::FieldPtr field, TQWidget* tqparent, const char* name=0);
public slots:
virtual void insertDefault();
@@ -69,19 +70,19 @@ signals:
virtual void modified();
protected:
- QLabel* label() { return m_label; } // needed so the URLField can handle clicks on the label
- virtual QWidget* widget() = 0;
+ TQLabel* label() { return m_label; } // needed so the URLField can handle clicks on the label
+ virtual TQWidget* widget() = 0;
void registerWidget();
// not all widgets have to be updated when the field changes
virtual void updateFieldHook(Data::FieldPtr, Data::FieldPtr) {}
- static const QRegExp s_semiColon;
+ static const TQRegExp s_semiColon;
private:
Data::FieldPtr m_field;
- QLabel* m_label;
- QCheckBox* m_editMultiple;
+ TQLabel* m_label;
+ TQCheckBox* m_editMultiple;
bool m_expands;
};