summaryrefslogtreecommitdiffstats
path: root/src/itemeffectsmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/itemeffectsmanager.cpp
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/itemeffectsmanager.cpp')
-rw-r--r--src/itemeffectsmanager.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/itemeffectsmanager.cpp b/src/itemeffectsmanager.cpp
index 1d1d199..f402f20 100644
--- a/src/itemeffectsmanager.cpp
+++ b/src/itemeffectsmanager.cpp
@@ -21,9 +21,9 @@
#include "itemeffectsmanager.h"
#include <kiconeffect.h>
#include <kapplication.h>
-#include <qobjectlist.h>
+#include <tqobjectlist.h>
#include <kglobalsettings.h>
-#include <qclipboard.h>
+#include <tqclipboard.h>
#include <kurldrag.h>
#include <klocale.h>
@@ -32,7 +32,7 @@
ItemEffectsManager::ItemEffectsManager()
{
- m_pixmapCopy = new QPixmap();
+ m_pixmapCopy = new TQPixmap();
}
ItemEffectsManager::~ItemEffectsManager()
@@ -64,7 +64,7 @@ void ItemEffectsManager::activateItem(void* context)
resetActivatedItem();
- const QPixmap* itemPixmap = contextPixmap(context);
+ const TQPixmap* itemPixmap = contextPixmap(context);
if (itemPixmap != 0) {
// remember the pixmap and item to be able to
// restore it to the old state later
@@ -73,7 +73,7 @@ void ItemEffectsManager::activateItem(void* context)
// apply an icon effect to the item below the mouse pointer
KIconEffect iconEffect;
- QPixmap pixmap = iconEffect.apply(*itemPixmap,
+ TQPixmap pixmap = iconEffect.apply(*itemPixmap,
KIcon::Desktop,
KIcon::ActiveState);
setContextPixmap(context, pixmap);
@@ -96,14 +96,14 @@ void ItemEffectsManager::resetActivatedItem()
if (itemURL == m_highlightedURL) {
// the highlighted item has been found and is restored to the default state
KIconEffect iconEffect;
- QPixmap pixmap = iconEffect.apply(*m_pixmapCopy,
+ TQPixmap pixmap = iconEffect.apply(*m_pixmapCopy,
KIcon::Desktop,
KIcon::DefaultState);
// TODO: KFileIconView does not emit any signal when the preview has been finished.
// Hence check the size to prevent that a preview is hidden by restoring a
// non-preview pixmap.
- const QPixmap* highlightedPixmap = contextPixmap(context);
+ const TQPixmap* highlightedPixmap = contextPixmap(context);
const bool restore = (pixmap.width() == highlightedPixmap->width()) &&
(pixmap.height() == highlightedPixmap->height());
if (restore) {
@@ -126,7 +126,7 @@ void ItemEffectsManager::updateDisabledItems()
for (void* context = firstContext(); context != 0; context = nextContext(context)) {
const KFileItem* fileInfo = contextFileInfo(context);
const KURL& fileURL = fileInfo->url();
- QValueListIterator<DisabledItem> it = m_disabledItems.begin();
+ TQValueListIterator<DisabledItem> it = m_disabledItems.begin();
while (it != m_disabledItems.end()) {
if (fileURL == (*it).url) {
setContextPixmap(context, (*it).pixmap);
@@ -141,8 +141,8 @@ void ItemEffectsManager::updateDisabledItems()
return;
}
- QClipboard* clipboard = QApplication::clipboard();
- QMimeSource* data = clipboard->data();
+ TQClipboard* clipboard = TQApplication::tqclipboard();
+ TQMimeSource* data = clipboard->data();
if (!KURLDrag::canDecode(data)) {
return;
}
@@ -156,7 +156,7 @@ void ItemEffectsManager::updateDisabledItems()
const KURL& fileURL = fileInfo->url();
for(KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it) {
if (fileURL == (*it)) {
- const QPixmap* itemPixmap = contextPixmap(context);
+ const TQPixmap* itemPixmap = contextPixmap(context);
if (itemPixmap != 0) {
// remember old pixmap
DisabledItem disabledItem;
@@ -165,7 +165,7 @@ void ItemEffectsManager::updateDisabledItems()
m_disabledItems.append(disabledItem);
KIconEffect iconEffect;
- QPixmap disabledPixmap = iconEffect.apply(*itemPixmap,
+ TQPixmap disabledPixmap = iconEffect.apply(*itemPixmap,
KIcon::Desktop,
KIcon::DisabledState);
setContextPixmap(context, disabledPixmap);
@@ -176,13 +176,13 @@ void ItemEffectsManager::updateDisabledItems()
}
}
-QString ItemEffectsManager::statusBarText(KFileItem* fileInfo) const
+TQString ItemEffectsManager::statusBarText(KFileItem* fileInfo) const
{
if (fileInfo->isDir()) {
// KFileItem::getStatusBar() returns "MyDocuments/ Folder" as
// status bar text for a folder 'MyDocuments'. This is adjusted
// to "MyDocuments (Folder)" in Dolphin.
- return i18n("%1 (Folder)").arg(fileInfo->name());
+ return i18n("%1 (Folder)").tqarg(fileInfo->name());
}
return fileInfo->getStatusBarInfo();