diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:43:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-16 22:21:37 +0900 |
commit | 35b1925e3dae7101d62e52d89937ad6f462adfab (patch) | |
tree | 06095d7875ae2048f470774e262cd0da51339b53 | |
parent | 3f0134feb95cc63a1eae7eab86885eabc74abc00 (diff) | |
download | kile-35b1925e3dae7101d62e52d89937ad6f462adfab.tar.gz kile-35b1925e3dae7101d62e52d89937ad6f462adfab.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 64c147d64f9c7b72c584346c33c010c0b3754351)
-rw-r--r-- | src/kile/kile.cpp | 4 | ||||
-rw-r--r-- | src/kile/kiledocumentinfo.cpp | 4 | ||||
-rw-r--r-- | src/kile/kiletool.cpp | 4 | ||||
-rw-r--r-- | src/kile/tabulardialog.cpp | 8 | ||||
-rw-r--r-- | src/kile/texdocdialog.cpp | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/kile/kile.cpp b/src/kile/kile.cpp index e981332..7c7b8e9 100644 --- a/src/kile/kile.cpp +++ b/src/kile/kile.cpp @@ -1107,7 +1107,7 @@ void Kile::convertToEnc(Kate::Document *doc) if (sender()) { ConvertIO io(doc); - TQString name = TQString(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name()).section('_', -1); + TQString name = TQString(sender()->name()).section('_', -1); ConvertASCIIToEnc conv = ConvertASCIIToEnc(name, &io); conv.convert(); doc->setEncoding(ConvertMap::encodingNameFor(name)); @@ -1573,7 +1573,7 @@ void Kile::prepareForPart(const TQString & state) void Kile::runTool() { focusLog(); - TQString name = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); + TQString name = sender()->name(); name.replace(TQRegExp("^.*tool_"), ""); m_manager->run(name); } diff --git a/src/kile/kiledocumentinfo.cpp b/src/kile/kiledocumentinfo.cpp index 0a362fe..a75b74e 100644 --- a/src/kile/kiledocumentinfo.cpp +++ b/src/kile/kiledocumentinfo.cpp @@ -810,12 +810,12 @@ void LaTeXInfo::updateStructLevelInfo() { void LaTeXInfo::installEventFilters(KTextEditor::View *view) { - view->focusProxy()->installEventFilter(const_cast<TQObject*>(m_eventFilter)); + view->focusProxy()->installEventFilter(m_eventFilter); } void LaTeXInfo::removeInstalledEventFilters(KTextEditor::View *view) { - view->focusProxy()->removeEventFilter(const_cast<TQObject*>(m_eventFilter)); + view->focusProxy()->removeEventFilter(m_eventFilter); } BracketResult LaTeXInfo::matchBracket(uint &l, uint &pos) diff --git a/src/kile/kiletool.cpp b/src/kile/kiletool.cpp index fe658b3..9916f06 100644 --- a/src/kile/kiletool.cpp +++ b/src/kile/kiletool.cpp @@ -391,9 +391,9 @@ namespace KileTool bool Base::finish(int result) { KILE_DEBUG() << "==KileTool::Base::finish()==============" << endl; - if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))) + if (sender()) { - KILE_DEBUG() << "\tcalled by " << TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() << " " << TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->className() << endl; + KILE_DEBUG() << "\tcalled by " << sender()->name() << " " << sender()->className() << endl; } if ( result == Aborted ) diff --git a/src/kile/tabulardialog.cpp b/src/kile/tabulardialog.cpp index 36749bc..2df4153 100644 --- a/src/kile/tabulardialog.cpp +++ b/src/kile/tabulardialog.cpp @@ -585,7 +585,7 @@ void TabCellDialog::initWidgets() void TabCellDialog::slotFramebuttonClicked() { - TQString name = TQString( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() ).section('_',1,1); + TQString name = TQString( sender()->name() ).section('_',1,1); int border = -1; if ( name == "no" ) @@ -610,7 +610,7 @@ void TabCellDialog::slotResetClicked() void TabCellDialog::slotSeparatorClicked() { - TQString checkboxname = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); + TQString checkboxname = sender()->name(); if ( m_cbAt->isChecked() && checkboxname=="cb_at" ) m_cbSep->setChecked(false); else if ( m_cbSep->isChecked() && checkboxname=="cb_sep" ) @@ -744,12 +744,12 @@ bool TabularTable::eventFilter(TQObject *o, TQEvent *e) TQMouseEvent *me = TQT_TQMOUSEEVENT(e); if ( me->button() == Qt::RightButton ) { - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) ) + if ( o == horizontalHeader() ) { mouseContextHorizontalHeader( me->pos().x() ); return true; } - else if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(verticalHeader()) ) + else if ( o == verticalHeader() ) { mouseContextVerticalHeader( me->pos().y() ); return true; diff --git a/src/kile/texdocdialog.cpp b/src/kile/texdocdialog.cpp index 4f54170..21c50db 100644 --- a/src/kile/texdocdialog.cpp +++ b/src/kile/texdocdialog.cpp @@ -252,7 +252,7 @@ bool TexDocDialog::eventFilter(TQObject *o, TQEvent *e) // ListView: // - space: enable start of viewer // - return: ignore - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_texdocs) ) + if ( o == m_texdocs ) { if ( kev->key() == TQt::Key_Space ) { @@ -265,7 +265,7 @@ bool TexDocDialog::eventFilter(TQObject *o, TQEvent *e) // LineEdit // - return: start search, if button is enabled - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_leKeywords) ) + if ( o == m_leKeywords ) { if ( kev->key()==TQt::Key_Return || kev->key()==TQt::Key_Enter ) { |