diff options
Diffstat (limited to 'kdeui/kwindowinfo.cpp')
-rw-r--r-- | kdeui/kwindowinfo.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kdeui/kwindowinfo.cpp b/kdeui/kwindowinfo.cpp index 263deae84..362cc5b79 100644 --- a/kdeui/kwindowinfo.cpp +++ b/kdeui/kwindowinfo.cpp @@ -4,10 +4,10 @@ * email : rich@kde.org */ -#include <qobjectlist.h> -#include <qpixmap.h> -#include <qtimer.h> -#include <qtooltip.h> +#include <tqobjectlist.h> +#include <tqpixmap.h> +#include <tqtimer.h> +#include <tqtooltip.h> #include <ksystemtray.h> #include <kwin.h> @@ -17,8 +17,8 @@ static const int UNSPECIFIED_TIMEOUT = -1; static const int DEFAULT_MESSAGE_TIMEOUT = 3000; -KWindowInfo::KWindowInfo( QWidget *parent, const char *name ) - : QObject( parent, name ), win( parent ), autoDel( false ) +KWindowInfo::KWindowInfo( TQWidget *parent, const char *name ) + : TQObject( parent, name ), win( parent ), autoDel( false ) { } @@ -26,7 +26,7 @@ KWindowInfo::~KWindowInfo() { } -void KWindowInfo::showMessage( QWidget *window, const QString &text, int timeout ) +void KWindowInfo::showMessage( TQWidget *window, const TQString &text, int timeout ) { KWindowInfo *info = new KWindowInfo( window ); info->autoDel = true; @@ -35,29 +35,29 @@ void KWindowInfo::showMessage( QWidget *window, const QString &text, int timeout delete info; } -void KWindowInfo::showMessage( QWidget *window, const QString &text, const QPixmap &pix, int timeout ) +void KWindowInfo::showMessage( TQWidget *window, const TQString &text, const TQPixmap &pix, int timeout ) { KWindowInfo *info = new KWindowInfo( window ); info->autoDel = true; info->message( text, pix, timeout ); } -void KWindowInfo::message( const QString &text ) +void KWindowInfo::message( const TQString &text ) { - message( text, QPixmap(), UNSPECIFIED_TIMEOUT ); + message( text, TQPixmap(), UNSPECIFIED_TIMEOUT ); } -void KWindowInfo::message( const QString &text, const QPixmap &pix ) +void KWindowInfo::message( const TQString &text, const TQPixmap &pix ) { message( text, pix, UNSPECIFIED_TIMEOUT ); } -void KWindowInfo::message( const QString &text, int timeout ) +void KWindowInfo::message( const TQString &text, int timeout ) { - message( text, QPixmap(), timeout ); + message( text, TQPixmap(), timeout ); } -void KWindowInfo::message( const QString &text, const QPixmap &pix, int timeout ) +void KWindowInfo::message( const TQString &text, const TQPixmap &pix, int timeout ) { if ( timeout != 0 ) save(); @@ -67,10 +67,10 @@ void KWindowInfo::message( const QString &text, const QPixmap &pix, int timeout if ( timeout < 0 ) timeout = DEFAULT_MESSAGE_TIMEOUT; if ( timeout != 0 ) - QTimer::singleShot( timeout, this, SLOT( restore() ) ); + TQTimer::singleShot( timeout, this, TQT_SLOT( restore() ) ); } -void KWindowInfo::permanent( const QString &text ) +void KWindowInfo::permanent( const TQString &text ) { #ifdef Q_WS_X11 oldMiniIcon = KWin::icon( win->winId(), 16, 16, true ); @@ -82,12 +82,12 @@ void KWindowInfo::permanent( const QString &text ) permanent( text, oldIcon ); } -void KWindowInfo::permanent( const QString &text, const QPixmap &pix ) +void KWindowInfo::permanent( const TQString &text, const TQPixmap &pix ) { if ( !oldText.isNull() ) { - QObjectList *l = queryList( "QTimer" ); - QObjectListIt it( *l ); - QObject *obj; + TQObjectList *l = queryList( "TQTimer" ); + TQObjectListIt it( *l ); + TQObject *obj; while ( (obj = it.current()) != 0 ) { ++it; @@ -96,13 +96,13 @@ void KWindowInfo::permanent( const QString &text, const QPixmap &pix ) delete l; } - oldText = QString::null; + oldText = TQString::null; display( text, pix ); } -void KWindowInfo::display( const QString &text, const QPixmap &pix ) +void KWindowInfo::display( const TQString &text, const TQPixmap &pix ) { - QPixmap icon; + TQPixmap icon; if ( pix.isNull() ) icon.load( "bell.png" ); else @@ -111,7 +111,7 @@ void KWindowInfo::display( const QString &text, const QPixmap &pix ) if ( win->inherits( "KSystemTray" ) ) { KSystemTray *tray = static_cast<KSystemTray *>( win ); tray->setPixmap( icon ); - QToolTip::add( tray, text ); + TQToolTip::add( tray, text ); return; } @@ -130,7 +130,7 @@ void KWindowInfo::save() if ( win->inherits( "KSystemTray" ) ) { KSystemTray *tray = static_cast<KSystemTray *>( win ); oldIcon = *(tray->pixmap()); - oldText = QToolTip::textFor( tray ); + oldText = TQToolTip::textFor( tray ); return; } @@ -143,7 +143,7 @@ void KWindowInfo::save() #endif if ( oldIcon.isNull() ) { - const QPixmap *px = win->icon(); + const TQPixmap *px = win->icon(); if ( px ) oldIcon = *px; else @@ -156,8 +156,8 @@ void KWindowInfo::restore() if ( win->inherits( "KSystemTray" ) ) { KSystemTray *tray = static_cast<KSystemTray *>( win ); tray->setPixmap( oldIcon ); - QToolTip::add( tray, oldText ); - oldText = QString::null; + TQToolTip::add( tray, oldText ); + oldText = TQString::null; return; } @@ -166,7 +166,7 @@ void KWindowInfo::restore() KWin::setIcons( win->winId(), oldIcon, oldMiniIcon ); #endif win->setCaption( oldText ); - oldText = QString::null; + oldText = TQString::null; if ( autoDel ) delete this; |