summaryrefslogtreecommitdiffstats
path: root/kexi/main/kexinamewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/main/kexinamewidget.h')
-rw-r--r--kexi/main/kexinamewidget.h61
1 files changed, 31 insertions, 30 deletions
diff --git a/kexi/main/kexinamewidget.h b/kexi/main/kexinamewidget.h
index 07962b6c..1ab1d106 100644
--- a/kexi/main/kexinamewidget.h
+++ b/kexi/main/kexinamewidget.h
@@ -20,8 +20,8 @@
#ifndef KEXINAMEWIDGET_H
#define KEXINAMEWIDGET_H
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klineedit.h>
namespace KexiUtils {
@@ -29,49 +29,50 @@ class Validator;
class MultiValidator;
}
-class KEXIMAIN_EXPORT KexiNameWidget : public QWidget
+class KEXIMAIN_EXPORT KexiNameWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiNameWidget(const QString& message,
- QWidget * parent = 0, const char * name = 0, WFlags fl = 0);
+ KexiNameWidget(const TQString& message,
+ TQWidget * tqparent = 0, const char * name = 0, WFlags fl = 0);
- KexiNameWidget(const QString& message,
- const QString& nameLabel, const QString& nameText,
- const QString& captionLabel, const QString& captionText,
- QWidget * parent = 0, const char * name = 0, WFlags fl = 0);
+ KexiNameWidget(const TQString& message,
+ const TQString& nameLabel, const TQString& nameText,
+ const TQString& captionLabel, const TQString& captionText,
+ TQWidget * tqparent = 0, const char * name = 0, WFlags fl = 0);
virtual ~KexiNameWidget();
- QLabel* captionLabel() const { return lbl_caption; }
- QLabel* nameLabel() const { return lbl_name; }
+ TQLabel* captionLabel() const { return lbl_caption; }
+ TQLabel* nameLabel() const { return lbl_name; }
KLineEdit* captionLineEdit() const { return le_caption; }
KLineEdit* nameLineEdit() const { return le_name; }
- QString messageText() const { return lbl_message->text(); }
+ TQString messageText() const { return lbl_message->text(); }
- void setMessageText(const QString& msg);
+ void setMessageText(const TQString& msg);
//! \return entered caption text
- QString captionText() const;
+ TQString captionText() const;
- void setCaptionText(const QString& capt);
+ void setCaptionText(const TQString& capt);
//! \return entered name text, always in lower case
- QString nameText() const;
+ TQString nameText() const;
- void setNameText(const QString& name);
+ void setNameText(const TQString& name);
/*! Sets i18n'ed warning message displayed when user leaves 'name' field
without filling it (if acceptsEmptyValue() is false).
By default the message is equal "Please enter the name.". */
- void setWarningForName( const QString& txt ) { m_nameWarning = txt; }
+ void setWarningForName( const TQString& txt ) { m_nameWarning = txt; }
/*! Sets i18n'ed warning message displayed when user leaves 'name' field
without filling it (if acceptsEmptyValue() is false).
By default the message is equal "Please enter the caption." */
- void setWarningForCaption( const QString& txt ) { m_captionWarning = txt; }
+ void setWarningForCaption( const TQString& txt ) { m_captionWarning = txt; }
/*! \return true if name or caption is empty. */
bool empty() const;
@@ -113,24 +114,24 @@ class KEXIMAIN_EXPORT KexiNameWidget : public QWidget
void messageChanged();
protected slots:
- void slotNameTxtChanged(const QString&);
- void slotCaptionTxtChanged(const QString&);
-// bool eventFilter( QObject *obj, QEvent *ev );
+ void slotNameTxtChanged(const TQString&);
+ void slotCaptionTxtChanged(const TQString&);
+// bool eventFilter( TQObject *obj, TQEvent *ev );
protected:
void init(
- const QString& message,
- const QString& nameLabel, const QString& nameText,
- const QString& captionLabel, const QString& captionText);
+ const TQString& message,
+ const TQString& nameLabel, const TQString& nameText,
+ const TQString& captionLabel, const TQString& captionText);
- QLabel* lbl_message;
- QLabel* lbl_caption;
- QLabel* lbl_name;
+ TQLabel* lbl_message;
+ TQLabel* lbl_caption;
+ TQLabel* lbl_name;
KLineEdit* le_caption;
KLineEdit* le_name;
- QGridLayout* lyr;
+ TQGridLayout* lyr;
KexiUtils::MultiValidator *m_validator;
- QString m_nameWarning, m_captionWarning;
+ TQString m_nameWarning, m_captionWarning;
bool m_le_name_txtchanged_disable : 1;
bool m_le_name_autofill : 1;