diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /libkscan/dispgamma.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/dispgamma.cpp')
-rw-r--r-- | libkscan/dispgamma.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libkscan/dispgamma.cpp b/libkscan/dispgamma.cpp index 478096e9..a2815276 100644 --- a/libkscan/dispgamma.cpp +++ b/libkscan/dispgamma.cpp @@ -22,7 +22,7 @@ #include "dispgamma.h" -DispGamma::DispGamma( TQWidget *parent ) : TQWidget( parent ) +DispGamma::DispGamma( TQWidget *tqparent ) : TQWidget( tqparent ) { vals = 0; margin = 10; @@ -35,7 +35,7 @@ DispGamma::~DispGamma() void DispGamma::resizeEvent (TQResizeEvent* ) { - repaint(); + tqrepaint(); } void DispGamma::paintEvent( TQPaintEvent *ev ) @@ -49,11 +49,11 @@ void DispGamma::paintEvent( TQPaintEvent *ev ) p.setClipRect( ev->rect()); - p.setPen( colorGroup().highlight() ); - p.setBrush( colorGroup().base() ); + p.setPen( tqcolorGroup().highlight() ); + p.setBrush( tqcolorGroup().base() ); // Backgrond p.drawRect( 0,0, w, 256 ); - p.setPen( TQPen(colorGroup().midlight(), 1, DotLine)); + p.setPen( TQPen(tqcolorGroup().midlight(), 1, DotLine)); // horizontal Grid for( int l = 1; l < 5; l++ ) p.drawLine( 1, l*51, 255, l*51 ); @@ -63,7 +63,7 @@ void DispGamma::paintEvent( TQPaintEvent *ev ) p.drawLine( l*51, 2, l*51, 255 ); // draw gamma-Line - p.setPen( colorGroup().highlight() ); + p.setPen( tqcolorGroup().highlight() ); p.moveTo( 1, vals->at(1) ); for( int i = 2; i < w-1; i++ ) { @@ -73,7 +73,7 @@ void DispGamma::paintEvent( TQPaintEvent *ev ) } -TQSize DispGamma::sizeHint( void ) +TQSize DispGamma::tqsizeHint( void ) { return TQSize( 256 + 2*margin,256 + 2 * margin ); } |