summaryrefslogtreecommitdiffstats
path: root/kget/droptarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kget/droptarget.cpp')
-rw-r--r--kget/droptarget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kget/droptarget.cpp b/kget/droptarget.cpp
index 44bb1ef1..7e8de183 100644
--- a/kget/droptarget.cpp
+++ b/kget/droptarget.cpp
@@ -26,18 +26,18 @@
#include <tqpainter.h>
-#include <kaction.h>
+#include <tdeaction.h>
#include <kapplication.h>
#include <tdeconfig.h>
#include <kiconloader.h>
#include <kglobalsettings.h>
-#include <kmainwindow.h>
+#include <tdemainwindow.h>
#include <twin.h>
#include <klocale.h>
-#include <kpopupmenu.h>
+#include <tdepopupmenu.h>
#include <kurldrag.h>
-#include "kmainwidget.h"
+#include "tdemainwidget.h"
#include <tqcursor.h>
#ifdef TQ_WS_X11
#include <X11/Xlib.h>
@@ -98,9 +98,9 @@ DropTarget::DropTarget(TDEMainWindow * mainWin):TQWidget()
popupMenu->insertSeparator();
popupMenu->setItemChecked(pop_sticky, b_sticky);
- kmain->m_paPreferences->plug(popupMenu);
+ tdemain->m_paPreferences->plug(popupMenu);
popupMenu->insertSeparator();
- kmain->m_paQuit->plug(popupMenu);
+ tdemain->m_paQuit->plug(popupMenu);
isdragging = false;
@@ -129,14 +129,14 @@ DropTarget::mousePressEvent(TQMouseEvent * e)
}
else if (e->button() == Qt::RightButton)
{
- popupMenu->setItemEnabled(pop_Min, kmain->isVisible());
- popupMenu->setItemEnabled(pop_Max, kmain->isHidden());
+ popupMenu->setItemEnabled(pop_Min, tdemain->isVisible());
+ popupMenu->setItemEnabled(pop_Max, tdemain->isHidden());
popupMenu->popup(TQCursor::pos());
}
else if (e->button() == Qt::MidButton)
{
- kmain->slotPasteTransfer();
+ tdemain->slotPasteTransfer();
}
}
@@ -163,11 +163,11 @@ void DropTarget::dropEvent(TQDropEvent * event)
if (KURLDrag::decode(event, list))
{
- kmain->addTransfers(list);
+ tdemain->addTransfers(list);
}
else if (TQTextDrag::decode(event, str))
{
- kmain->addTransfer(str);
+ tdemain->addTransfer(str);
}
}
@@ -193,10 +193,10 @@ void DropTarget::updateStickyState()
void DropTarget::toggleMinimizeRestore()
{
- if (kmain->isVisible())
- kmain->hide();
+ if (tdemain->isVisible())
+ tdemain->hide();
else
- kmain->show();
+ tdemain->show();
}
/** No descriptions */