From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klipper/historyurlitem.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'klipper/historyurlitem.cpp') diff --git a/klipper/historyurlitem.cpp b/klipper/historyurlitem.cpp index 3e85a17c3..863a93fb8 100644 --- a/klipper/historyurlitem.cpp +++ b/klipper/historyurlitem.cpp @@ -22,28 +22,28 @@ #include #include -HistoryURLItem::HistoryURLItem( const KURL::List &_urls, QMap _metaData, bool _cut ) +HistoryURLItem::HistoryURLItem( const KURL::List &_urls, TQMap _metaData, bool _cut ) : urls( _urls ), metaData( _metaData ), cut( _cut ) { } /* virtual */ -void HistoryURLItem::write( QDataStream& stream ) const +void HistoryURLItem::write( TQDataStream& stream ) const { - stream << QString( "url" ) << urls << metaData << (int)cut; + stream << TQString( "url" ) << urls << metaData << (int)cut; } -QString HistoryURLItem::text() const { +TQString HistoryURLItem::text() const { return urls.toStringList().join( " " ); } -QMimeSource* HistoryURLItem::mimeSource() const { +TQMimeSource* HistoryURLItem::mimeSource() const { KMultipleDrag* drag = new KMultipleDrag; drag->addDragObject( new KURLDrag( urls, metaData )); // from KonqDrag (libkonq) - QStoredDrag* cutdrag = new QStoredDrag( "application/x-kde-cutselection" ); - QByteArray a; - QCString s ( cut ? "1" : "0" ); + TQStoredDrag* cutdrag = new TQStoredDrag( "application/x-kde-cutselection" ); + TQByteArray a; + TQCString s ( cut ? "1" : "0" ); a.resize( s.length() + 1 ); // trailing zero memcpy( a.data(), s.data(), s.length() + 1 ); cutdrag->setEncodedData( a ); -- cgit v1.2.1