diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /libkonq/kivdirectoryoverlay.cc | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkonq/kivdirectoryoverlay.cc')
-rw-r--r-- | libkonq/kivdirectoryoverlay.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libkonq/kivdirectoryoverlay.cc b/libkonq/kivdirectoryoverlay.cc index 5c9d14783..2b32129c2 100644 --- a/libkonq/kivdirectoryoverlay.cc +++ b/libkonq/kivdirectoryoverlay.cc @@ -17,11 +17,11 @@ Boston, MA 02110-1301, USA. */ -#include <qdict.h> -#include <qpixmap.h> -#include <qpainter.h> -#include <qbitmap.h> -#include <qimage.h> +#include <tqdict.h> +#include <tqpixmap.h> +#include <tqpainter.h> +#include <tqbitmap.h> +#include <tqimage.h> #include <kfileivi.h> #include <kfileitem.h> @@ -43,8 +43,8 @@ KIVDirectoryOverlay::KIVDirectoryOverlay(KFileIVI* directory) { m_lister = new KDirLister; m_lister->setAutoErrorHandlingEnabled(false, 0); - connect(m_lister, SIGNAL(completed()), SLOT(slotCompleted())); - connect(m_lister, SIGNAL(newItems( const KFileItemList& )), SLOT(slotNewItems( const KFileItemList& ))); + connect(m_lister, TQT_SIGNAL(completed()), TQT_SLOT(slotCompleted())); + connect(m_lister, TQT_SIGNAL(newItems( const KFileItemList& )), TQT_SLOT(slotNewItems( const KFileItemList& ))); m_lister->setShowingDotFiles(false); } m_directory = directory; @@ -60,7 +60,7 @@ KIVDirectoryOverlay::~KIVDirectoryOverlay() void KIVDirectoryOverlay::start() { if ( m_directory->item()->isReadable() ) { - m_popularIcons = new QDict<int>; + m_popularIcons = new TQDict<int>; m_popularIcons->setAutoDelete(true); m_lister->openURL(m_directory->item()->url()); } else { @@ -68,7 +68,7 @@ void KIVDirectoryOverlay::start() } } -void KIVDirectoryOverlay::timerEvent(QTimerEvent *) +void KIVDirectoryOverlay::timerEvent(TQTimerEvent *) { m_lister->stop(); } @@ -78,7 +78,7 @@ void KIVDirectoryOverlay::slotCompleted() if (!m_popularIcons) return; // Look through the histogram for the most popular mimetype - QDictIterator<int> currentIcon( (*m_popularIcons) ); + TQDictIterator<int> currentIcon( (*m_popularIcons) ); unsigned int best = 0; unsigned int total = 0; for ( ; currentIcon.current(); ++currentIcon ) { @@ -120,7 +120,7 @@ void KIVDirectoryOverlay::slotNewItems( const KFileItemList& items ) for ( ; (file = files.current()) != 0; ++files ) { if ( file -> isFile() ) { - QString iconName = file -> iconName(); + TQString iconName = file -> iconName(); if (!iconName) continue; int* iconCount = m_popularIcons -> find( file -> iconName() ); |