diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
commit | b1057f437bf65300831a0ccb45b920787c6b318d (patch) | |
tree | f8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /krec/krecconfigure.cpp | |
parent | 4ddfca384ced9ad654213aef9dc2c3973720b980 (diff) | |
download | tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip |
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krec/krecconfigure.cpp')
-rw-r--r-- | krec/krecconfigure.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/krec/krecconfigure.cpp b/krec/krecconfigure.cpp index c29d6b4a..65cb7497 100644 --- a/krec/krecconfigure.cpp +++ b/krec/krecconfigure.cpp @@ -87,13 +87,13 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi _tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this ); connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) ); _layout->addWidget( _tipofday ); - TQBoxLayout* _tmplayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); + TQBoxLayout* _tmptqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); _enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this ); connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) ); - _tmplayout->addWidget( _enableAllMessages ); + _tmptqlayout->addWidget( _enableAllMessages ); TQLabel* _tmplbl = new TQLabel( i18n( "<qt><i>All messages with the \"Don't show this message again\" option are shown again after selecting this button.</i></qt>" ), this ); - _tmplayout->addWidget( _tmplbl ); - _layout->addLayout( _tmplayout ); + _tmptqlayout->addWidget( _tmplbl ); + _layout->addLayout( _tmptqlayout ); _layout->addStretch( 100 ); @@ -151,17 +151,17 @@ void KRecConfigGeneral::defaults() { void KRecConfigGeneral::displaychanged( int index ) { int verbose = _displaymode / 100; - if ( _displaybox->find( index ) == _display0 ) _displaymode = 0 + verbose * 100; - if ( _displaybox->find( index ) == _display1 ) _displaymode = 1 + verbose * 100; - if ( _displaybox->find( index ) == _display2 ) _displaymode = 2 + verbose * 100; - if ( _displaybox->find( index ) == _display3 ) _displaymode = 3 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display0 ) _displaymode = 0 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display1 ) _displaymode = 1 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display2 ) _displaymode = 2 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display3 ) _displaymode = 3 + verbose * 100; emit changed( true ); } void KRecConfigGeneral::framebasechanged( int index ) { - if ( _framebasebox->find( index ) == _framebase30 ) _framebase = 30; - if ( _framebasebox->find( index ) == _framebase25 ) _framebase = 25; - if ( _framebasebox->find( index ) == _framebase75 ) _framebase = 75; - if ( _framebasebox->find( index ) == _framebaseother ) { + if ( _framebasebox->tqfind( index ) == _framebase30 ) _framebase = 30; + if ( _framebasebox->tqfind( index ) == _framebase25 ) _framebase = 25; + if ( _framebasebox->tqfind( index ) == _framebase75 ) _framebase = 75; + if ( _framebasebox->tqfind( index ) == _framebaseother ) { _framebaseotherbox->setEnabled( true ); _framebase = _framebaseotherline->text().toInt(); kdDebug(60005) << k_funcinfo << "Framebase=" << _framebase << endl; |