Rename tqt3 color functions

pull/2/head
Timothy Pearson 12 years ago
parent 603d89d3a1
commit 2d9396b28f

@ -156,7 +156,7 @@ void KSMShutdownFeedback::slotPaintEffect()
uchar * end = m_grayImage.bits() + m_grayImage.numBytes(); uchar * end = m_grayImage.bits() + m_grayImage.numBytes();
while ( r != end ) { while ( r != end ) {
*reinterpret_cast<TQRgb*>(r) = qRgba(0, 0, 0, 128); *reinterpret_cast<TQRgb*>(r) = tqRgba(0, 0, 0, 128);
r += 4; 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 ); short int opac = static_cast<short int>( 128 - cosf( M_PI*(y-y1)/heightUnit )*128.0f );
for( short int x = 0; x < imgWidth; ++x ) 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; rs += 4; rd += 4;
} }
} }
@ -403,7 +403,7 @@ void KSMShutdownFeedback::slotPaintEffect()
uchar * end = m_grayImage.bits() + m_grayImage.numBytes(); uchar * end = m_grayImage.bits() + m_grayImage.numBytes();
while ( r != end ) { while ( r != end ) {
*reinterpret_cast<TQRgb*>(r) = qRgba(0, 0, 0, 107); *reinterpret_cast<TQRgb*>(r) = tqRgba(0, 0, 0, 107);
r += 4; r += 4;
} }
@ -480,7 +480,7 @@ void KSMShutdownFeedback::slotPaintEffect()
// linear gradients look bad, so use cos-function // linear gradients look bad, so use cos-function
for( short int x = 0; x < imgWidth; ++x ) 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; rs += 4; rd += 4;
} }
} }

@ -21,7 +21,7 @@
+ return QKDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name, + return QKDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name,
+ caption, selectedFilter, false ).first(); + caption, selectedFilter, false ).first();
+#elif defined(Q_WS_WIN) +#elif defined(Q_WS_WIN)
if ( qt_use_native_dialogs && qApp->style().styleHint( QStyle::SH_GUIStyle ) == WindowsStyle ) if ( qt_use_native_dialogs && tqApp->style().styleHint( QStyle::SH_GUIStyle ) == WindowsStyle )
return winGetOpenFileName( initialSelection, filter, workingDirectory, return winGetOpenFileName( initialSelection, filter, workingDirectory,
parent, name, caption, selectedFilter ); parent, name, caption, selectedFilter );
@@ -3546,7 +3554,11 @@ QString QFileDialog::getSaveFileName( co @@ -3546,7 +3554,11 @@ QString QFileDialog::getSaveFileName( co
@ -34,7 +34,7 @@
+ return QKDEIntegration::getSaveFileName( initialSelection, filter, workingDirectory, + return QKDEIntegration::getSaveFileName( initialSelection, filter, workingDirectory,
+ parent, name, caption, selectedFilter ); + parent, name, caption, selectedFilter );
+#elif defined(Q_WS_WIN) +#elif defined(Q_WS_WIN)
if ( qt_use_native_dialogs && qApp->style().styleHint( QStyle::SH_GUIStyle ) == WindowsStyle ) if ( qt_use_native_dialogs && tqApp->style().styleHint( QStyle::SH_GUIStyle ) == WindowsStyle )
return winGetSaveFileName( initialSelection, filter, workingDirectory, return winGetSaveFileName( initialSelection, filter, workingDirectory,
parent, name, caption, selectedFilter ); parent, name, caption, selectedFilter );
@@ -4433,7 +4445,17 @@ QString QFileDialog::getExistingDirector @@ -4433,7 +4445,17 @@ QString QFileDialog::getExistingDirector
@ -65,7 +65,7 @@
+ if ( qt_use_native_dialogs && QKDEIntegration::enabled()) + if ( qt_use_native_dialogs && QKDEIntegration::enabled())
+ return QKDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter, true ); + return QKDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter, true );
+#elif defined(Q_WS_WIN) +#elif defined(Q_WS_WIN)
if ( qt_use_native_dialogs && qApp->style().styleHint( QStyle::SH_GUIStyle ) == WindowsStyle ) if ( qt_use_native_dialogs && tqApp->style().styleHint( QStyle::SH_GUIStyle ) == WindowsStyle )
return winGetOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter ); return winGetOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter );
#elif defined(Q_WS_MAC) #elif defined(Q_WS_MAC)
--- src/dialogs/qmessagebox.cpp.sav 2003-12-22 12:24:32.000000000 +0100 --- src/dialogs/qmessagebox.cpp.sav 2003-12-22 12:24:32.000000000 +0100

Loading…
Cancel
Save