summaryrefslogtreecommitdiffstats
path: root/kopete
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-09 10:36:57 +0900
committerMichele Calgaro <[email protected]>2023-11-09 17:21:24 +0900
commit7367a616169a4ec8b35b5a993852c336aaeec25b (patch)
tree2fd2b837621af51718278a66c8d5151fec1d77e8 /kopete
parenta14ec34f576f49ee1abf4844883fb9e3af69eeb3 (diff)
downloadtdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.tar.gz
tdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b53c83209a6b927b27600899a780db1efc985ecb)
Diffstat (limited to 'kopete')
-rw-r--r--kopete/kopete/chatwindow/kopeteemailwindow.cpp2
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.cpp2
-rw-r--r--kopete/kopete/kopeteaccountstatusbaricon.cpp4
-rw-r--r--kopete/kopete/kopeteeditglobalidentitywidget.cpp2
-rw-r--r--kopete/kopete/kopetewindow.cpp2
-rw-r--r--kopete/kopete/systemtray.cpp4
-rw-r--r--kopete/plugins/cryptography/popuppublic.cpp2
-rw-r--r--kopete/plugins/history/historydialog.cpp2
-rw-r--r--kopete/plugins/history/historylogger.cpp6
-rw-r--r--kopete/protocols/gadu/gadusession.cpp2
-rw-r--r--kopete/protocols/jabber/jabberbasecontact.cpp2
-rw-r--r--kopete/protocols/jabber/jabbercapabilitiesmanager.cpp4
-rw-r--r--kopete/protocols/jabber/jabbercontact.cpp4
-rw-r--r--kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp2
-rw-r--r--kopete/protocols/yahoo/yahooaccount.cpp4
-rw-r--r--kopete/protocols/yahoo/yahoocontact.cpp8
16 files changed, 26 insertions, 26 deletions
diff --git a/kopete/kopete/chatwindow/kopeteemailwindow.cpp b/kopete/kopete/chatwindow/kopeteemailwindow.cpp
index b921a92b..9bd4aaf6 100644
--- a/kopete/kopete/chatwindow/kopeteemailwindow.cpp
+++ b/kopete/kopete/chatwindow/kopeteemailwindow.cpp
@@ -106,7 +106,7 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP
setMinimumSize( TQSize( 75, 20 ) );
d->split = new TQSplitter( v );
- d->split->setOrientation( Qt::Vertical );
+ d->split->setOrientation( TQt::Vertical );
d->messagePart = new ChatMessagePart( manager, d->split, "messagePart" );
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.cpp b/kopete/kopete/contactlist/kopetecontactlistview.cpp
index 9678aa5a..a7b214b6 100644
--- a/kopete/kopete/contactlist/kopetecontactlistview.cpp
+++ b/kopete/kopete/contactlist/kopetecontactlistview.cpp
@@ -1205,7 +1205,7 @@ void KopeteContactListView::findDrop(const TQPoint &pos, TQListViewItem *&parent
void KopeteContactListView::contentsMousePressEvent( TQMouseEvent *e )
{
TDEListView::contentsMousePressEvent( e );
- if (e->button() == Qt::LeftButton )
+ if (e->button() == TQt::LeftButton )
{
TQPoint p=contentsToViewport(e->pos());
TQListViewItem *i=itemAt( p );
diff --git a/kopete/kopete/kopeteaccountstatusbaricon.cpp b/kopete/kopete/kopeteaccountstatusbaricon.cpp
index 45228788..d08f7f96 100644
--- a/kopete/kopete/kopeteaccountstatusbaricon.cpp
+++ b/kopete/kopete/kopeteaccountstatusbaricon.cpp
@@ -44,11 +44,11 @@ KopeteAccountStatusBarIcon::~KopeteAccountStatusBarIcon()
void KopeteAccountStatusBarIcon::mousePressEvent( TQMouseEvent *me )
{
- if( me->button() == Qt::RightButton )
+ if( me->button() == TQt::RightButton )
{
emit rightClicked( m_account, TQPoint( me->globalX(), me->globalY() ) );
}
- else if( me->button() == Qt::LeftButton )
+ else if( me->button() == TQt::LeftButton )
{
emit leftClicked( m_account, TQPoint( me->globalX(), me->globalY() ) );
}
diff --git a/kopete/kopete/kopeteeditglobalidentitywidget.cpp b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
index 92c88f2e..8d510694 100644
--- a/kopete/kopete/kopeteeditglobalidentitywidget.cpp
+++ b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
@@ -50,7 +50,7 @@ ClickableLabel::ClickableLabel(TQWidget *parent, const char *name)
void ClickableLabel::mouseReleaseEvent(TQMouseEvent *event)
{
- if(event->button() == Qt::LeftButton)
+ if(event->button() == TQt::LeftButton)
{
emit clicked();
event->accept();
diff --git a/kopete/kopete/kopetewindow.cpp b/kopete/kopete/kopetewindow.cpp
index ef8cec71..329f4944 100644
--- a/kopete/kopete/kopetewindow.cpp
+++ b/kopete/kopete/kopetewindow.cpp
@@ -88,7 +88,7 @@ GlobalStatusMessageIconLabel::GlobalStatusMessageIconLabel(TQWidget *parent, con
void GlobalStatusMessageIconLabel::mouseReleaseEvent( TQMouseEvent *event )
{
- if( event->button() == Qt::LeftButton || event->button() == Qt::RightButton )
+ if( event->button() == TQt::LeftButton || event->button() == TQt::RightButton )
{
emit iconClicked( event->globalPos() );
event->accept();
diff --git a/kopete/kopete/systemtray.cpp b/kopete/kopete/systemtray.cpp
index f84bea13..8a18b0dd 100644
--- a/kopete/kopete/systemtray.cpp
+++ b/kopete/kopete/systemtray.cpp
@@ -100,8 +100,8 @@ KopeteSystemTray::~KopeteSystemTray()
void KopeteSystemTray::mousePressEvent( TQMouseEvent *me )
{
if (
- (me->button() == Qt::MidButton ||
- (me->button() == Qt::LeftButton && KopetePrefs::prefs()->trayflashNotifyLeftClickOpensMessage())) &&
+ (me->button() == TQt::MidButton ||
+ (me->button() == TQt::LeftButton && KopetePrefs::prefs()->trayflashNotifyLeftClickOpensMessage())) &&
mIsBlinking )
{
mouseDoubleClickEvent( me );
diff --git a/kopete/plugins/cryptography/popuppublic.cpp b/kopete/plugins/cryptography/popuppublic.cpp
index e5aaeebf..c5ef4fa5 100644
--- a/kopete/plugins/cryptography/popuppublic.cpp
+++ b/kopete/plugins/cryptography/popuppublic.cpp
@@ -141,7 +141,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
keysList->setColumnWidth(0,210);
keysList->setColumnWidth(1,210);
- boutonboxoptions=new TQButtonGroup(5,Qt::Vertical ,page,0);
+ boutonboxoptions=new TQButtonGroup(5,TQt::Vertical ,page,0);
TDEActionCollection *actcol=new TDEActionCollection(this);
(void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");
diff --git a/kopete/plugins/history/historydialog.cpp b/kopete/plugins/history/historydialog.cpp
index 0ce07aad..7a4e1795 100644
--- a/kopete/plugins/history/historydialog.cpp
+++ b/kopete/plugins/history/historydialog.cpp
@@ -74,7 +74,7 @@ private:
TDEListViewDateItem::TDEListViewDateItem(TDEListView* parent, TQDate date, Kopete::MetaContact *mc)
- : TDEListViewItem(parent, date.toString(Qt::ISODate), mc->displayName())
+ : TDEListViewItem(parent, date.toString(TQt::ISODate), mc->displayName())
{
mDate = date;
mMetaContact = mc;
diff --git a/kopete/plugins/history/historylogger.cpp b/kopete/plugins/history/historylogger.cpp
index f03d165b..78bf25b2 100644
--- a/kopete/plugins/history/historylogger.cpp
+++ b/kopete/plugins/history/historylogger.cpp
@@ -377,7 +377,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(TQDate date)
Kopete::Message msg(dt, from, to, msgElem2.text(), dir);
msg.setBody( TQString::fromLatin1("<span title=\"%1\">%2</span>")
- .arg( dt.toString(Qt::LocalDate), msg.escapedBody() ),
+ .arg( dt.toString(TQt::LocalDate), msg.escapedBody() ),
Kopete::Message::RichText);
@@ -595,7 +595,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(unsigned int lines,
if (colorize)
{
msg.setBody( TQString::fromLatin1("<span style=\"color:%1\" title=\"%2\">%3</span>")
- .arg( fgColor.name(), timestamp.toString(Qt::LocalDate), msg.escapedBody() ),
+ .arg( fgColor.name(), timestamp.toString(TQt::LocalDate), msg.escapedBody() ),
Kopete::Message::RichText
);
msg.setFg( fgColor );
@@ -603,7 +603,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(unsigned int lines,
else
{
msg.setBody( TQString::fromLatin1("<span title=\"%1\">%2</span>")
- .arg( timestamp.toString(Qt::LocalDate), msg.escapedBody() ),
+ .arg( timestamp.toString(TQt::LocalDate), msg.escapedBody() ),
Kopete::Message::RichText
);
}
diff --git a/kopete/protocols/gadu/gadusession.cpp b/kopete/protocols/gadu/gadusession.cpp
index e4218cb2..f1660ffd 100644
--- a/kopete/protocols/gadu/gadusession.cpp
+++ b/kopete/protocols/gadu/gadusession.cpp
@@ -714,7 +714,7 @@ GaduSession::checkDescriptor()
gaduMessage.message =
textcodec->toUnicode((const char*)event->event.msg.message);
gaduMessage.sender_id = event->event.msg.sender;
- gaduMessage.sendTime.setTime_t( event->event.msg.time, Qt::LocalTime );
+ gaduMessage.sendTime.setTime_t( event->event.msg.time, TQt::LocalTime );
gaduMessage.message = rtf->convertToHtml( gaduMessage.message, event->event.msg.formats_length, event->event.msg.formats );
emit messageReceived( &gaduMessage );
}
diff --git a/kopete/protocols/jabber/jabberbasecontact.cpp b/kopete/protocols/jabber/jabberbasecontact.cpp
index e3bc2ed9..54d4e427 100644
--- a/kopete/protocols/jabber/jabberbasecontact.cpp
+++ b/kopete/protocols/jabber/jabberbasecontact.cpp
@@ -414,7 +414,7 @@ void JabberBaseContact::setPropertiesFromVCard ( const XMPP::VCard &vCard )
// update vCard cache timestamp if this is not a temporary contact
if ( metaContact() && !metaContact()->isTemporary () )
{
- setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) );
+ setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( TQt::ISODate ) );
}
diff --git a/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp b/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp
index c1affb1e..deb62a1e 100644
--- a/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp
+++ b/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp
@@ -246,7 +246,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::updateLastSeen()
TQDomElement JabberCapabilitiesManager::CapabilitiesInformation::toXml(TQDomDocument *doc) const
{
TQDomElement info = doc->createElement("info");
- //info.setAttribute("last-seen",lastSeen_.toString(Qt::ISODate));
+ //info.setAttribute("last-seen",lastSeen_.toString(TQt::ISODate));
// Identities
DiscoItem::Identities::ConstIterator discoIt = m_identities.constBegin(), discoItEnd = m_identities.constEnd();
@@ -280,7 +280,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::fromXml(const TQDomElem
}
//if (!e.attribute("last-seen").isEmpty())
- // lastSeen_ = TQDate::fromString(e.attribute("last-seen"),Qt::ISODate);
+ // lastSeen_ = TQDate::fromString(e.attribute("last-seen"),TQt::ISODate);
for(TQDomNode node = element.firstChild(); !node.isNull(); node = node.nextSibling())
{
diff --git a/kopete/protocols/jabber/jabbercontact.cpp b/kopete/protocols/jabber/jabbercontact.cpp
index 54bc7f7e..7d8035f9 100644
--- a/kopete/protocols/jabber/jabbercontact.cpp
+++ b/kopete/protocols/jabber/jabbercontact.cpp
@@ -442,7 +442,7 @@ void JabberContact::slotCheckVCard ()
if ( cacheDateString.isNull () )
cacheDate = TQDateTime::currentDateTime().addDays ( -2 );
else
- cacheDate = TQDateTime::fromString ( cacheDateString.value().toString (), Qt::ISODate );
+ cacheDate = TQDateTime::fromString ( cacheDateString.value().toString (), TQt::ISODate );
kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Cached vCard data for " << contactId () << " from " << cacheDate.toString () << endl;
@@ -506,7 +506,7 @@ void JabberContact::slotGotVCard ()
// update timestamp of last vCard retrieval
if ( metaContact() && !metaContact()->isTemporary () )
{
- setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) );
+ setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( TQt::ISODate ) );
}
mVCardUpdateInProgress = false;
diff --git a/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp b/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp
index 2d51eea3..497f13fe 100644
--- a/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp
+++ b/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp
@@ -282,7 +282,7 @@ void WinPopupLib::readMessages(const KFileItemList &items)
// second line is time
TQString tmpTime = stream.readLine();
- time = TQDateTime::fromString(tmpTime, Qt::ISODate);
+ time = TQDateTime::fromString(tmpTime, TQt::ISODate);
while (!stream.atEnd()) {
text.append(stream.readLine());
diff --git a/kopete/protocols/yahoo/yahooaccount.cpp b/kopete/protocols/yahoo/yahooaccount.cpp
index 91d845df..f5c2e26b 100644
--- a/kopete/protocols/yahoo/yahooaccount.cpp
+++ b/kopete/protocols/yahoo/yahooaccount.cpp
@@ -1147,7 +1147,7 @@ void YahooAccount::slotGotIm( const TQString &who, const TQString &msg, long tm,
msgDT.setTime_t(time(0L));
else
//msgDT = TQDateTime::fromTime_t(tm);
- msgDT.setTime_t(tm, Qt::LocalTime);
+ msgDT.setTime_t(tm, TQt::LocalTime);
TQString newMsgText = prepareIncomingMessage( msg );
@@ -1185,7 +1185,7 @@ void YahooAccount::slotGotBuzz( const TQString &who, long tm )
msgDT.setTime_t(time(0L));
else
//msgDT = TQDateTime::fromTime_t(tm);
- msgDT.setTime_t(tm, Qt::LocalTime);
+ msgDT.setTime_t(tm, TQt::LocalTime);
justMe.append(myself());
diff --git a/kopete/protocols/yahoo/yahoocontact.cpp b/kopete/protocols/yahoo/yahoocontact.cpp
index c5e0f3ce..4f93ea3a 100644
--- a/kopete/protocols/yahoo/yahoocontact.cpp
+++ b/kopete/protocols/yahoo/yahoocontact.cpp
@@ -763,8 +763,8 @@ void YahooContact::writeYABEntry()
setProperty( YahooProtocol::protocol()->propWorkURL, m_YABEntry->workURL );
// Miscellanous
- setProperty( YahooProtocol::protocol()->propBirthday, TQString(m_YABEntry->birthday.toString( Qt::ISODate )) );
- setProperty( YahooProtocol::protocol()->propAnniversary, TQString(m_YABEntry->anniversary.toString( Qt::ISODate )) );
+ setProperty( YahooProtocol::protocol()->propBirthday, TQString(m_YABEntry->birthday.toString( TQt::ISODate )) );
+ setProperty( YahooProtocol::protocol()->propAnniversary, TQString(m_YABEntry->anniversary.toString( TQt::ISODate )) );
setProperty( YahooProtocol::protocol()->propNotes, m_YABEntry->notes );
setProperty( YahooProtocol::protocol()->propAdditional1, m_YABEntry->additional1 );
setProperty( YahooProtocol::protocol()->propAdditional2, m_YABEntry->additional2 );
@@ -826,8 +826,8 @@ void YahooContact::readYABEntry()
m_YABEntry->workURL = property( YahooProtocol::protocol()->propWorkURL ).value().toString();
// Miscellanous
- m_YABEntry->birthday = TQDate::fromString( property( YahooProtocol::protocol()->propBirthday ).value().toString(), Qt::ISODate );
- m_YABEntry->anniversary = TQDate::fromString( property( YahooProtocol::protocol()->propAnniversary ).value().toString(), Qt::ISODate );
+ m_YABEntry->birthday = TQDate::fromString( property( YahooProtocol::protocol()->propBirthday ).value().toString(), TQt::ISODate );
+ m_YABEntry->anniversary = TQDate::fromString( property( YahooProtocol::protocol()->propAnniversary ).value().toString(), TQt::ISODate );
m_YABEntry->notes = property( YahooProtocol::protocol()->propNotes ).value().toString();
m_YABEntry->additional1 = property( YahooProtocol::protocol()->propAdditional1 ).value().toString();
m_YABEntry->additional2 = property( YahooProtocol::protocol()->propAdditional2 ).value().toString();