author | zecke <zecke> | 2004-09-10 11:07:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-10 11:07:29 (UTC) |
commit | 0c2d61cebde30e1a6eea86beb5b28a3600de0f75 (patch) (side-by-side diff) | |
tree | 1b1e4b2fc09f92c08254a285d3a89d82b9174cb9 | |
parent | 00b7879d0d886b642b1f1102e3a811e67f928df7 (diff) | |
download | opie-0c2d61cebde30e1a6eea86beb5b28a3600de0f75.zip opie-0c2d61cebde30e1a6eea86beb5b28a3600de0f75.tar.gz opie-0c2d61cebde30e1a6eea86beb5b28a3600de0f75.tar.bz2 |
No unused parameters, added a newline at the end
-rw-r--r-- | libqtaux/qcolordialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libqtaux/qcolordialog.cpp b/libqtaux/qcolordialog.cpp index ccef0ad..830fef6 100644 --- a/libqtaux/qcolordialog.cpp +++ b/libqtaux/qcolordialog.cpp @@ -537,13 +537,13 @@ int QColorDialog::customCount() QRgb QColorDialog::customColor( int i ) { initRGB(); if ( i < 0 || i >= customCount() ) { #ifdef CHECK_RANGE qWarning( "QColorDialog::customColor() index %d out of range", i ); -#endif +#endif i = 0; } return cusrgb[i]; } /*! @@ -552,13 +552,13 @@ QRgb QColorDialog::customColor( int i ) void QColorDialog::setCustomColor( int i, QRgb c ) { initRGB(); if ( i < 0 || i >= customCount() ) { #ifdef CHECK_RANGE qWarning( "QColorDialog::customColor() index %d out of range", i ); -#endif +#endif return; } cusrgb[i] = c; } static inline void rgb2hsv( QRgb rgb, int&h, int&s, int&v ) @@ -1100,12 +1100,14 @@ void QColorShowLabel::mouseMoveEvent( QMouseEvent *e ) p.drawRect( 0, 0, pix.width(), pix.height() ); p.end(); drg->setPixmap( pix ); mousePressed = FALSE; drg->dragCopy(); } +#else + Q_UNUSED( e ) #endif } #ifndef QT_NO_DRAGANDDROP void QColorShowLabel::dragEnterEvent( QDragEnterEvent *e ) { @@ -1626,7 +1628,7 @@ void QColorDialog::setSelectedAlpha( int a ) int QColorDialog::selectedAlpha() const { return d->currentAlpha(); } -#include "qcolordialog.moc"
\ No newline at end of file +#include "qcolordialog.moc" |