summaryrefslogtreecommitdiffstats
path: root/kdeui/kwindowinfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kwindowinfo.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kwindowinfo.cpp')
-rw-r--r--kdeui/kwindowinfo.cpp58
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;