Drop TQT_TQ*_CONST defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 23278d2593)
pull/232/head
Michele Calgaro 1 year ago
parent 18c573e806
commit 34a191d96f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -108,7 +108,7 @@ const DomainBrowser* ServiceBrowser::browsedDomains() const
void ServiceBrowser::serviceResolved(bool success)
{
TQObject* sender_obj = const_cast<TQObject*>(TQT_TQOBJECT_CONST(sender()));
TQObject* sender_obj = const_cast<TQObject*>(sender());
RemoteService* svr = static_cast<RemoteService*>(sender_obj);
disconnect(svr,TQT_SIGNAL(resolved(bool)),this,TQT_SLOT(serviceResolved(bool)));
TQValueList<RemoteService::Ptr>::Iterator it = d->m_duringResolve.begin();

@ -636,7 +636,7 @@ bool KateSuperRangeList::rangesInclude(const KateTextCursor& cursor)
void KateSuperRangeList::slotEliminated()
{
if (sender()) {
KateSuperRange* range = static_cast<KateSuperRange*>(const_cast<TQObject*>(TQT_TQOBJECT_CONST(sender())));
KateSuperRange* range = static_cast<KateSuperRange*>(const_cast<TQObject*>(sender()));
emit rangeEliminated(range);
if (m_trackingBoundaries) {

@ -139,7 +139,7 @@ TQString VCardTool::createVCards( Addressee::List list, VCard::Version version )
card.addLine( createAgent( version, (*addrIt).agent() ) );
// BDAY
card.addLine( VCardLine( "BDAY", createDateTime( (*addrIt).birthday()) ) ) );
card.addLine( VCardLine( "BDAY", createDateTime( (*addrIt).birthday()) ) );
// CATEGORIES
if ( version == VCard::v3_0 ) {
@ -262,7 +262,7 @@ TQString VCardTool::createVCards( Addressee::List list, VCard::Version version )
card.addLine( VCardLine( "PRODID", TQString((*addrIt).productId()) ) );
// REV
card.addLine( VCardLine( "REV", createDateTime( (*addrIt).revision()) ) ) );
card.addLine( VCardLine( "REV", createDateTime( (*addrIt).revision()) ) );
// ROLE
VCardLine roleLine( "ROLE", TQString((*addrIt).role()) );

@ -222,7 +222,7 @@ void KLibrary::slotObjectCreated( TQObject *obj )
void KLibrary::slotObjectDestroyed()
{
m_objs.removeRef( TQT_TQOBJECT_CONST(sender()) );
m_objs.removeRef( sender() );
if ( m_objs.count() == 0 )
{

@ -826,7 +826,7 @@ PermissionDialog::~PermissionDialog()
void PermissionDialog::clicked()
{
m_button = TQT_TQOBJECT_CONST(sender())->name();
m_button = sender()->name();
static_cast<const TQWidget*>(sender())->parentWidget()->close();
}

@ -263,7 +263,7 @@ void TDEHTMLPartBrowserExtension::copy()
void TDEHTMLPartBrowserExtension::searchProvider()
{
// action name is of form "previewProvider[<searchproviderprefix>:]"
const TQString searchProviderPrefix = TQString( TQT_TQOBJECT_CONST(sender())->name() ).mid( 14 );
const TQString searchProviderPrefix = TQString( sender()->name() ).mid( 14 );
KURIFilterData data;
TQStringList list;

@ -5033,7 +5033,7 @@ void TDEHTMLPart::slotParentCompleted()
void TDEHTMLPart::slotChildStarted( TDEIO::Job *job )
{
tdehtml::ChildFrame *child = frame( TQT_TQOBJECT_CONST(sender()) );
tdehtml::ChildFrame *child = frame( sender() );
assert( child );
@ -5060,7 +5060,7 @@ void TDEHTMLPart::slotChildCompleted()
void TDEHTMLPart::slotChildCompleted( bool pendingAction )
{
tdehtml::ChildFrame *child = frame( TQT_TQOBJECT_CONST(sender()) );
tdehtml::ChildFrame *child = frame( sender() );
if ( child ) {
kdDebug(6050) << this << " slotChildCompleted child=" << child << " m_frame=" << child->m_frame << endl;
@ -5093,7 +5093,7 @@ void TDEHTMLPart::slotChildDocCreated()
void TDEHTMLPart::slotChildURLRequest( const KURL &url, const KParts::URLArgs &args )
{
tdehtml::ChildFrame *child = frame( TQT_TQOBJECT_CONST(sender())->parent() );
tdehtml::ChildFrame *child = frame( sender()->parent() );
TDEHTMLPart *callingHtmlPart = const_cast<TDEHTMLPart *>(dynamic_cast<const TDEHTMLPart *>(sender()->parent()));
// TODO: handle child target correctly! currently the script are always executed fur the parent

@ -935,7 +935,7 @@ void KDirListerCache::slotFileDirty( const KURL& _url )
// delayed updating of files, FAM is flooding us with events
void KDirListerCache::slotFileDirtyDelayed()
{
TQString file = TQString::fromUtf8( TQT_TQOBJECT_CONST(sender())->name() );
TQString file = TQString::fromUtf8( sender()->name() );
kdDebug(7004) << k_funcinfo << file << endl;

@ -135,7 +135,7 @@ void TabWidget::childDestroyed()
{
// if we lost a child we uninstall ourself as event filter for the lost
// child and its children
const TQObject* pLostChild = TQT_TQOBJECT_CONST(sender());
const TQObject* pLostChild = sender();
if ((pLostChild != 0L) && (pLostChild->isWidgetType()))
{
TQObjectList *list = ((TQObject*)(pLostChild))->queryList("TQWidget");

@ -493,7 +493,7 @@ void KMdiChildView::slot_childDestroyed()
// if we lost a child we uninstall ourself as event filter for the lost
// child and its children
const TQObject * pLostChild = TQT_TQOBJECT_CONST(sender());
const TQObject * pLostChild = sender();
if ( pLostChild && ( pLostChild->isWidgetType() ) )
{
TQObjectList* list = ( ( TQObject* ) ( pLostChild ) ) ->queryList( "TQWidget" );

@ -493,7 +493,7 @@ void KMMainView::slotRightButtonClicked(const TQString& prname, const TQPoint& p
void KMMainView::slotChangePrinterState()
{
TQString opname = TQT_TQOBJECT_CONST(sender())->name();
TQString opname = sender()->name();
if (m_current && opname.startsWith("printer_"))
{
opname = opname.mid(8);

@ -243,7 +243,7 @@ void EscpWidget::slotReceivedStderr(TDEProcess*, char *buf, int len)
void EscpWidget::slotButtonClicked()
{
TQString arg = TQT_TQOBJECT_CONST(sender())->name();
TQString arg = sender()->name();
startCommand(arg);
}

@ -231,7 +231,7 @@ union kthemeKey{
unsigned int cacheKey;
};
#define KDE_TQBITMAP_TO_TQPAINTDEVICE(x) TQT_TQPAINTDEVICE_CONST(static_cast<const TQPixmap*>(static_cast<const TQBitmap*>(x)))
#define KDE_TQBITMAP_TO_TQPAINTDEVICE(x) static_cast<const TQPixmap*>(static_cast<const TQBitmap*>(x))
void KThemeBase::generateBorderPix( int i )
{

@ -142,7 +142,7 @@ void KSwitchLanguageDialog::slotAddLanguageButton()
void KSwitchLanguageDialog::removeButtonClicked()
{
TQObject const *signalSender = TQT_TQOBJECT_CONST(sender());
TQObject const *signalSender = sender();
if (signalSender == NULL)
{

@ -1109,7 +1109,7 @@ void TDEAction::activate()
void TDEAction::slotActivated()
{
const TQObject *senderObj = TQT_TQOBJECT_CONST(sender());
const TQObject *senderObj = sender();
if ( senderObj )
{
if ( ::tqqt_cast<TDEAccelPrivate *>( senderObj ) )
@ -1167,7 +1167,7 @@ void TDEAction::slotButtonClicked( int, TQt::ButtonState state )
void TDEAction::slotDestroyed()
{
kdDebug(129) << "TDEAction::slotDestroyed(): this = " << this << ", name = \"" << name() << "\", sender = " << sender() << endl;
const TQObject* const o = TQT_TQOBJECT_CONST(sender());
const TQObject* const o = sender();
#ifndef KDE_NO_COMPAT // KDE 4: remove
if ( o == d->m_tdeaccel )
@ -1193,7 +1193,7 @@ void TDEAction::slotDestroyed()
int i;
do
{
i = findContainer( TQT_TQWIDGET_CONST( static_cast<const QObject*>(o) ) );
i = findContainer( static_cast<const TQWidget*>(o) );
if ( i != -1 )
removeContainer( i );
} while ( i != -1 );

@ -322,12 +322,12 @@ void TDERadioAction::slotActivated()
{
if ( isChecked() )
{
const TQObject *senderObj = TQT_TQOBJECT_CONST(sender());
const TQObject *senderObj = sender();
if ( !senderObj || !::tqqt_cast<const TDEToolBarButton *>( senderObj ) )
return;
const_cast<TDEToolBarButton *>( static_cast<const TDEToolBarButton *>( TQT_TQWIDGET_CONST(senderObj) ) )->on( true );
const_cast<TDEToolBarButton *>( static_cast<const TDEToolBarButton *>( senderObj ) )->on( true );
return;
}

@ -547,7 +547,7 @@ void TDEActionCollection::slotMenuItemHighlighted( int id )
if ( d->m_currentHighlightAction )
emit actionHighlighted( d->m_currentHighlightAction, false );
TQWidget *container = const_cast<TQWidget*>(TQT_TQWIDGET_CONST( sender() ));
TQWidget *container = static_cast<TQWidget *>( const_cast<TQObject *>( sender() ));
d->m_currentHighlightAction = findAction( container, id );
@ -581,7 +581,7 @@ void TDEActionCollection::slotToolBarButtonHighlighted( int id, bool highlight )
if ( !d->m_highlight )
return;
TQWidget *container = const_cast<TQWidget*>(TQT_TQWIDGET_CONST( sender() ));
TQWidget *container = static_cast<TQWidget *>( const_cast<TQObject *>( sender() ));
TDEAction *action = findAction( container, id );
@ -606,7 +606,7 @@ void TDEActionCollection::slotToolBarButtonHighlighted( int id, bool highlight )
void TDEActionCollection::slotDestroyed()
{
d->m_dctHighlightContainers.remove( reinterpret_cast<void *>( const_cast<TQObject*>(TQT_TQOBJECT_CONST(sender())) ) );
d->m_dctHighlightContainers.remove( reinterpret_cast<void *>( const_cast<TQObject*>(sender()) ) );
}
TDEAction *TDEActionCollection::findAction( TQWidget *container, int id )

@ -345,7 +345,7 @@ TQRect TDECompletionBox::calculateGeometry() const
if ( d->m_parent && (combo = d->m_parent->parent() ) &&
combo->inherits("TQComboBox") )
{
const TQComboBox* cb = static_cast<const TQComboBox*>(TQT_TQWIDGET_CONST(combo));
const TQComboBox* cb = static_cast<const TQComboBox*>(combo);
//Expand to the combo width
w = TQMAX( w, cb->width() );

Loading…
Cancel
Save