From 089118c18533dfa3e6ce5065dbebdd4db94051f1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:33:51 -0600 Subject: Rename old tq methods that no longer need a unique name --- kopete/libkopete/knotification.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kopete/libkopete/knotification.cpp') diff --git a/kopete/libkopete/knotification.cpp b/kopete/libkopete/knotification.cpp index cd7fa13a..f818d101 100644 --- a/kopete/libkopete/knotification.cpp +++ b/kopete/libkopete/knotification.cpp @@ -109,7 +109,7 @@ void KNotification::notifyByMessagebox() return; TQString action=d->actions[0]; - WId winId=d->widget ? d->widget->tqtopLevelWidget()->winId() : 0; + WId winId=d->widget ? d->widget->topLevelWidget()->winId() : 0; if( action.isEmpty()) { @@ -171,7 +171,7 @@ void KNotification::notifyByPassivePopup(const TQPixmap &pix ) TQString title = config.readEntry( "Comment", appName ); //KPassivePopup::message(title, text, icon, senderWinId); - WId winId=d->widget ? d->widget->tqtopLevelWidget()->winId() : 0; + WId winId=d->widget ? d->widget->topLevelWidget()->winId() : 0; KPassivePopup *pop = new KPassivePopup( checkWinId(appName, winId) ); TQObject::connect(this, TQT_SIGNAL(closed()), pop, TQT_SLOT(deleteLater())); @@ -198,22 +198,22 @@ void KNotification::notifyByPassivePopup(const TQPixmap &pix ) } vb=new TQVBox(hb); TQLabel *msg = new TQLabel( d->text, vb, "msg_label" ); - msg->tqsetAlignment( AlignLeft ); + msg->setAlignment( AlignLeft ); } if ( !d->actions.isEmpty() ) { - TQString linkCode=TQString::tqfromLatin1("

"); + TQString linkCode=TQString::fromLatin1("

"); int i=0; for ( TQStringList::ConstIterator it = d->actions.begin() ; it != d->actions.end(); ++it ) { i++; - linkCode+=TQString::tqfromLatin1(" %2 ").tqarg( TQString::number(i) , TQStyleSheet::escape(*it) ); + linkCode+=TQString::fromLatin1(" %2 ").tqarg( TQString::number(i) , TQStyleSheet::escape(*it) ); } - linkCode+=TQString::tqfromLatin1("

"); + linkCode+=TQString::fromLatin1("

"); KActiveLabel *link = new KActiveLabel(linkCode , vb ); - //link->tqsetAlignment( AlignRight ); + //link->setAlignment( AlignRight ); TQObject::disconnect(link, TQT_SIGNAL(linkClicked(const TQString &)), link, TQT_SLOT(openLink(const TQString &))); TQObject::connect(link, TQT_SIGNAL(linkClicked(const TQString &)), this, TQT_SLOT(slotPopupLinkClicked(const TQString &))); TQObject::connect(link, TQT_SIGNAL(linkClicked(const TQString &)), pop, TQT_SLOT(hide())); @@ -373,7 +373,7 @@ KNotification *KNotification::userEvent( const TQString& text, const TQPixmap& p notify->d->text=text; notify->d->actions=actions; notify->d->level=level; - WId winId=widget ? widget->tqtopLevelWidget()->winId() : 0; + WId winId=widget ? widget->topLevelWidget()->winId() : 0; //we will catch some event that will not be fired by the old deamon -- cgit v1.2.1