summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdowndlg.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-27 17:54:38 -0600
committerTimothy Pearson <[email protected]>2012-02-27 17:54:38 -0600
commit2d9396b28f89e7146f4abbf5cb3806e9eb7fd5b1 (patch)
treeaa183234019de6ff78d59059168f9db8b4ffb75d /ksmserver/shutdowndlg.cpp
parent603d89d3a1dc6accf8a59382f7b374825ed04eb7 (diff)
downloadtdebase-2d9396b28f89e7146f4abbf5cb3806e9eb7fd5b1.tar.gz
tdebase-2d9396b28f89e7146f4abbf5cb3806e9eb7fd5b1.zip
Rename tqt3 color functions
Diffstat (limited to 'ksmserver/shutdowndlg.cpp')
-rw-r--r--ksmserver/shutdowndlg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ksmserver/shutdowndlg.cpp b/ksmserver/shutdowndlg.cpp
index f0f33a459..9a7e4ef04 100644
--- a/ksmserver/shutdowndlg.cpp
+++ b/ksmserver/shutdowndlg.cpp
@@ -156,7 +156,7 @@ void KSMShutdownFeedback::slotPaintEffect()
uchar * end = m_grayImage.bits() + m_grayImage.numBytes();
while ( r != end ) {
- *reinterpret_cast<TQRgb*>(r) = qRgba(0, 0, 0, 128);
+ *reinterpret_cast<TQRgb*>(r) = tqRgba(0, 0, 0, 128);
r += 4;
}
@@ -234,7 +234,7 @@ void KSMShutdownFeedback::slotPaintEffect()
short int opac = static_cast<short int>( 128 - cosf( M_PI*(y-y1)/heightUnit )*128.0f );
for( short int x = 0; x < imgWidth; ++x )
{
- *reinterpret_cast<TQRgb*>(rd) = qRgba(0, 0, 0, ((255.0-opac)/(255.0/127.0)));
+ *reinterpret_cast<TQRgb*>(rd) = tqRgba(0, 0, 0, ((255.0-opac)/(255.0/127.0)));
rs += 4; rd += 4;
}
}
@@ -403,7 +403,7 @@ void KSMShutdownFeedback::slotPaintEffect()
uchar * end = m_grayImage.bits() + m_grayImage.numBytes();
while ( r != end ) {
- *reinterpret_cast<TQRgb*>(r) = qRgba(0, 0, 0, 107);
+ *reinterpret_cast<TQRgb*>(r) = tqRgba(0, 0, 0, 107);
r += 4;
}
@@ -480,7 +480,7 @@ void KSMShutdownFeedback::slotPaintEffect()
// linear gradients look bad, so use cos-function
for( short int x = 0; x < imgWidth; ++x )
{
- *reinterpret_cast<TQRgb*>(rd) = qRgba(0, 0, 0, 107);
+ *reinterpret_cast<TQRgb*>(rd) = tqRgba(0, 0, 0, 107);
rs += 4; rd += 4;
}
}