author | ar <ar> | 2004-05-21 20:54:44 (UTC) |
---|---|---|
committer | ar <ar> | 2004-05-21 20:54:44 (UTC) |
commit | 37294c41a902eab36427372bdda31b4462fd73ca (patch) (unidiff) | |
tree | e86f2a473ac0854b451577871603a2d4f94f8f45 | |
parent | d0a66ef7432056016ed637597ca24e85e7bc2503 (diff) | |
download | opie-37294c41a902eab36427372bdda31b4462fd73ca.zip opie-37294c41a902eab36427372bdda31b4462fd73ca.tar.gz opie-37294c41a902eab36427372bdda31b4462fd73ca.tar.bz2 |
- convert qDebug to odebug
-rw-r--r-- | noncore/styles/theme/ogfxeffect.cpp | 16 | ||||
-rw-r--r-- | noncore/styles/theme/othemebase.cpp | 31 |
2 files changed, 28 insertions, 19 deletions
diff --git a/noncore/styles/theme/ogfxeffect.cpp b/noncore/styles/theme/ogfxeffect.cpp index 90b45fe..ab63c98 100644 --- a/noncore/styles/theme/ogfxeffect.cpp +++ b/noncore/styles/theme/ogfxeffect.cpp | |||
@@ -9,9 +9,13 @@ | |||
9 | 9 | ||
10 | #include <qimage.h> | 10 | #include "ogfxeffect.h" |
11 | #include <qpainter.h> | ||
12 | 11 | ||
12 | /* OPIE */ | ||
13 | #include <opie2/odebug.h> | ||
13 | #include <qpe/qmath.h> | 14 | #include <qpe/qmath.h> |
14 | 15 | ||
15 | #include "ogfxeffect.h" | 16 | /* QT */ |
17 | #include <qimage.h> | ||
18 | #include <qpainter.h> | ||
16 | 19 | ||
20 | /* STD */ | ||
17 | #include <cstdlib> | 21 | #include <cstdlib> |
@@ -45,3 +49,3 @@ QImage OGfxEffect::gradient(const QSize &size, const QColor &ca, | |||
45 | if (size.width() == 0 || size.height() == 0) { | 49 | if (size.width() == 0 || size.height() == 0) { |
46 | qDebug ( "WARNING: OGfxEffect::gradient: invalid image" ); | 50 | odebug << "WARNING: OGfxEffect::gradient: invalid image" << oendl; |
47 | return image; | 51 | return image; |
@@ -301,3 +305,3 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity, | |||
301 | if (image.width() == 0 || image.height() == 0) { | 305 | if (image.width() == 0 || image.height() == 0) { |
302 | qDebug ( "Invalid image\n" ); | 306 | odebug << "Invalid image" << oendl; |
303 | return image; | 307 | return image; |
@@ -487,3 +491,3 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity, | |||
487 | else | 491 | else |
488 | qDebug ( "not implemented\n" ); | 492 | odebug << "not implemented" << oendl; |
489 | 493 | ||
diff --git a/noncore/styles/theme/othemebase.cpp b/noncore/styles/theme/othemebase.cpp index 7ce4e5a..d2226e6 100644 --- a/noncore/styles/theme/othemebase.cpp +++ b/noncore/styles/theme/othemebase.cpp | |||
@@ -180,3 +180,3 @@ void OThemeBase::generateBorderPix( int i ) | |||
180 | else | 180 | else |
181 | qDebug ( "OThemeBase: Tried making border from empty pixmap" ); | 181 | odebug << "OThemeBase: Tried making border from empty pixmap" << oendl; |
182 | } | 182 | } |
@@ -375,3 +375,3 @@ QImage* OThemeBase::loadImage( QString &name ) | |||
375 | return ( image ); | 375 | return ( image ); |
376 | qDebug ( "OThemeBase: Unable to load image %s\n", name.ascii ( ) ); | 376 | odebug << "OThemeBase: Unable to load image " << name.ascii ( ) << oendl; |
377 | delete image; | 377 | delete image; |
@@ -387,3 +387,3 @@ OThemePixmap* OThemeBase::loadPixmap( QString &name ) | |||
387 | return pixmap; | 387 | return pixmap; |
388 | qDebug ( "OThemeBase: Unable to load pixmap %s\n", name.ascii() ); | 388 | odebug << "OThemeBase: Unable to load pixmap " << name.ascii() << oendl; |
389 | delete pixmap; | 389 | delete pixmap; |
@@ -425,3 +425,3 @@ OThemePixmap* OThemeBase::scale( int w, int h, WidgetType widget ) | |||
425 | else | 425 | else |
426 | qDebug ( "We would have inserted a null pixmap!\n" ); | 426 | odebug << "We would have inserted a null pixmap!" << oendl; |
427 | pixmaps[ widget ] = cachePix; | 427 | pixmaps[ widget ] = cachePix; |
@@ -447,3 +447,3 @@ OThemePixmap* OThemeBase::scale( int w, int h, WidgetType widget ) | |||
447 | else | 447 | else |
448 | qDebug ( "We would have inserted a null pixmap!\n" ); | 448 | odebug << "We would have inserted a null pixmap!" << oendl; |
449 | pixmaps[ widget ] = cachePix; | 449 | pixmaps[ widget ] = cachePix; |
@@ -592,3 +592,3 @@ OThemePixmap* OThemeBase::scaleBorder( int w, int h, WidgetType widget ) | |||
592 | if ( !pixmap->mask() ) | 592 | if ( !pixmap->mask() ) |
593 | qDebug ( "No mask for border pixmap!\n" ); | 593 | odebug << "No mask for border pixmap!" << oendl; |
594 | } | 594 | } |
@@ -807,3 +807,4 @@ void OThemeBase::applyMiscResourceGroup( Config *config ) | |||
807 | if ( tmpStr != "Opposite" && !tmpStr.isEmpty() ) | 807 | if ( tmpStr != "Opposite" && !tmpStr.isEmpty() ) |
808 | qDebug ( "OThemeBase: Unrecognized sb button option %s, using Opposite.\n", tmpStr.ascii() ); | 808 | odebug << "OThemeBase: Unrecognized sb button option " << tmpStr.ascii() |
809 | << ", using Opposite." << oendl; | ||
809 | sbPlacement = SBOpposite; | 810 | sbPlacement = SBOpposite; |
@@ -817,3 +818,4 @@ void OThemeBase::applyMiscResourceGroup( Config *config ) | |||
817 | if ( tmpStr != "Normal" && !tmpStr.isEmpty() ) | 818 | if ( tmpStr != "Normal" && !tmpStr.isEmpty() ) |
818 | qDebug ( "OThemeBase: Unrecognized arrow option %s, using Normal.\n", tmpStr.ascii() ); | 819 | odebug << "OThemeBase: Unrecognized arrow option " << tmpStr.ascii() |
820 | << ", using Normal." << oendl; | ||
819 | arrowStyle = LargeArrow; | 821 | arrowStyle = LargeArrow; |
@@ -868,3 +870,4 @@ void OThemeBase::applyResourceGroup( Config *config, int i, QString *copyfrom, Q | |||
868 | if ( tmpStr != "Tile" && !tmpStr.isEmpty() ) | 870 | if ( tmpStr != "Tile" && !tmpStr.isEmpty() ) |
869 | qDebug ( "OThemeBase: Unrecognized scale option %s, using Tile.\n", tmpStr.ascii() ); | 871 | odebug << "OThemeBase: Unrecognized scale option " << tmpStr.ascii() |
872 | << ", using Tile." << oendl; | ||
870 | scaleHints [ i ] = TileScale; | 873 | scaleHints [ i ] = TileScale; |
@@ -891,3 +894,4 @@ void OThemeBase::applyResourceGroup( Config *config, int i, QString *copyfrom, Q | |||
891 | if ( tmpStr != "None" && !tmpStr.isEmpty() ) | 894 | if ( tmpStr != "None" && !tmpStr.isEmpty() ) |
892 | qDebug ( "OThemeBase: Unrecognized gradient option %s, using None.\n", tmpStr.ascii() ); | 895 | odebug << "OThemeBase: Unrecognized gradient option " << tmpStr.ascii() |
896 | << ", using None." << oendl; | ||
893 | gradients [ i ] = GrNone; | 897 | gradients [ i ] = GrNone; |
@@ -947,4 +951,5 @@ void OThemeBase::applyResourceGroup( Config *config, int i, QString *copyfrom, Q | |||
947 | if ( pbWidth[ i ] == 0 ) { | 951 | if ( pbWidth[ i ] == 0 ) { |
948 | qDebug ( "OThemeBase: No border width specified for pixmapped border widget %s\n", widgetEntries[ i ] ); | 952 | odebug << "OThemeBase: No border width specified for pixmapped border widget " |
949 | qDebug ( "OThemeBase: Using default of 2.\n" ); | 953 | << widgetEntries[ i ] << oendl; |
954 | odebug << "OThemeBase: Using default of 2." << oendl; | ||
950 | pbWidth[ i ] = 2; | 955 | pbWidth[ i ] = 2; |
@@ -1005,3 +1010,3 @@ void OThemeBase::readResourceGroup( int i, QString *copyfrom, QString *pixnames, | |||
1005 | else | 1010 | else |
1006 | qDebug ( "OThemeBase: Unable to identify source widget for %s\n", widgetEntries[ i ] ); | 1011 | odebug << "OThemeBase: Unable to identify source widget for " << widgetEntries[ i ] << oendl; |
1007 | return ; | 1012 | return ; |