diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/parafieldwidget.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/parafieldwidget.cpp')
-rw-r--r-- | src/gui/parafieldwidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/parafieldwidget.cpp b/src/gui/parafieldwidget.cpp index 9941e34..ba3b583 100644 --- a/src/gui/parafieldwidget.cpp +++ b/src/gui/parafieldwidget.cpp @@ -19,32 +19,32 @@ using Tellico::GUI::ParaFieldWidget; -ParaFieldWidget::ParaFieldWidget(Data::FieldPtr field_, QWidget* parent_, const char* name_/*=0*/) - : FieldWidget(field_, parent_, name_) { +ParaFieldWidget::ParaFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) + : FieldWidget(field_, tqparent_, name_) { m_textEdit = new KTextEdit(this); - m_textEdit->setTextFormat(Qt::PlainText); - if(field_->property(QString::fromLatin1("spellcheck")) != Latin1Literal("false")) { + m_textEdit->setTextFormat(TQt::PlainText); + if(field_->property(TQString::tqfromLatin1("spellcheck")) != Latin1Literal("false")) { m_textEdit->setCheckSpellingEnabled(true); } - connect(m_textEdit, SIGNAL(textChanged()), SIGNAL(modified())); + connect(m_textEdit, TQT_SIGNAL(textChanged()), TQT_SIGNAL(modified())); registerWidget(); } -QString ParaFieldWidget::text() const { - QString text = m_textEdit->text(); - text.replace('\n', QString::fromLatin1("<br/>")); +TQString ParaFieldWidget::text() const { + TQString text = m_textEdit->text(); + text.tqreplace('\n', TQString::tqfromLatin1("<br/>")); return text; } -void ParaFieldWidget::setText(const QString& text_) { +void ParaFieldWidget::setText(const TQString& text_) { blockSignals(true); m_textEdit->blockSignals(true); - QRegExp rx(QString::fromLatin1("<br/?>"), false /*case-sensitive*/); - QString s = text_; - s.replace(rx, QChar('\n')); + TQRegExp rx(TQString::tqfromLatin1("<br/?>"), false /*case-sensitive*/); + TQString s = text_; + s.tqreplace(rx, TQChar('\n')); m_textEdit->setText(s); m_textEdit->blockSignals(false); @@ -56,7 +56,7 @@ void ParaFieldWidget::clear() { editMultiple(false); } -QWidget* ParaFieldWidget::widget() { +TQWidget* ParaFieldWidget::widget() { return m_textEdit; } |