summaryrefslogtreecommitdiffstats
path: root/ksplashml/themeengine
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /ksplashml/themeengine
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksplashml/themeengine')
-rw-r--r--ksplashml/themeengine/default/themelegacy.cpp2
-rw-r--r--ksplashml/themeengine/objkstheme.cpp2
-rw-r--r--ksplashml/themeengine/redmond/previewredmond.cpp4
-rw-r--r--ksplashml/themeengine/redmond/previewredmond.h2
-rw-r--r--ksplashml/themeengine/redmond/themeredmond.cpp6
-rw-r--r--ksplashml/themeengine/redmond/themeredmond.h2
-rw-r--r--ksplashml/themeengine/standard/Preview.pngbin290009 -> 290011 bytes
-rw-r--r--ksplashml/themeengine/standard/themestandard.cpp24
-rw-r--r--ksplashml/themeengine/standard/themestandard.h8
-rw-r--r--ksplashml/themeengine/standard/wndicon.cpp22
-rw-r--r--ksplashml/themeengine/standard/wndicon.h6
-rw-r--r--ksplashml/themeengine/standard/wndstatus.cpp12
-rw-r--r--ksplashml/themeengine/standard/wndstatus.h6
-rw-r--r--ksplashml/themeengine/themeengine.cpp2
14 files changed, 49 insertions, 49 deletions
diff --git a/ksplashml/themeengine/default/themelegacy.cpp b/ksplashml/themeengine/default/themelegacy.cpp
index 77274da99..f3f1707ab 100644
--- a/ksplashml/themeengine/default/themelegacy.cpp
+++ b/ksplashml/themeengine/default/themelegacy.cpp
@@ -164,7 +164,7 @@ void ThemeDefault::_initUi()
mProgressBar->setPaletteBackgroundPixmap( blimage );
bottom_label->setFixedWidth( QMAX(blimage.width(),tlimage.width()) );
- bottom_label->setFixedHeight( mLabel->sizeHint().height()+4 );
+ bottom_label->setFixedHeight( mLabel->tqsizeHint().height()+4 );
// 3 pixels of whitespace between the label and the progressbar.
mLabel->resize( bottom_label->width(), bottom_label->height() );
diff --git a/ksplashml/themeengine/objkstheme.cpp b/ksplashml/themeengine/objkstheme.cpp
index 9aa6d2b26..dfcec5c4d 100644
--- a/ksplashml/themeengine/objkstheme.cpp
+++ b/ksplashml/themeengine/objkstheme.cpp
@@ -41,7 +41,7 @@ ObjKsTheme::ObjKsTheme( const TQString& theme )
if (desktop->isVirtualDesktop() && mXineramaScreen != -2)
{
TQRect rect = desktop->screenGeometry( mXineramaScreen );
- if (!rect.contains(TQCursor::pos()))
+ if (!rect.tqcontains(TQCursor::pos()))
TQCursor::setPos(rect.center());
}
diff --git a/ksplashml/themeengine/redmond/previewredmond.cpp b/ksplashml/themeengine/redmond/previewredmond.cpp
index 3bfb80203..1fcf0161f 100644
--- a/ksplashml/themeengine/redmond/previewredmond.cpp
+++ b/ksplashml/themeengine/redmond/previewredmond.cpp
@@ -43,7 +43,7 @@ PreviewRedmond::PreviewRedmond( TQWidget* parent )
m_showWelcomeString (true),
m_showUserString (true),
m_showUserIcon (true),
- m_showStatusString (true)
+ m_showtqStatusString (true)
{
_updateCache();
}
@@ -99,7 +99,7 @@ void PreviewRedmond::_updateCache()
if( m_showUserIcon )
p.drawPixmap( rect().width()/2 + 10, rect().height()/2, m_icon );
- if( m_showStatusString )
+ if( m_showtqStatusString )
{
TQPoint statusTextPos( rect().width()/2 + m_icon.width() + 20,
rect().height()/2 + (int)(p.fontMetrics().height()*0.85) + 15 );
diff --git a/ksplashml/themeengine/redmond/previewredmond.h b/ksplashml/themeengine/redmond/previewredmond.h
index 69bef6b43..253da329a 100644
--- a/ksplashml/themeengine/redmond/previewredmond.h
+++ b/ksplashml/themeengine/redmond/previewredmond.h
@@ -98,7 +98,7 @@ protected:
TQColor m_welcomeColor, m_welcomeShadowColor, m_userColor, m_statusColor;
TQPixmap m_icon;
- bool m_showWelcomeString, m_showUserString, m_showUserIcon, m_showStatusString;
+ bool m_showWelcomeString, m_showUserString, m_showUserIcon, m_showtqStatusString;
};
#endif
diff --git a/ksplashml/themeengine/redmond/themeredmond.cpp b/ksplashml/themeengine/redmond/themeredmond.cpp
index 5c7118441..175863f74 100644
--- a/ksplashml/themeengine/redmond/themeredmond.cpp
+++ b/ksplashml/themeengine/redmond/themeredmond.cpp
@@ -199,11 +199,11 @@ void ThemeRedmond::_initUi()
kdmconfig->setGroup("X-*-Greeter");
TQString userPicsDir = kdmconfig->readEntry( "FaceDir", KGlobal::dirs()->resourceDirs("data").last() + "kdm/faces" ) + '/';
TQString fs = kdmconfig->readEntry( "FaceSource" );
- if (fs == TQString::fromLatin1("UserOnly"))
+ if (fs == TQString::tqfromLatin1("UserOnly"))
faceSource = fUserOnly;
- else if (fs == TQString::fromLatin1("PreferUser"))
+ else if (fs == TQString::tqfromLatin1("PreferUser"))
faceSource = fUserFirst;
- else if (fs == TQString::fromLatin1("PreferAdmin"))
+ else if (fs == TQString::tqfromLatin1("PreferAdmin"))
faceSource = fAdminFirst;
else
faceSource = fAdminOnly; // Admin Only
diff --git a/ksplashml/themeengine/redmond/themeredmond.h b/ksplashml/themeengine/redmond/themeredmond.h
index 6f8cc1550..3ae82031a 100644
--- a/ksplashml/themeengine/redmond/themeredmond.h
+++ b/ksplashml/themeengine/redmond/themeredmond.h
@@ -57,7 +57,7 @@ public slots:
if( mText != s )
{
mText = s;
- repaint( false );
+ tqrepaint( false );
}
};
diff --git a/ksplashml/themeengine/standard/Preview.png b/ksplashml/themeengine/standard/Preview.png
index 58603e1e6..da08b938e 100644
--- a/ksplashml/themeengine/standard/Preview.png
+++ b/ksplashml/themeengine/standard/Preview.png
Binary files differ
diff --git a/ksplashml/themeengine/standard/themestandard.cpp b/ksplashml/themeengine/standard/themestandard.cpp
index c7e9220e2..0c72b7222 100644
--- a/ksplashml/themeengine/standard/themestandard.cpp
+++ b/ksplashml/themeengine/standard/themestandard.cpp
@@ -81,7 +81,7 @@ void ThemeStandard::_initUi()
move( rect.x() + (rect.width() - size().width())/2,
rect.y() + (rect.height() - size().height())/2 );
- mStatus = new WndStatus( TQPalette(), mTheme->xineramaScreen(), mSbAtTop, mSbPbVisible, mSbFont, mSbFg, mSbBg, mSbIcon );
+ mtqStatus = new WndtqStatus( TQPalette(), mTheme->xineramaScreen(), mSbAtTop, mSbPbVisible, mSbFont, mSbFg, mSbBg, mSbIcon );
}
void ThemeStandard::showEvent( TQShowEvent * )
@@ -91,8 +91,8 @@ void ThemeStandard::showEvent( TQShowEvent * )
if( mSbVisible )
{
- mStatus->show();
- mStatusBarHeight = mStatus->height();
+ mtqStatus->show();
+ mStatusBarHeight = mtqStatus->height();
}
else
{
@@ -143,22 +143,22 @@ void ThemeStandard::_readSettings()
// return;
cfg->setGroup( TQString("KSplash Theme: %1").arg(mTheme->theme()) );
- TQString sbpos = cfg->readEntry( "Statusbar Position", "Bottom" ).upper();
+ TQString sbpos = cfg->readEntry( "tqStatusbar Position", "Bottom" ).upper();
mSbAtTop = ( sbpos == "TOP" );
- mSbVisible = cfg->readBoolEntry( "Statusbar Visible", true);
+ mSbVisible = cfg->readBoolEntry( "tqStatusbar Visible", true);
mSbPbVisible = cfg->readBoolEntry( "Progress Visible", true);
- mSbFontName = cfg->readEntry( "Statusbar Font", "Sans Serif" );
- mSbFontSz = cfg->readNumEntry( "Statusbar Font Size", 16 );
- mSbFontBold = cfg->readBoolEntry( "Statusbar Font Bold", true );
- mSbFontItalic = cfg->readBoolEntry( "Statusbar Font Italic", false );
+ mSbFontName = cfg->readEntry( "tqStatusbar Font", "Sans Serif" );
+ mSbFontSz = cfg->readNumEntry( "tqStatusbar Font Size", 16 );
+ mSbFontBold = cfg->readBoolEntry( "tqStatusbar Font Bold", true );
+ mSbFontItalic = cfg->readBoolEntry( "tqStatusbar Font Italic", false );
mSbFont = TQFont( mSbFontName, mSbFontSz, ( mSbFontBold? TQFont::Bold : TQFont::Normal ) );
if( mSbFontItalic )
mSbFont.setItalic( true );
- mSbFg = cfg->readColorEntry( "Statusbar Foreground", &Qt::white );
- mSbBg = cfg->readColorEntry( "Statusbar Background", &Qt::black );
- mSbIcon = cfg->readEntry( "Statusbar Icon", "run" );
+ mSbFg = cfg->readColorEntry( "tqStatusbar Foreground", &Qt::white );
+ mSbBg = cfg->readColorEntry( "tqStatusbar Background", &Qt::black );
+ mSbIcon = cfg->readEntry( "tqStatusbar Icon", "run" );
mIconsVisible = cfg->readBoolEntry( "Icons Visible", true);
mIconsJumping = cfg->readBoolEntry( "Icons Jumping", true);
mIconPos = (WndIcon::Position)cfg->readNumEntry( "Icon Position", 0 );
diff --git a/ksplashml/themeengine/standard/themestandard.h b/ksplashml/themeengine/standard/themestandard.h
index 2e5d1aeb0..7bdcc4c1e 100644
--- a/ksplashml/themeengine/standard/themestandard.h
+++ b/ksplashml/themeengine/standard/themestandard.h
@@ -50,15 +50,15 @@ public:
public slots:
inline void slotUpdateProgress( int i )
{
- if( mStatus ) mStatus->slotUpdateProgress( i );
+ if( mtqStatus ) mtqStatus->slotUpdateProgress( i );
}
inline void slotUpdateSteps( int i )
{
- if( mStatus ) mStatus->slotUpdateSteps( i );
+ if( mtqStatus ) mtqStatus->slotUpdateSteps( i );
}
inline void slotSetText( const TQString& s )
{
- if( mStatus ) mStatus->slotSetMessage( s );
+ if( mtqStatus ) mtqStatus->slotSetMessage( s );
}
void slotSetPixmap( const TQString& );
@@ -67,7 +67,7 @@ private:
void _readSettings();
void _initUi();
- WndStatus *mStatus;
+ WndtqStatus *mtqStatus;
WndIcon *mIcon, *mPrevIcon;
int mIconCount;
int mStatusBarHeight;
diff --git a/ksplashml/themeengine/standard/wndicon.cpp b/ksplashml/themeengine/standard/wndicon.cpp
index ce153e461..70dda6408 100644
--- a/ksplashml/themeengine/standard/wndicon.cpp
+++ b/ksplashml/themeengine/standard/wndicon.cpp
@@ -43,9 +43,9 @@ WndIcon::WndIcon(
bool statusAtTop,
bool iconsJumping )
:TQHBox( 0, "wndSplash", WStyle_Customize|WX11BypassWM ),
- mStatusText(text), mIconPos(icon_position), mXineramaScreen( xineramaScreen ), mPosX(0), mPosY(0), mGroundX(0), mGroundY(0),
+ mtqStatusText(text), mIconPos(icon_position), mXineramaScreen( xineramaScreen ), mPosX(0), mPosY(0), mGroundX(0), mGroundY(0),
mVelocity(8.0), mInitialVelocity(8.0), mGravity(0.8),
- mIconNum(icon_num), mStatusHeight(status_height), mIconSize(icon_std_width), mStatusAtTop(statusAtTop),
+ mIconNum(icon_num), mtqStatusHeight(status_height), mIconSize(icon_std_width), mtqStatusAtTop(statusAtTop),
mStopJump(false), mIconJumping(iconsJumping)
{
setFrameStyle( TQFrame::NoFrame );
@@ -53,10 +53,10 @@ WndIcon::WndIcon(
TQLabel *w = new TQLabel( this );
w->setFixedSize( pix.width(), pix.height() );
w->setPixmap( pix );
- if(pix.mask())
+ if(pix.tqmask())
{
- setMask(*pix.mask());
- w->setMask(*pix.mask());
+ setMask(*pix.tqmask());
+ w->setMask(*pix.tqmask());
}
resize( pix.width(), pix.height() );
@@ -77,14 +77,14 @@ WndIcon::WndIcon(
void WndIcon::show()
{
- emit setStatusText( mStatusText );
+ emit setStatusText( mtqStatusText );
TQHBox::show();
}
// Emit our EXTRA signal without becoming visible.
void WndIcon::noshow()
{
- emit setStatusText( mStatusText );
+ emit setStatusText( mtqStatusText );
}
/*
@@ -102,15 +102,15 @@ TQPoint WndIcon::determinePosition()
// KGlobalSettings::splashScreenDesktopGeometry(); cannot be used here.
DW = srect.width();
DH = srect.height();
- SBH = mStatusHeight;
+ SBH = mtqStatusHeight;
wid = mIconSize;
x = mIconNum;
y = 1;
- if(mStatusAtTop)
- topshift = mStatusHeight;
+ if(mtqStatusAtTop)
+ topshift = mtqStatusHeight;
else
- bottomshift = mStatusHeight;
+ bottomshift = mtqStatusHeight;
// Different starting positions require different positioning
// rules. The horizontal rules and the vertical rules can be
diff --git a/ksplashml/themeengine/standard/wndicon.h b/ksplashml/themeengine/standard/wndicon.h
index d488f85df..d6b907c95 100644
--- a/ksplashml/themeengine/standard/wndicon.h
+++ b/ksplashml/themeengine/standard/wndicon.h
@@ -58,13 +58,13 @@ private:
TQPoint determinePosition();
protected:
- TQString mStatusText;
+ TQString mtqStatusText;
Position mIconPos;
int mXineramaScreen;
int mPosX, mPosY, mGroundX, mGroundY;
float mVelocity, mInitialVelocity, mGravity;
- int mIconNum, mStatusHeight, mIconSize;
- bool mStatusAtTop, mStopJump, mIconJumping;
+ int mIconNum, mtqStatusHeight, mIconSize;
+ bool mtqStatusAtTop, mStopJump, mIconJumping;
};
#endif
diff --git a/ksplashml/themeengine/standard/wndstatus.cpp b/ksplashml/themeengine/standard/wndstatus.cpp
index 04685d9cf..f8bc3d964 100644
--- a/ksplashml/themeengine/standard/wndstatus.cpp
+++ b/ksplashml/themeengine/standard/wndstatus.cpp
@@ -27,17 +27,17 @@
#include "wndstatus.h"
#include "wndstatus.moc"
-// WndStatus::WndStatus(): Display a nifty status bar at
+// WndtqStatus::WndtqStatus(): Display a nifty status bar at
// the bottom of the screen, so the user always knows what's
// happening to his system.
-WndStatus::WndStatus( TQPalette /*pal*/,
+WndtqStatus::WndtqStatus( TQPalette /*pal*/,
int xineramaScreen,
bool atTop, bool pbVisible,
const TQFont& font,
const TQColor& fgc, const TQColor & bgc,
const TQString& icon
)
- :TQHBox( 0, "wndStatus", WStyle_Customize|WX11BypassWM )
+ :TQHBox( 0, "wndtqStatus", WStyle_Customize|WX11BypassWM )
{
setFrameStyle( TQFrame::NoFrame );
//setPalette( pal );
@@ -83,19 +83,19 @@ WndStatus::WndStatus( TQPalette /*pal*/,
m_progress->hide();
}
-void WndStatus::slotSetMessage( const TQString& msg )
+void WndtqStatus::slotSetMessage( const TQString& msg )
{
raise();
m_label->setText( msg );
}
-void WndStatus::slotUpdateProgress( int i )
+void WndtqStatus::slotUpdateProgress( int i )
{
raise();
m_progress->setProgress( i );
}
-void WndStatus::slotUpdateSteps( int i )
+void WndtqStatus::slotUpdateSteps( int i )
{
m_progress->setTotalSteps( i );
}
diff --git a/ksplashml/themeengine/standard/wndstatus.h b/ksplashml/themeengine/standard/wndstatus.h
index 63e253d1d..ddf0f5222 100644
--- a/ksplashml/themeengine/standard/wndstatus.h
+++ b/ksplashml/themeengine/standard/wndstatus.h
@@ -24,16 +24,16 @@ class TQLabel;
class KProgress;
/** @short Window displaying status and progress bar. */
-class WndStatus:
+class WndtqStatus:
public QHBox
{
Q_OBJECT
public:
- WndStatus( TQPalette,
+ WndtqStatus( TQPalette,
int, // Xinerama screen
bool, // At top?
bool, // Progress indicator visible?
- const TQFont&, // Status bar font
+ const TQFont&, // tqStatus bar font
const TQColor&, const TQColor &, // Foreground/Background color
const TQString& // Icon
);
diff --git a/ksplashml/themeengine/themeengine.cpp b/ksplashml/themeengine/themeengine.cpp
index 79e47bfe1..0f4ae2720 100644
--- a/ksplashml/themeengine/themeengine.cpp
+++ b/ksplashml/themeengine/themeengine.cpp
@@ -87,7 +87,7 @@ void ThemeEngine::addSplashWindow( TQWidget* w )
{
if( !w->isTopLevel())
return;
- if( d->mSplashWindows.contains( w->winId()))
+ if( d->mSplashWindows.tqcontains( w->winId()))
return;
if( !w->testWFlags( WX11BypassWM ))
{ // All toplevel widgets should be probably required to be WX11BypassWM