summaryrefslogtreecommitdiffstats
path: root/kicker/applets/trash
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/applets/trash')
-rw-r--r--kicker/applets/trash/trashapplet.cpp22
-rw-r--r--kicker/applets/trash/trashapplet.h8
-rw-r--r--kicker/applets/trash/trashbutton.cpp24
-rw-r--r--kicker/applets/trash/trashbutton.h18
4 files changed, 36 insertions, 36 deletions
diff --git a/kicker/applets/trash/trashapplet.cpp b/kicker/applets/trash/trashapplet.cpp
index c27c4e281..18962b2ea 100644
--- a/kicker/applets/trash/trashapplet.cpp
+++ b/kicker/applets/trash/trashapplet.cpp
@@ -31,7 +31,7 @@
extern "C"
{
- KDE_EXPORT KPanelApplet* init( QWidget *parent, const QString& configFile)
+ KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("trashapplet");
return new TrashApplet(configFile, KPanelApplet::Normal,
@@ -39,7 +39,7 @@ extern "C"
}
}
-TrashApplet::TrashApplet(const QString& configFile, Type type, int actions, QWidget *parent, const char *name)
+TrashApplet::TrashApplet(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name), mButton(0)
{
mButton = new TrashButton(this);
@@ -53,12 +53,12 @@ TrashApplet::TrashApplet(const QString& configFile, Type type, int actions, QWid
mpDirLister = new KDirLister();
- connect( mpDirLister, SIGNAL( clear() ),
- this, SLOT( slotClear() ) );
- connect( mpDirLister, SIGNAL( completed() ),
- this, SLOT( slotCompleted() ) );
- connect( mpDirLister, SIGNAL( deleteItem( KFileItem * ) ),
- this, SLOT( slotDeleteItem( KFileItem * ) ) );
+ connect( mpDirLister, TQT_SIGNAL( clear() ),
+ this, TQT_SLOT( slotClear() ) );
+ connect( mpDirLister, TQT_SIGNAL( completed() ),
+ this, TQT_SLOT( slotCompleted() ) );
+ connect( mpDirLister, TQT_SIGNAL( deleteItem( KFileItem * ) ),
+ this, TQT_SLOT( slotDeleteItem( KFileItem * ) ) );
mpDirLister->openURL("trash:/");
}
@@ -67,8 +67,8 @@ TrashApplet::~TrashApplet()
{
// disconnect the dir lister before quitting so as not to crash
// on kicker exit
- disconnect( mpDirLister, SIGNAL( clear() ),
- this, SLOT( slotClear() ) );
+ disconnect( mpDirLister, TQT_SIGNAL( clear() ),
+ this, TQT_SLOT( slotClear() ) );
delete mpDirLister;
KGlobal::locale()->removeCatalogue("trashapplet");
}
@@ -111,7 +111,7 @@ int TrashApplet::heightForWidth( int width ) const
return mButton->heightForWidth( width );
}
-void TrashApplet::resizeEvent( QResizeEvent * )
+void TrashApplet::resizeEvent( TQResizeEvent * )
{
if (!mButton)
{
diff --git a/kicker/applets/trash/trashapplet.h b/kicker/applets/trash/trashapplet.h
index bc9662af4..c77cf3755 100644
--- a/kicker/applets/trash/trashapplet.h
+++ b/kicker/applets/trash/trashapplet.h
@@ -25,7 +25,7 @@
#endif
#include <kpanelapplet.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kurl.h>
#include <kdirlister.h>
@@ -36,8 +36,8 @@ class TrashApplet : public KPanelApplet
Q_OBJECT
public:
- TrashApplet(const QString& configFile, Type t = Normal, int actions = 0,
- QWidget *parent = 0, const char *name = 0);
+ TrashApplet(const TQString& configFile, Type t = Normal, int actions = 0,
+ TQWidget *parent = 0, const char *name = 0);
~TrashApplet();
int widthForHeight(int height) const;
@@ -45,7 +45,7 @@ public:
void about();
protected:
- void resizeEvent(QResizeEvent *e);
+ void resizeEvent(TQResizeEvent *e);
void positionChange(Position p);
protected slots:
diff --git a/kicker/applets/trash/trashbutton.cpp b/kicker/applets/trash/trashbutton.cpp
index e6934a983..eb036c119 100644
--- a/kicker/applets/trash/trashbutton.cpp
+++ b/kicker/applets/trash/trashbutton.cpp
@@ -19,8 +19,8 @@
#include "trashbutton.h"
-#include <qpopupmenu.h>
-#include <qtooltip.h>
+#include <tqpopupmenu.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <krun.h>
@@ -31,7 +31,7 @@
#include <konq_operations.h>
#include <konq_popupmenu.h>
-TrashButton::TrashButton(QWidget *parent)
+TrashButton::TrashButton(TQWidget *parent)
: PanelPopupButton(parent), mActions(this, this),
mFileItem(KFileItem::Unknown, KFileItem::Unknown, "trash:/")
{
@@ -39,7 +39,7 @@ TrashButton::TrashButton(QWidget *parent)
KIO::NetAccess::stat("trash:/", entry, 0L);
mFileItem.assign(KFileItem(entry, "trash:/"));
- KAction *a = KStdAction::paste(this, SLOT(slotPaste()),
+ KAction *a = KStdAction::paste(this, TQT_SLOT(slotPaste()),
&mActions, "paste");
a->setShortcut(0);
@@ -53,9 +53,9 @@ TrashButton::TrashButton(QWidget *parent)
// Activate this code only if we find a way to have both an
// action and a popup menu for the same kicker button
- //connect(this, SIGNAL(clicked()), this, SLOT(slotClicked()));
+ //connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClicked()));
- setPopup(new QPopupMenu());
+ setPopup(new TQPopupMenu());
}
TrashButton::~TrashButton()
@@ -67,18 +67,18 @@ void TrashButton::setItemCount(int count)
if (count==0)
{
setIcon( "trashcan_empty" );
- QToolTip::add(this, i18n("Empty"));
+ TQToolTip::add(this, i18n("Empty"));
}
else
{
setIcon( "trashcan_full" );
- QToolTip::add(this, i18n("One item", "%n items", count));
+ TQToolTip::add(this, i18n("One item", "%n items", count));
}
}
void TrashButton::initPopup()
{
- QPopupMenu *old_popup = popup();
+ TQPopupMenu *old_popup = popup();
KFileItemList items;
items.append(&mFileItem);
@@ -117,17 +117,17 @@ void TrashButton::slotPaste()
KonqOperations::doPaste(this, mFileItem.url());
}
-void TrashButton::dragEnterEvent(QDragEnterEvent* e)
+void TrashButton::dragEnterEvent(TQDragEnterEvent* e)
{
e->accept(true);
}
-void TrashButton::dropEvent(QDropEvent *e)
+void TrashButton::dropEvent(TQDropEvent *e)
{
KonqOperations::doDrop(0L, mFileItem.url(), e, this);
}
-QString TrashButton::tileName()
+TQString TrashButton::tileName()
{
return mFileItem.name();
}
diff --git a/kicker/applets/trash/trashbutton.h b/kicker/applets/trash/trashbutton.h
index 7a5d8b59f..891e274c0 100644
--- a/kicker/applets/trash/trashbutton.h
+++ b/kicker/applets/trash/trashbutton.h
@@ -21,11 +21,11 @@
#define TRASHBUTTON_H
#include <panelbutton.h>
-#include <qpoint.h>
-#include <qstring.h>
-#include <qpixmap.h>
-#include <qcursor.h>
-#include <qtimer.h>
+#include <tqpoint.h>
+#include <tqstring.h>
+#include <tqpixmap.h>
+#include <tqcursor.h>
+#include <tqtimer.h>
#include <kfileitem.h>
#include <kpanelapplet.h>
#include <kactioncollection.h>
@@ -35,16 +35,16 @@ class TrashButton : public PanelPopupButton
Q_OBJECT
public:
- TrashButton(QWidget *parent);
+ TrashButton(TQWidget *parent);
~TrashButton();
void setItemCount(int count);
void setPanelPosition(KPanelApplet::Position position);
protected:
- QString tileName();
+ TQString tileName();
void initPopup();
- void dragEnterEvent(QDragEnterEvent *e);
- void dropEvent(QDropEvent *e);
+ void dragEnterEvent(TQDragEnterEvent *e);
+ void dropEvent(TQDropEvent *e);
protected slots:
// Activate this code only if we find a way to have both an