summaryrefslogtreecommitdiffstats
path: root/src/gui/parafieldwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/parafieldwidget.cpp')
-rw-r--r--src/gui/parafieldwidget.cpp26
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;
}