diff options
Diffstat (limited to 'src/gui/linefieldwidget.cpp')
-rw-r--r-- | src/gui/linefieldwidget.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/linefieldwidget.cpp b/src/gui/linefieldwidget.cpp index 1535832..acc5e33 100644 --- a/src/gui/linefieldwidget.cpp +++ b/src/gui/linefieldwidget.cpp @@ -21,13 +21,13 @@ using Tellico::GUI::LineFieldWidget; -LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, QWidget* parent_, const char* name_/*=0*/) - : FieldWidget(field_, parent_, name_) { +LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) + : FieldWidget(field_, tqparent_, name_) { m_lineEdit = new GUI::LineEdit(this); m_lineEdit->setAllowSpellCheck(true); m_lineEdit->setEnableSpellCheck(field_->formatFlag() != Data::Field::FormatName); - connect(m_lineEdit, SIGNAL(textChanged(const QString&)), SIGNAL(modified())); + connect(m_lineEdit, TQT_SIGNAL(textChanged(const TQString&)), TQT_SIGNAL(modified())); registerWidget(); @@ -40,19 +40,19 @@ LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, QWidget* parent_, const } if(field_->name() == Latin1Literal("isbn")) { - m_lineEdit->setValidator(new ISBNValidator(this)); + m_lineEdit->setValidator(new ISBNValidator(TQT_TQOBJECT(this))); } } -QString LineFieldWidget::text() const { - QString text = m_lineEdit->text(); +TQString LineFieldWidget::text() const { + TQString text = m_lineEdit->text(); if(field()->flags() & Data::Field::AllowMultiple) { - text.replace(s_semiColon, QString::fromLatin1("; ")); + text.tqreplace(s_semiColon, TQString::tqfromLatin1("; ")); } return text.stripWhiteSpace(); } -void LineFieldWidget::setText(const QString& text_) { +void LineFieldWidget::setText(const TQString& text_) { blockSignals(true); m_lineEdit->blockSignals(true); m_lineEdit->setText(text_); @@ -65,7 +65,7 @@ void LineFieldWidget::clear() { editMultiple(false); } -void LineFieldWidget::addCompletionObjectItem(const QString& text_) { +void LineFieldWidget::addCompletionObjectItem(const TQString& text_) { m_lineEdit->completionObject()->addItem(text_); } @@ -83,7 +83,7 @@ void LineFieldWidget::updateFieldHook(Data::FieldPtr oldField_, Data::FieldPtr n } } -QWidget* LineFieldWidget::widget() { +TQWidget* LineFieldWidget::widget() { return m_lineEdit; } |