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 --- .../sidebar/trees/konq_sidebartreetoplevelitem.cpp | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp') diff --git a/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp b/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp index d71959c1e..4ce6fe445 100644 --- a/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp +++ b/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp @@ -25,14 +25,14 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include void KonqSidebarTreeTopLevelItem::init() { - QString desktopFile = m_path; + TQString desktopFile = m_path; if ( isTopLevelGroup() ) desktopFile += "/.directory"; KSimpleConfig cfg( desktopFile, true ); @@ -50,18 +50,18 @@ void KonqSidebarTreeTopLevelItem::setOpen( bool open ) void KonqSidebarTreeTopLevelItem::itemSelected() { kdDebug() << "KonqSidebarTreeTopLevelItem::itemSelected" << endl; - QMimeSource *data = QApplication::clipboard()->data(); + TQMimeSource *data = TQApplication::clipboard()->data(); bool paste = m_bTopLevelGroup && data->provides("text/uri-list"); tree()->enableActions( true, true, paste, true, true, true /*rename*/ ); } -bool KonqSidebarTreeTopLevelItem::acceptsDrops( const QStrList & formats ) +bool KonqSidebarTreeTopLevelItem::acceptsDrops( const TQStrList & formats ) { return formats.contains("text/uri-list") && ( m_bTopLevelGroup || !externalURL().isEmpty() ); } -void KonqSidebarTreeTopLevelItem::drop( QDropEvent * ev ) +void KonqSidebarTreeTopLevelItem::drop( TQDropEvent * ev ) { if ( m_bTopLevelGroup ) { @@ -85,7 +85,7 @@ void KonqSidebarTreeTopLevelItem::drop( QDropEvent * ev ) } } -QDragObject * KonqSidebarTreeTopLevelItem::dragObject( QWidget * parent, bool move ) +TQDragObject * KonqSidebarTreeTopLevelItem::dragObject( TQWidget * parent, bool move ) { // 100% duplicated from KonqDirTreeItem::dragObject :( KURL::List lst; @@ -95,10 +95,10 @@ QDragObject * KonqSidebarTreeTopLevelItem::dragObject( QWidget * parent, bool mo KonqDrag * drag = KonqDrag::newDrag( lst, false, parent ); - const QPixmap * pix = pixmap(0); + const TQPixmap * pix = pixmap(0); if (pix) { - QPoint hotspot( pix->width() / 2, pix->height() / 2 ); + TQPoint hotspot( pix->width() / 2, pix->height() / 2 ); drag->setPixmap( *pix, hotspot ); } drag->setMoveSelection( move ); @@ -121,7 +121,7 @@ void KonqSidebarTreeTopLevelItem::rightButtonPressed() // i.e. the filename instead of the Name field). There's the Rename item for that. // Only missing thing is changing the URL of a link. Hmm... - if ( !module() || !module()->handleTopLevelContextMenu( this, QCursor::pos() ) ) + if ( !module() || !module()->handleTopLevelContextMenu( this, TQCursor::pos() ) ) { tree()->showToplevelContextMenu(); } @@ -157,7 +157,7 @@ void KonqSidebarTreeTopLevelItem::paste() { // move or not move ? bool move = false; - QMimeSource *data = QApplication::clipboard()->data(); + TQMimeSource *data = TQApplication::clipboard()->data(); if ( data->provides( "application/x-kde-cutselection" ) ) { move = KonqDrag::decodeIsCutSelection( data ); kdDebug(1201) << "move (from clipboard data) = " << move << endl; @@ -177,7 +177,7 @@ void KonqSidebarTreeTopLevelItem::rename() tree()->rename( this, 0 ); } -void KonqSidebarTreeTopLevelItem::rename( const QString & name ) +void KonqSidebarTreeTopLevelItem::rename( const TQString & name ) { KURL url; url.setPath( m_path ); @@ -186,7 +186,7 @@ void KonqSidebarTreeTopLevelItem::rename( const QString & name ) // of the .directory or desktop file //KonqOperations::rename( tree(), url, name ); - QString desktopFile = m_path; + TQString desktopFile = m_path; if ( isTopLevelGroup() ) desktopFile += "/.directory"; KSimpleConfig cfg( desktopFile ); @@ -201,7 +201,7 @@ void KonqSidebarTreeTopLevelItem::rename( const QString & name ) allDirNotify.FilesChanged( lst ); } -QString KonqSidebarTreeTopLevelItem::toolTipText() const +TQString KonqSidebarTreeTopLevelItem::toolTipText() const { return m_comment; } -- cgit v1.2.1