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/boolfieldwidget.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/boolfieldwidget.cpp')
-rw-r--r-- | src/gui/boolfieldwidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/boolfieldwidget.cpp b/src/gui/boolfieldwidget.cpp index 5a8e88b..ae625be 100644 --- a/src/gui/boolfieldwidget.cpp +++ b/src/gui/boolfieldwidget.cpp @@ -15,29 +15,29 @@ #include "../field.h" #include "../latin1literal.h" -#include <qlabel.h> -#include <qcheckbox.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqcheckbox.h> +#include <tqlayout.h> using Tellico::GUI::BoolFieldWidget; -BoolFieldWidget::BoolFieldWidget(Data::FieldPtr field_, QWidget* parent_, const char* name_/*=0*/) - : FieldWidget(field_, parent_, name_) { +BoolFieldWidget::BoolFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) + : FieldWidget(field_, tqparent_, name_) { - m_checkBox = new QCheckBox(this); - connect(m_checkBox, SIGNAL(clicked()), SIGNAL(modified())); + m_checkBox = new TQCheckBox(this); + connect(m_checkBox, TQT_SIGNAL(clicked()), TQT_SIGNAL(modified())); registerWidget(); } -QString BoolFieldWidget::text() const { +TQString BoolFieldWidget::text() const { if(m_checkBox->isChecked()) { - return QString::fromLatin1("true"); + return TQString::tqfromLatin1("true"); } - return QString(); + return TQString(); } -void BoolFieldWidget::setText(const QString& text_) { +void BoolFieldWidget::setText(const TQString& text_) { blockSignals(true); m_checkBox->blockSignals(true); @@ -54,7 +54,7 @@ void BoolFieldWidget::clear() { editMultiple(false); } -QWidget* BoolFieldWidget::widget() { +TQWidget* BoolFieldWidget::widget() { return m_checkBox; } |