summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpedecoration_qws.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/library/qpedecoration_qws.cpp b/library/qpedecoration_qws.cpp
index 222d906..c2eb751 100644
--- a/library/qpedecoration_qws.cpp
+++ b/library/qpedecoration_qws.cpp
@@ -42,3 +42,3 @@
42 42
43extern QRect qt_maxWindowRect; 43extern QRect qt_maxWindowRect;
44 44
@@ -109,3 +109,4 @@ static QImage scaleButton( const QImage &img, int height )
109{ 109{
110 if ( img.height() != height ) { 110 qWarning("Height %d %d", height, img.height() );
111 if ( img.height()!=0 && img.height() != height ) {
111 return img.smoothScale( img.width()*height/img.height(), height ); 112 return img.smoothScale( img.width()*height/img.height(), height );
@@ -649,3 +650,3 @@ QRegion QPEDecoration::region(const QWidget *widget, const QRect &rect, QWSDecor
649 } 650 }
650 break; 651 break;
651 case Left: 652 case Left:
@@ -658,3 +659,3 @@ QRegion QPEDecoration::region(const QWidget *widget, const QRect &rect, QWSDecor
658 } 659 }
659 break; 660 break;
660 case Right: 661 case Right:
@@ -667,3 +668,3 @@ QRegion QPEDecoration::region(const QWidget *widget, const QRect &rect, QWSDecor
667 } 668 }
668 break; 669 break;
669 case Bottom: 670 case Bottom:
@@ -687,3 +688,3 @@ QRegion QPEDecoration::region(const QWidget *widget, const QRect &rect, QWSDecor
687 } 688 }
688 break; 689 break;
689 case TopRight: 690 case TopRight:
@@ -705,3 +706,3 @@ QRegion QPEDecoration::region(const QWidget *widget, const QRect &rect, QWSDecor
705 } 706 }
706 break; 707 break;
707 case BottomRight: 708 case BottomRight:
@@ -824,7 +825,7 @@ void QPEDecoration::maximize( QWidget *widget )
824{ 825{
825#ifdef QPE_DONT_SHOW_TITLEBAR 826#ifdef QPE_DONT_SHOW_TITLEBAR
826 if ( !widget->inherits( "QDialog" ) ) { 827 if ( !widget->inherits( "QDialog" ) ) {
827 widget->setGeometry( qt_maxWindowRect ); 828 widget->setGeometry( qt_maxWindowRect );
828 } else 829 } else
829 #endif 830#endif
830 { 831 {
@@ -855,3 +856,3 @@ void QPEDecoration::minimize( QWidget *widget )
855 d->acceptIt(); 856 d->acceptIt();
856 } 857 }
857#endif 858#endif