summaryrefslogtreecommitdiffstats
path: root/libkscan/dispgamma.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /libkscan/dispgamma.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/dispgamma.cpp')
-rw-r--r--libkscan/dispgamma.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libkscan/dispgamma.cpp b/libkscan/dispgamma.cpp
index 2892d563..478096e9 100644
--- a/libkscan/dispgamma.cpp
+++ b/libkscan/dispgamma.cpp
@@ -17,12 +17,12 @@
Boston, MA 02110-1301, USA.
*/
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include "dispgamma.h"
-DispGamma::DispGamma( QWidget *parent ) : QWidget( parent )
+DispGamma::DispGamma( TQWidget *parent ) : TQWidget( parent )
{
vals = 0;
margin = 10;
@@ -33,14 +33,14 @@ DispGamma::~DispGamma()
}
-void DispGamma::resizeEvent (QResizeEvent* )
+void DispGamma::resizeEvent (TQResizeEvent* )
{
repaint();
}
-void DispGamma::paintEvent( QPaintEvent *ev )
+void DispGamma::paintEvent( TQPaintEvent *ev )
{
- QPainter p(this);
+ TQPainter p(this);
int w = vals->size() +1;
// Viewport auf margin setzen.
@@ -53,7 +53,7 @@ void DispGamma::paintEvent( QPaintEvent *ev )
p.setBrush( colorGroup().base() );
// Backgrond
p.drawRect( 0,0, w, 256 );
- p.setPen( QPen(colorGroup().midlight(), 1, DotLine));
+ p.setPen( TQPen(colorGroup().midlight(), 1, DotLine));
// horizontal Grid
for( int l = 1; l < 5; l++ )
p.drawLine( 1, l*51, 255, l*51 );
@@ -73,13 +73,13 @@ void DispGamma::paintEvent( QPaintEvent *ev )
}
-QSize DispGamma::sizeHint( void )
+TQSize DispGamma::sizeHint( void )
{
- return QSize( 256 + 2*margin,256 + 2 * margin );
+ return TQSize( 256 + 2*margin,256 + 2 * margin );
}
-QSizePolicy DispGamma::sizePolicy( void )
+TQSizePolicy DispGamma::sizePolicy( void )
{
- return QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
+ return TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding );
}
#include "dispgamma.moc"