From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksplashml/themeengine/standard/wndstatus.cpp | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'ksplashml/themeengine/standard/wndstatus.cpp') diff --git a/ksplashml/themeengine/standard/wndstatus.cpp b/ksplashml/themeengine/standard/wndstatus.cpp index 3b8582c89..04685d9cf 100644 --- a/ksplashml/themeengine/standard/wndstatus.cpp +++ b/ksplashml/themeengine/standard/wndstatus.cpp @@ -18,11 +18,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "wndstatus.h" #include "wndstatus.moc" @@ -30,38 +30,38 @@ // WndStatus::WndStatus(): Display a nifty status bar at // the bottom of the screen, so the user always knows what's // happening to his system. -WndStatus::WndStatus( QPalette /*pal*/, +WndStatus::WndStatus( TQPalette /*pal*/, int xineramaScreen, bool atTop, bool pbVisible, - const QFont& font, - const QColor& fgc, const QColor & bgc, - const QString& icon + const TQFont& font, + const TQColor& fgc, const TQColor & bgc, + const TQString& icon ) - :QHBox( 0, "wndStatus", WStyle_Customize|WX11BypassWM ) + :TQHBox( 0, "wndStatus", WStyle_Customize|WX11BypassWM ) { - setFrameStyle( QFrame::NoFrame ); + setFrameStyle( TQFrame::NoFrame ); //setPalette( pal ); setPaletteBackgroundColor( bgc ); setPaletteForegroundColor( fgc ); setCursor( KCursor::blankCursor() ); setSpacing( 5 ); - const QRect rect = kapp->desktop()->screenGeometry( xineramaScreen ); + const TQRect rect = kapp->desktop()->screenGeometry( xineramaScreen ); // KGlobalSettings::splashScreenDesktopGeometry(); cannot be used here. - QLabel *pix = new QLabel( this ); - QPixmap _icon( SmallIcon(icon.isNull()||icon.isEmpty()?QString("run"):icon) ); + TQLabel *pix = new TQLabel( this ); + TQPixmap _icon( SmallIcon(icon.isNull()||icon.isEmpty()?TQString("run"):icon) ); pix->setPixmap( _icon ); setStretchFactor(pix,0); pix->setFixedWidth(16); - m_label = new QLabel( this ); + m_label = new TQLabel( this ); m_label->setFont( font ); m_label->setPaletteBackgroundColor( bgc ); m_label->setPaletteForegroundColor( fgc ); - //QFontMetrics metrics( font ); + //TQFontMetrics metrics( font ); //m_label->setFixedHeight( metrics.height() ); - m_label->setText(QString("")); + m_label->setText(TQString("")); m_label->setFixedWidth(rect.width()-105-16-10); // What's this magic number? m_label->show(); @@ -69,7 +69,7 @@ WndStatus::WndStatus( QPalette /*pal*/, setStretchFactor(m_progress,0); m_progress->setFixedWidth(100); - QWidget *widg = new QWidget( this ); + TQWidget *widg = new TQWidget( this ); setStretchFactor(widg,50); setFixedSize( rect.width(), QMAX(m_progress->height(),m_label->height()) ); @@ -83,7 +83,7 @@ WndStatus::WndStatus( QPalette /*pal*/, m_progress->hide(); } -void WndStatus::slotSetMessage( const QString& msg ) +void WndStatus::slotSetMessage( const TQString& msg ) { raise(); m_label->setText( msg ); -- cgit v1.2.1