diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/imagewidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/lineedit.cpp | 4 | ||||
-rw-r--r-- | src/gui/linefieldwidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/numberfieldwidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/stringmapdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/tabcontrol.cpp | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/imagewidget.cpp b/src/gui/imagewidget.cpp index 556d93d..75fe95f 100644 --- a/src/gui/imagewidget.cpp +++ b/src/gui/imagewidget.cpp @@ -54,8 +54,8 @@ ImageWidget::ImageWidget(TQWidget* parent_, const char* name_) : TQWidget(parent boxLayout->addStretch(1); KButtonBox* box = new KButtonBox(this,TQt::Vertical); - box->addButton(i18n("Select Image..."), TQT_TQOBJECT(this), TQT_SLOT(slotGetImage())); - box->addButton(i18n("Clear"), TQT_TQOBJECT(this), TQT_SLOT(slotClear())); + box->addButton(i18n("Select Image..."), this, TQT_SLOT(slotGetImage())); + box->addButton(i18n("Clear"), this, TQT_SLOT(slotClear())); box->layout(); boxLayout->addWidget(box); diff --git a/src/gui/lineedit.cpp b/src/gui/lineedit.cpp index 1da38ca..1096671 100644 --- a/src/gui/lineedit.cpp +++ b/src/gui/lineedit.cpp @@ -28,7 +28,7 @@ LineEdit::LineEdit(TQWidget* parent_, const char* name_) : KLineEdit(parent_, na , m_allowSpellCheck(false) , m_enableSpellCheck(true) , m_spell(0) { - m_spellAction = KStdAction::spelling(TQT_TQOBJECT(this), TQT_SLOT(slotCheckSpelling()), new TDEActionCollection(this)); + m_spellAction = KStdAction::spelling(this, TQT_SLOT(slotCheckSpelling()), new TDEActionCollection(this)); } void LineEdit::clear() { @@ -110,7 +110,7 @@ void LineEdit::slotCheckSpelling() { delete m_spell; // re-use the action string to get translations m_spell = new KSpell(this, m_spellAction->text(), - TQT_TQOBJECT(this), TQT_SLOT(slotSpellCheckReady(KSpell*)), 0, true, true); + this, TQT_SLOT(slotSpellCheckReady(KSpell*)), 0, true, true); connect(m_spell, TQT_SIGNAL(death()), TQT_SLOT(spellCheckerFinished())); diff --git a/src/gui/linefieldwidget.cpp b/src/gui/linefieldwidget.cpp index 3f3da1d..ee4474a 100644 --- a/src/gui/linefieldwidget.cpp +++ b/src/gui/linefieldwidget.cpp @@ -40,7 +40,7 @@ LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const } if(field_->name() == Latin1Literal("isbn")) { - m_lineEdit->setValidator(new ISBNValidator(TQT_TQOBJECT(this))); + m_lineEdit->setValidator(new ISBNValidator(this)); } } diff --git a/src/gui/numberfieldwidget.cpp b/src/gui/numberfieldwidget.cpp index 0284e84..3893f08 100644 --- a/src/gui/numberfieldwidget.cpp +++ b/src/gui/numberfieldwidget.cpp @@ -42,7 +42,7 @@ void NumberFieldWidget::initLineEdit() { // regexp is any number of digits followed optionally by any number of // groups of a semi-colon followed optionally by a space, followed by digits TQRegExp rx(TQString::fromLatin1("-?\\d*(; ?-?\\d*)*")); - m_lineEdit->setValidator(new TQRegExpValidator(rx, TQT_TQOBJECT(this))); + m_lineEdit->setValidator(new TQRegExpValidator(rx, this)); } void NumberFieldWidget::initSpinBox() { diff --git a/src/gui/stringmapdialog.cpp b/src/gui/stringmapdialog.cpp index e580a8d..28867a0 100644 --- a/src/gui/stringmapdialog.cpp +++ b/src/gui/stringmapdialog.cpp @@ -54,9 +54,9 @@ StringMapDialog::StringMapDialog(const TQMap<TQString, TQString>& map_, TQWidget m_edit2 = new KLineEdit(box); KButtonBox* bb = new KButtonBox(box); bb->addStretch(); - TQPushButton* btn = bb->addButton(i18n("&Set"), TQT_TQOBJECT(this), TQT_SLOT(slotAdd())); + TQPushButton* btn = bb->addButton(i18n("&Set"), this, TQT_SLOT(slotAdd())); btn->setIconSet(BarIcon(TQString::fromLatin1("document-new"), TDEIcon::SizeSmall)); - btn = bb->addButton(i18n("&Delete"), TQT_TQOBJECT(this), TQT_SLOT(slotDelete())); + btn = bb->addButton(i18n("&Delete"), this, TQT_SLOT(slotDelete())); btn->setIconSet(BarIcon(TQString::fromLatin1("edit-delete"), TDEIcon::SizeSmall)); l->addWidget(box); diff --git a/src/gui/tabcontrol.cpp b/src/gui/tabcontrol.cpp index cd68b97..609c3de 100644 --- a/src/gui/tabcontrol.cpp +++ b/src/gui/tabcontrol.cpp @@ -34,7 +34,7 @@ void TabControl::setFocusToFirstChild() { } TQObjectList* list = page->queryList("TQWidget"); for(TQObjectListIt it(*list); it.current(); ++it) { - TQWidget* w = TQT_TQWIDGET(it.current()); + TQWidget* w = static_cast<TQWidget*>(it.current()); if(w->isFocusEnabled()) { w->setFocus(); break; |