From 2d9396b28f89e7146f4abbf5cb3806e9eb7fd5b1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 27 Feb 2012 17:54:38 -0600 Subject: Rename tqt3 color functions --- ksmserver/shutdowndlg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ksmserver') 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(r) = qRgba(0, 0, 0, 128); + *reinterpret_cast(r) = tqRgba(0, 0, 0, 128); r += 4; } @@ -234,7 +234,7 @@ void KSMShutdownFeedback::slotPaintEffect() short int opac = static_cast( 128 - cosf( M_PI*(y-y1)/heightUnit )*128.0f ); for( short int x = 0; x < imgWidth; ++x ) { - *reinterpret_cast(rd) = qRgba(0, 0, 0, ((255.0-opac)/(255.0/127.0))); + *reinterpret_cast(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(r) = qRgba(0, 0, 0, 107); + *reinterpret_cast(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(rd) = qRgba(0, 0, 0, 107); + *reinterpret_cast(rd) = tqRgba(0, 0, 0, 107); rs += 4; rd += 4; } } -- cgit v1.2.1