Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/9/head
Michele Calgaro 1 year ago
parent ef6344d6ed
commit 64c147d64f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);
}

@ -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)

@ -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 )

@ -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;

@ -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 )
{

Loading…
Cancel
Save