summaryrefslogtreecommitdiffstats
path: root/libkcal/resourcecachedconfig.cpp
diff options
context:
space:
mode:
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 4e701db3..c1793c26 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 );
}