summaryrefslogtreecommitdiffstats
path: root/libkscan/kscanslider.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /libkscan/kscanslider.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-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/kscanslider.cpp')
-rw-r--r--libkscan/kscanslider.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/libkscan/kscanslider.cpp b/libkscan/kscanslider.cpp
index e79634bd..4e04f095 100644
--- a/libkscan/kscanslider.cpp
+++ b/libkscan/kscanslider.cpp
@@ -31,10 +31,10 @@
#include <kdebug.h>
#include "kscanslider.h"
-KScanSlider::KScanSlider( TQWidget *parent, const TQString& text,
+KScanSlider::KScanSlider( TQWidget *tqparent, const TQString& text,
double min, double max, bool haveStdButt,
int stdValue )
- : TQFrame( parent ),
+ : TQFrame( tqparent ),
m_stdValue( stdValue ),
m_stdButt(0)
{
@@ -53,15 +53,15 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text,
this, TQT_SLOT(slRevertValue()));
TQToolTip::add( m_stdButt,
- i18n( "Revert value back to its standard value %1" ).arg( stdValue ));
+ i18n( "Revert value back to its standard value %1" ).tqarg( stdValue ));
hb->addWidget( m_stdButt, 0 );
hb->addSpacing( 4 );
}
- slider = new TQSlider( (int) min, (int)max, 1, (int)min, TQSlider::Horizontal, this, "AUTO_SLIDER_" );
+ slider = new TQSlider( (int) min, (int)max, 1, (int)min, Qt::Horizontal, this, "AUTO_SLIDER_" );
slider->setTickmarks( TQSlider::Below );
- slider->setTickInterval( int(QMAX( (max-min)/10, 1 )) );
- slider->setSteps( int(QMAX( (max-min)/20, 1) ), int(QMAX( (max-min)/10, 1) ) );
+ slider->setTickInterval( int(TQMAX( (max-min)/10, 1 )) );
+ slider->setSteps( int(TQMAX( (max-min)/20, 1) ), int(TQMAX( (max-min)/10, 1) ) );
slider->setMinimumWidth( 140 );
/* set a buddy */
l1->setBuddy( slider );
@@ -82,7 +82,7 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text,
/* set Value 0 to the widget */
slider->setValue( (int) min -1 );
- /* Add to layout widget and activate */
+ /* Add to tqlayout widget and activate */
hb->addWidget( slider, 36 );
hb->addSpacing( 4 );
hb->addWidget( m_spin, 0 );
@@ -149,8 +149,8 @@ KScanSlider::~KScanSlider()
/* ====================================================================== */
-KScanEntry::KScanEntry( TQWidget *parent, const TQString& text )
- : TQFrame( parent )
+KScanEntry::KScanEntry( TQWidget *tqparent, const TQString& text )
+ : TQFrame( tqparent )
{
TQHBoxLayout *hb = new TQHBoxLayout( this );
@@ -170,7 +170,7 @@ KScanEntry::KScanEntry( TQWidget *parent, const TQString& text )
TQString KScanEntry::text( void ) const
{
- TQString str = TQString::null;
+ TQString str = TQString();
// kdDebug(29000) << "entry is "<< entry << endl;
if(entry)
{
@@ -213,9 +213,9 @@ void KScanEntry::slReturnPressed( void )
-KScanCombo::KScanCombo( TQWidget *parent, const TQString& text,
+KScanCombo::KScanCombo( TQWidget *tqparent, const TQString& text,
const TQStrList& list )
- : TQHBox( parent ),
+ : TQHBox( tqparent ),
combo(0)
{
createCombo( text );
@@ -224,9 +224,9 @@ KScanCombo::KScanCombo( TQWidget *parent, const TQString& text,
combolist = list;
}
-KScanCombo::KScanCombo( TQWidget *parent, const TQString& text,
+KScanCombo::KScanCombo( TQWidget *tqparent, const TQString& text,
const TQStringList& list )
- : TQHBox( parent ),
+ : TQHBox( tqparent ),
combo(0)
{
createCombo( text );
@@ -260,7 +260,7 @@ void KScanCombo::createCombo( const TQString& text )
void KScanCombo::slSetEntry( const TQString &t )
{
if( t.isNull() ) return;
- int i = combolist.find( t.local8Bit() );
+ int i = combolist.tqfind( t.local8Bit() );
/* Important to check value to avoid recursive signals ;) */
if( i == combo->currentItem() )