summaryrefslogtreecommitdiffstats
path: root/libkcal/resourcecachedconfig.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/resourcecachedconfig.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/resourcecachedconfig.cpp')
-rw-r--r--libkcal/resourcecachedconfig.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/libkcal/resourcecachedconfig.cpp b/libkcal/resourcecachedconfig.cpp
index 4e701db3b..c1793c26a 100644
--- a/libkcal/resourcecachedconfig.cpp
+++ b/libkcal/resourcecachedconfig.cpp
@@ -19,12 +19,12 @@
Boston, MA 02110-1301, USA.
*/
-#include <qbuttongroup.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
+#include <tqbuttongroup.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kdebug.h>
@@ -35,24 +35,24 @@
using namespace KCal;
-ResourceCachedReloadConfig::ResourceCachedReloadConfig( QWidget *parent,
+ResourceCachedReloadConfig::ResourceCachedReloadConfig( TQWidget *parent,
const char *name )
- : QWidget( parent, name )
+ : TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
- mGroup = new QButtonGroup( 1, Horizontal, i18n("Automatic Reload"), this );
+ mGroup = new TQButtonGroup( 1, Horizontal, i18n("Automatic Reload"), this );
topLayout->addWidget( mGroup );
- new QRadioButton( i18n("Never"), mGroup );
- new QRadioButton( i18n("On startup"), mGroup );
+ new TQRadioButton( i18n("Never"), mGroup );
+ new TQRadioButton( i18n("On startup"), mGroup );
- QRadioButton *intervalRadio = new QRadioButton( i18n("Regular interval"),
+ TQRadioButton *intervalRadio = new TQRadioButton( i18n("Regular interval"),
mGroup );
- connect( intervalRadio, SIGNAL( stateChanged( int ) ),
- SLOT( slotIntervalStateChanged( int ) ) );
- QHBox *intervalBox = new QHBox( mGroup );
- new QLabel( i18n("Interval in minutes"), intervalBox );
- mIntervalSpin = new QSpinBox( 1,900, 1,intervalBox );
+ connect( intervalRadio, TQT_SIGNAL( stateChanged( int ) ),
+ TQT_SLOT( slotIntervalStateChanged( int ) ) );
+ TQHBox *intervalBox = new TQHBox( mGroup );
+ new TQLabel( i18n("Interval in minutes"), intervalBox );
+ mIntervalSpin = new TQSpinBox( 1,900, 1,intervalBox );
mIntervalSpin->setEnabled( false );
}
@@ -70,33 +70,33 @@ void ResourceCachedReloadConfig::saveSettings( ResourceCached *resource )
void ResourceCachedReloadConfig::slotIntervalStateChanged( int state )
{
- if ( state == QButton::On ) mIntervalSpin->setEnabled( true );
+ if ( state == TQButton::On ) mIntervalSpin->setEnabled( true );
else mIntervalSpin->setEnabled( false );
}
-ResourceCachedSaveConfig::ResourceCachedSaveConfig( QWidget *parent,
+ResourceCachedSaveConfig::ResourceCachedSaveConfig( TQWidget *parent,
const char *name )
- : QWidget( parent, name )
+ : TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
- mGroup = new QButtonGroup( 1, Horizontal, i18n("Automatic Save"), this );
+ mGroup = new TQButtonGroup( 1, Horizontal, i18n("Automatic Save"), this );
topLayout->addWidget( mGroup );
- new QRadioButton( i18n("Never"), mGroup );
- new QRadioButton( i18n("On exit"), mGroup );
+ new TQRadioButton( i18n("Never"), mGroup );
+ new TQRadioButton( i18n("On exit"), mGroup );
- QRadioButton *intervalRadio = new QRadioButton( i18n("Regular interval"),
+ TQRadioButton *intervalRadio = new TQRadioButton( i18n("Regular interval"),
mGroup );
- connect( intervalRadio, SIGNAL( stateChanged( int ) ),
- SLOT( slotIntervalStateChanged( int ) ) );
- QHBox *intervalBox = new QHBox( mGroup );
- new QLabel( i18n("Interval in minutes"), intervalBox );
- mIntervalSpin = new QSpinBox( 1,900, 1,intervalBox );
+ connect( intervalRadio, TQT_SIGNAL( stateChanged( int ) ),
+ TQT_SLOT( slotIntervalStateChanged( int ) ) );
+ TQHBox *intervalBox = new TQHBox( mGroup );
+ new TQLabel( i18n("Interval in minutes"), intervalBox );
+ mIntervalSpin = new TQSpinBox( 1,900, 1,intervalBox );
mIntervalSpin->setEnabled( false );
- new QRadioButton( i18n("Delayed after changes"), mGroup );
- new QRadioButton( i18n("On every change"), mGroup );
+ new TQRadioButton( i18n("Delayed after changes"), mGroup );
+ new TQRadioButton( i18n("On every change"), mGroup );
}
void ResourceCachedSaveConfig::loadSettings( ResourceCached *resource )
@@ -113,7 +113,7 @@ void ResourceCachedSaveConfig::saveSettings( ResourceCached *resource )
void ResourceCachedSaveConfig::slotIntervalStateChanged( int state )
{
- if ( state == QButton::On ) mIntervalSpin->setEnabled( true );
+ if ( state == TQButton::On ) mIntervalSpin->setEnabled( true );
else mIntervalSpin->setEnabled( false );
}