summaryrefslogtreecommitdiffstats
path: root/src/knemod/interfacetray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knemod/interfacetray.cpp')
-rw-r--r--src/knemod/interfacetray.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/knemod/interfacetray.cpp b/src/knemod/interfacetray.cpp
index c8ab03a..6b8812f 100644
--- a/src/knemod/interfacetray.cpp
+++ b/src/knemod/interfacetray.cpp
@@ -17,7 +17,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdebug.h>
#include <kglobal.h>
@@ -37,9 +37,9 @@ static const char description[] =
static const char version[] = "0.4.8";
-InterfaceTray::InterfaceTray( const QString& ifname,
- QWidget* parent, const char* name )
- : KSystemTray( parent, name )
+InterfaceTray::InterfaceTray( const TQString& ifname,
+ TQWidget* tqparent, const char* name )
+ : KSystemTray( tqparent, name )
{
actionCollection()->clear(); // remove the quit entry
@@ -49,42 +49,42 @@ InterfaceTray::InterfaceTray( const QString& ifname,
"KNemo - " + ifname );
popup->insertItem( SmallIcon( "knemo" ),
i18n( "&About KNemo" ), this,
- SLOT( showAboutDialog() ) );
+ TQT_SLOT( showAboutDialog() ) );
popup->insertItem( i18n( "&Report Bug..." ), this,
- SLOT( showReportBugDialog() ) );
+ TQT_SLOT( showReportBugDialog() ) );
popup->insertSeparator();
popup->insertItem( SmallIcon( "configure" ),
i18n( "&Configure KNemo..." ), this,
- SIGNAL( configSelected() ) );
+ TQT_SIGNAL( configSelected() ) );
popup->insertItem( SmallIcon( "ksysguard" ),
i18n( "&Open Traffic Plotter" ), this,
- SLOT( showGraph() ) );
+ TQT_SLOT( showGraph() ) );
}
InterfaceTray::~InterfaceTray()
{
}
-void InterfaceTray::resizeEvent ( QResizeEvent * )
+void InterfaceTray::resizeEvent ( TQResizeEvent * )
{
// Honor Free Desktop specifications that allow for arbitrary system tray icon sizes
emit iconResized();
}
-void InterfaceTray::mousePressEvent( QMouseEvent* e )
+void InterfaceTray::mousePressEvent( TQMouseEvent* e )
{
- if ( !rect().contains( e->pos() ) )
+ if ( !TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos() ) )
return;
switch( e->button() )
{
- case LeftButton:
+ case Qt::LeftButton:
emit leftClicked();
break;
- case MidButton:
+ case Qt::MidButton:
emit graphSelected( true );
break;
- case RightButton:
+ case Qt::RightButton:
KSystemTray::mousePressEvent( e );
break;
default: