summaryrefslogtreecommitdiffstats
path: root/korganizer/koprefsdialog.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 /korganizer/koprefsdialog.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 'korganizer/koprefsdialog.cpp')
-rw-r--r--korganizer/koprefsdialog.cpp434
1 files changed, 217 insertions, 217 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp
index fd9fd8246..0205b59ea 100644
--- a/korganizer/koprefsdialog.cpp
+++ b/korganizer/koprefsdialog.cpp
@@ -23,25 +23,25 @@
without including the source code for Qt in the source distribution.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
-#include <qlineedit.h>
-#include <qslider.h>
-#include <qfile.h>
-#include <qcombobox.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qgrid.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qstrlist.h>
-#include <qlistview.h>
-#include <qtabwidget.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqlineedit.h>
+#include <tqslider.h>
+#include <tqfile.h>
+#include <tqcombobox.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqgrid.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqstrlist.h>
+#include <tqlistview.h>
+#include <tqtabwidget.h>
+#include <tqwhatsthis.h>
#include <kcolorbutton.h>
#include <kdebug.h>
@@ -76,39 +76,39 @@
#include <kdepimmacros.h>
-KOPrefsDialogMain::KOPrefsDialogMain( QWidget *parent, const char *name )
+KOPrefsDialogMain::KOPrefsDialogMain( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QVBox *topFrame = new QVBox( this );
+ TQVBox *topFrame = new TQVBox( this );
topTopLayout->addWidget( topFrame );
topFrame->setSpacing( KDialog::spacingHint() );
KPrefsWidBool *emailControlCenter =
addWidBool( KOPrefs::instance()->emailControlCenterItem(), topFrame );
- connect(emailControlCenter->checkBox(),SIGNAL(toggled(bool)),
- SLOT(toggleEmailSettings(bool)));
+ connect(emailControlCenter->checkBox(),TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(toggleEmailSettings(bool)));
- mUserEmailSettings = new QGrid( 2, topFrame );
+ mUserEmailSettings = new TQGrid( 2, topFrame );
addWidString( KOPrefs::instance()->userNameItem(), mUserEmailSettings );
addWidString( KOPrefs::instance()->userEmailItem(), mUserEmailSettings );
- QGroupBox *saveGroup = new QGroupBox(1,Horizontal,i18n("Saving Calendar"),
+ TQGroupBox *saveGroup = new TQGroupBox(1,Horizontal,i18n("Saving Calendar"),
topFrame);
addWidBool( KOPrefs::instance()->htmlWithSaveItem(), saveGroup );
KPrefsWidBool *autoSave = addWidBool( KOPrefs::instance()->autoSaveItem(), saveGroup );
- QHBox *intervalBox = new QHBox( saveGroup );
+ TQHBox *intervalBox = new TQHBox( saveGroup );
addWidInt( KOPrefs::instance()->autoSaveIntervalItem(), intervalBox );
- connect( autoSave->checkBox(), SIGNAL( toggled( bool ) ),
- intervalBox, SLOT( setEnabled( bool ) ) );
+ connect( autoSave->checkBox(), TQT_SIGNAL( toggled( bool ) ),
+ intervalBox, TQT_SLOT( setEnabled( bool ) ) );
intervalBox->setSpacing( KDialog::spacingHint() );
- new QWidget( intervalBox );
+ new TQWidget( intervalBox );
addWidBool( KOPrefs::instance()->confirmItem(), topFrame );
addWidRadios( KOPrefs::instance()->destinationItem(), topFrame);
@@ -134,7 +134,7 @@ void KOPrefsDialogMain::toggleEmailSettings( bool on )
extern "C"
{
- KDE_EXPORT KCModule *create_korganizerconfigmain( QWidget *parent, const char * )
+ KDE_EXPORT KCModule *create_korganizerconfigmain( TQWidget *parent, const char * )
{
return new KOPrefsDialogMain( parent, "kcmkorganizermain" );
}
@@ -144,37 +144,37 @@ extern "C"
class KOPrefsDialogTime : public KPrefsModule
{
public:
- KOPrefsDialogTime( QWidget *parent, const char *name )
+ KOPrefsDialogTime( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QWidget *topFrame = new QWidget( this );
+ TQWidget *topFrame = new TQWidget( this );
topTopLayout->addWidget( topFrame );
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ TQGridLayout *topLayout = new TQGridLayout(topFrame,6,2);
topLayout->setSpacing( KDialog::spacingHint() );
- QHBox *timeZoneBox = new QHBox( topFrame );
+ TQHBox *timeZoneBox = new TQHBox( topFrame );
topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 );
- QLabel *timeZoneLabel = new QLabel( i18n("Timezone:"), timeZoneBox );
- QString whatsThis = i18n( "Select your timezone from the list of "
+ TQLabel *timeZoneLabel = new TQLabel( i18n("Timezone:"), timeZoneBox );
+ TQString whatsThis = i18n( "Select your timezone from the list of "
"locations on this drop down box. If your city "
"is not listed, select one which shares the "
"same timezone. KOrganizer will automatically "
"adjust for daylight savings." );
- QWhatsThis::add( timeZoneLabel, whatsThis );
- mTimeZoneCombo = new QComboBox( timeZoneBox );
+ TQWhatsThis::add( timeZoneLabel, whatsThis );
+ mTimeZoneCombo = new TQComboBox( timeZoneBox );
- connect( mTimeZoneCombo, SIGNAL( activated( int ) ),
- SLOT( slotWidChanged() ) );
+ connect( mTimeZoneCombo, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotWidChanged() ) );
FILE *f;
char tempstring[101] = "Unknown";
- QString sCurrentlySet(i18n("Unknown"));
+ TQString sCurrentlySet(i18n("Unknown"));
int nCurrentlySet = 0;
- QStringList list;
+ TQStringList list;
// read the currently set time zone
#if defined(USE_SOLARIS) // MARCO
@@ -189,7 +189,7 @@ class KOPrefsDialogTime : public KPrefsModule
if (fgets(buf, MAXPATHLEN - 1, f) != NULL)
{
buf[strlen(buf) - 1] = '\0';
- sCurrentlySet = QString(buf);
+ sCurrentlySet = TQString(buf);
}
pclose(f);
}
@@ -198,7 +198,7 @@ class KOPrefsDialogTime : public KPrefsModule
// get the currently set timezone
fgets(tempstring, 100, f);
tempstring[strlen(tempstring) - 1] = '\0';
- sCurrentlySet = QString(tempstring);
+ sCurrentlySet = TQString(tempstring);
fclose(f);
}
#endif // !USE_SOLARIS
@@ -246,34 +246,34 @@ class KOPrefsDialogTime : public KPrefsModule
}
mTimeZoneCombo->setCurrentItem(nCurrentlySet);
- QWhatsThis::add( mTimeZoneCombo, whatsThis );
+ TQWhatsThis::add( mTimeZoneCombo, whatsThis );
// holiday region selection
- QHBox *holidayRegBox = new QHBox( topFrame );
+ TQHBox *holidayRegBox = new TQHBox( topFrame );
topLayout->addMultiCellWidget( holidayRegBox, 1, 1, 0, 1 );
- QLabel *holidayLabel = new QLabel( i18n( "Use holiday region:" ), holidayRegBox );
+ TQLabel *holidayLabel = new TQLabel( i18n( "Use holiday region:" ), holidayRegBox );
whatsThis = i18n( "Select from which region you want to use the "
"holidays here. Defined holidays are shown as "
"non-working days in the date navigator, the "
"agenda view, etc." );
- QWhatsThis::add( holidayLabel, whatsThis );
+ TQWhatsThis::add( holidayLabel, whatsThis );
- mHolidayCombo = new QComboBox( holidayRegBox );
- connect( mHolidayCombo, SIGNAL( activated( int ) ),
- SLOT( slotWidChanged() ) );
+ mHolidayCombo = new TQComboBox( holidayRegBox );
+ connect( mHolidayCombo, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotWidChanged() ) );
- QWhatsThis::add( mHolidayCombo, whatsThis );
+ TQWhatsThis::add( mHolidayCombo, whatsThis );
- QString currentHolidayName;
- QStringList holidayList;
- QStringList countryList = KHolidays::locations();
- QStringList::ConstIterator it;
+ TQString currentHolidayName;
+ TQStringList holidayList;
+ TQStringList countryList = KHolidays::locations();
+ TQStringList::ConstIterator it;
for ( it = countryList.begin(); it != countryList.end(); ++it ) {
- QString countryFile = locate( "locale",
+ TQString countryFile = locate( "locale",
"l10n/" + (*it) + "/entry.desktop" );
- QString regionName;
+ TQString regionName;
if ( !countryFile.isEmpty() ) {
KSimpleConfig cfg( countryFile );
cfg.setGroup( "KCM Locale" );
@@ -315,60 +315,60 @@ class KOPrefsDialogTime : public KPrefsModule
topLayout->addWidget( defaultDuration->label(), 4, 0 );
topLayout->addWidget( defaultDuration->timeEdit(), 4, 1 );
- QStringList alarmList;
+ TQStringList alarmList;
alarmList << i18n( "1 minute" ) << i18n( "5 minutes" )
<< i18n( "10 minutes" ) << i18n( "15 minutes" )
<< i18n( "30 minutes" );
- QLabel *alarmLabel = new QLabel( i18n( "Default reminder time:" ), topFrame);
+ TQLabel *alarmLabel = new TQLabel( i18n( "Default reminder time:" ), topFrame);
topLayout->addWidget( alarmLabel, 5, 0 );
- QWhatsThis::add( alarmLabel,
+ TQWhatsThis::add( alarmLabel,
i18n( "Enter the default reminder time here." ) );
- mAlarmTimeCombo = new QComboBox( topFrame );
- QWhatsThis::add( mAlarmTimeCombo,
+ mAlarmTimeCombo = new TQComboBox( topFrame );
+ TQWhatsThis::add( mAlarmTimeCombo,
i18n( "Enter the default reminder time here." ) );
- connect( mAlarmTimeCombo, SIGNAL( activated( int ) ),
- SLOT( slotWidChanged() ) );
+ connect( mAlarmTimeCombo, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotWidChanged() ) );
mAlarmTimeCombo->insertStringList( alarmList );
topLayout->addWidget( mAlarmTimeCombo, 5, 1 );
- QLabel *alarmDefaultLabel = new QLabel( i18n( "Enable reminders by default:" ), topFrame);
+ TQLabel *alarmDefaultLabel = new TQLabel( i18n( "Enable reminders by default:" ), topFrame);
topLayout->addWidget( alarmDefaultLabel, 6, 0 );
- mAlarmTimeDefaultCheckBox = new QCheckBox( topFrame );
+ mAlarmTimeDefaultCheckBox = new TQCheckBox( topFrame );
topLayout->addWidget( mAlarmTimeDefaultCheckBox, 6, 1 );
- connect( mAlarmTimeDefaultCheckBox, SIGNAL( toggled( bool ) ),
- SLOT( slotWidChanged() ) );
+ connect( mAlarmTimeDefaultCheckBox, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( slotWidChanged() ) );
- QGroupBox *workingHoursGroup = new QGroupBox(1,Horizontal,
+ TQGroupBox *workingHoursGroup = new TQGroupBox(1,Horizontal,
i18n("Working Hours"),
topFrame);
topLayout->addMultiCellWidget( workingHoursGroup, 7, 7, 0, 1 );
- QHBox *workDaysBox = new QHBox( workingHoursGroup );
+ TQHBox *workDaysBox = new TQHBox( workingHoursGroup );
// Respect start of week setting
int weekStart=KGlobal::locale()->weekStartDay();
for ( int i = 0; i < 7; ++i ) {
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
- QString weekDayName = calSys->weekDayName( (i + weekStart + 6)%7 + 1, true );
+ TQString weekDayName = calSys->weekDayName( (i + weekStart + 6)%7 + 1, true );
if ( KOPrefs::instance()->mCompactDialogs ) {
weekDayName = weekDayName.left( 1 );
}
int index = ( i + weekStart + 6 ) % 7;
- mWorkDays[ index ] = new QCheckBox( weekDayName, workDaysBox );
- QWhatsThis::add( mWorkDays[ index ],
+ mWorkDays[ index ] = new TQCheckBox( weekDayName, workDaysBox );
+ TQWhatsThis::add( mWorkDays[ index ],
i18n( "Check this box to make KOrganizer mark the "
"working hours for this day of the week. "
"If this is a work day for you, check "
"this box, or the working hours will not be "
"marked with color." ) );
- connect( mWorkDays[ index ], SIGNAL( stateChanged( int ) ),
- SLOT( slotWidChanged() ) );
+ connect( mWorkDays[ index ], TQT_SIGNAL( stateChanged( int ) ),
+ TQT_SLOT( slotWidChanged() ) );
}
- QHBox *workStartBox = new QHBox(workingHoursGroup);
+ TQHBox *workStartBox = new TQHBox(workingHoursGroup);
addWidTime( KOPrefs::instance()->workingHoursStartItem(), workStartBox );
- QHBox *workEndBox = new QHBox(workingHoursGroup);
+ TQHBox *workEndBox = new TQHBox(workingHoursGroup);
addWidTime( KOPrefs::instance()->workingHoursEndItem(), workEndBox );
@@ -396,7 +396,7 @@ class KOPrefsDialogTime : public KPrefsModule
void usrWriteConfig()
{
// Find untranslated selected zone
- QStringList::Iterator tz;
+ TQStringList::Iterator tz;
for ( tz = tzonenames.begin(); tz != tzonenames.end(); ++tz )
if (mTimeZoneCombo->currentText() == i18n((*tz).utf8()))
break;
@@ -406,7 +406,7 @@ class KOPrefsDialogTime : public KPrefsModule
KOPrefs::instance()->mTimeZoneId = mTimeZoneCombo->currentText();
KOPrefs::instance()->mHolidays = ( mHolidayCombo->currentItem() == 0 ) ? // (None)
- QString::null :
+ TQString::null :
mRegionMap[mHolidayCombo->currentText()];
KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem();
@@ -419,8 +419,8 @@ class KOPrefsDialogTime : public KPrefsModule
KOPrefs::instance()->writeConfig();
}
- void setCombo( QComboBox *combo, const QString &text,
- const QStringList *tags = 0 )
+ void setCombo( TQComboBox *combo, const TQString &text,
+ const TQStringList *tags = 0 )
{
if (tags) {
int i = tags->findIndex(text);
@@ -436,18 +436,18 @@ class KOPrefsDialogTime : public KPrefsModule
}
private:
- QComboBox *mTimeZoneCombo;
- QStringList tzonenames;
- QComboBox *mHolidayCombo;
- QMap<QString,QString> mRegionMap;
- QComboBox *mAlarmTimeCombo;
- QCheckBox *mAlarmTimeDefaultCheckBox;
- QCheckBox *mWorkDays[7];
+ TQComboBox *mTimeZoneCombo;
+ TQStringList tzonenames;
+ TQComboBox *mHolidayCombo;
+ TQMap<TQString,TQString> mRegionMap;
+ TQComboBox *mAlarmTimeCombo;
+ TQCheckBox *mAlarmTimeDefaultCheckBox;
+ TQCheckBox *mWorkDays[7];
};
extern "C"
{
- KCModule *create_korganizerconfigtime( QWidget *parent, const char * )
+ KCModule *create_korganizerconfigtime( TQWidget *parent, const char * )
{
KGlobal::locale()->insertCatalogue( "timezones" );
return new KOPrefsDialogTime( parent, "kcmkorganizertime" );
@@ -458,15 +458,15 @@ extern "C"
class KOPrefsDialogViews : public KPrefsModule
{
public:
- KOPrefsDialogViews( QWidget *parent, const char *name )
+ KOPrefsDialogViews( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QWidget *topFrame = new QWidget( this );
+ TQWidget *topFrame = new TQWidget( this );
topTopLayout->addWidget( topFrame );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
topLayout->setSpacing( KDialog::spacingHint() );
KPrefsWidBool *enableToolTips =
@@ -478,7 +478,7 @@ class KOPrefsDialogViews : public KPrefsModule
topLayout->addWidget( showTodosAgenda->checkBox() );
/*** Date Navigator Group ***/
- QGroupBox *dateNavGroup = new QGroupBox( 1, Horizontal,
+ TQGroupBox *dateNavGroup = new TQGroupBox( 1, Horizontal,
i18n("Date Navigator"),
topFrame );
addWidBool( KOPrefs::instance()->dailyRecurItem(), dateNavGroup );
@@ -487,30 +487,30 @@ class KOPrefsDialogViews : public KPrefsModule
/*** Agenda View Group ***/
- QGroupBox *agendaGroup = new QGroupBox( 1, Horizontal,
+ TQGroupBox *agendaGroup = new TQGroupBox( 1, Horizontal,
i18n("Agenda View"),
topFrame );
- QHBox *hourSizeBox = new QHBox( agendaGroup );
+ TQHBox *hourSizeBox = new TQHBox( agendaGroup );
KPrefsWidInt *hourSize =
addWidInt( KOPrefs::instance()->hourSizeItem(), hourSizeBox );
hourSize->spinBox()->setSuffix(i18n("suffix in the hour size spin box", " pixel"));
// horizontal spacer:
- new QWidget( hourSizeBox );
+ new TQWidget( hourSizeBox );
- QHBox *nextDaysBox = new QHBox( agendaGroup );
+ TQHBox *nextDaysBox = new TQHBox( agendaGroup );
KPrefsWidInt *nextDays =
addWidInt( KOPrefs::instance()->nextXDaysItem(), nextDaysBox );
nextDays->spinBox()->setSuffix(i18n("suffix in the N days spin box", " days"));
- new QWidget( nextDaysBox );
+ new TQWidget( nextDaysBox );
KPrefsWidBool *marcusBainsEnabled =
addWidBool( KOPrefs::instance()->marcusBainsEnabledItem(), agendaGroup );
KPrefsWidBool *marcusBainsShowSeconds =
addWidBool( KOPrefs::instance()->marcusBainsShowSecondsItem(), agendaGroup );
- connect( marcusBainsEnabled->checkBox(), SIGNAL( toggled( bool ) ),
- marcusBainsShowSeconds->checkBox(), SLOT( setEnabled( bool ) ) );
+ connect( marcusBainsEnabled->checkBox(), TQT_SIGNAL( toggled( bool ) ),
+ marcusBainsShowSeconds->checkBox(), TQT_SLOT( setEnabled( bool ) ) );
addWidBool( KOPrefs::instance()->selectionStartsEditorItem(), agendaGroup );
@@ -521,11 +521,11 @@ class KOPrefsDialogViews : public KPrefsModule
topLayout->addWidget( agendaGroup );
/*** Month and Todo view groups side by side, to save space. ***/
- QHBoxLayout *hbox = new QHBoxLayout();
+ TQHBoxLayout *hbox = new TQHBoxLayout();
topLayout->addLayout( hbox );
/*** Month View Group ***/
- QGroupBox *monthGroup = new QGroupBox( 1, Horizontal,
+ TQGroupBox *monthGroup = new TQGroupBox( 1, Horizontal,
i18n("Month View"),
topFrame );
addWidBool( KOPrefs::instance()->enableMonthScrollItem(), monthGroup );
@@ -537,7 +537,7 @@ class KOPrefsDialogViews : public KPrefsModule
/*** Todo View Group ***/
- QGroupBox *todoGroup = new QGroupBox( 1, Horizontal,
+ TQGroupBox *todoGroup = new TQGroupBox( 1, Horizontal,
i18n("To-do View"),
topFrame );
addWidBool( KOPrefs::instance()->fullViewTodoItem(), todoGroup );
@@ -552,7 +552,7 @@ class KOPrefsDialogViews : public KPrefsModule
extern "C"
{
- KCModule *create_korganizerconfigviews( QWidget *parent, const char * )
+ KCModule *create_korganizerconfigviews( TQWidget *parent, const char * )
{
return new KOPrefsDialogViews( parent, "kcmkorganizerviews" );
}
@@ -562,27 +562,27 @@ extern "C"
class KOPrefsDialogFonts : public KPrefsModule
{
public:
- KOPrefsDialogFonts( QWidget *parent, const char *name )
+ KOPrefsDialogFonts( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QWidget *topFrame = new QWidget( this );
+ TQWidget *topFrame = new TQWidget( this );
topTopLayout->addWidget( topFrame );
- QGridLayout *topLayout = new QGridLayout(topFrame,5,3);
+ TQGridLayout *topLayout = new TQGridLayout(topFrame,5,3);
topLayout->setSpacing( KDialog::spacingHint() );
KPrefsWidFont *timeBarFont =
addWidFont( KOPrefs::instance()->timeBarFontItem(), topFrame,
- KGlobal::locale()->formatTime( QTime( 12, 34 ) ) );
+ KGlobal::locale()->formatTime( TQTime( 12, 34 ) ) );
topLayout->addWidget(timeBarFont->label(),0,0);
topLayout->addWidget(timeBarFont->preview(),0,1);
topLayout->addWidget(timeBarFont->button(),0,2);
KPrefsWidFont *monthViewFont =
addWidFont( KOPrefs::instance()->monthViewFontItem(), topFrame,
- KGlobal::locale()->formatTime(QTime(12,34)) + " " +
+ KGlobal::locale()->formatTime(TQTime(12,34)) + " " +
i18n("Event text") );
topLayout->addWidget(monthViewFont->label(),1,0);
@@ -598,7 +598,7 @@ class KOPrefsDialogFonts : public KPrefsModule
KPrefsWidFont *marcusBainsFont =
addWidFont( KOPrefs::instance()->marcusBainsFontItem(), topFrame,
- KGlobal::locale()->formatTime( QTime( 12, 34, 23 ) ) );
+ KGlobal::locale()->formatTime( TQTime( 12, 34, 23 ) ) );
topLayout->addWidget(marcusBainsFont->label(),3,0);
topLayout->addWidget(marcusBainsFont->preview(),3,1);
topLayout->addWidget(marcusBainsFont->button(),3,2);
@@ -612,22 +612,22 @@ class KOPrefsDialogFonts : public KPrefsModule
extern "C"
{
- KCModule *create_korganizerconfigfonts( QWidget *parent, const char * )
+ KCModule *create_korganizerconfigfonts( TQWidget *parent, const char * )
{
return new KOPrefsDialogFonts( parent, "kcmkorganizerfonts" );
}
}
-KOPrefsDialogColors::KOPrefsDialogColors( QWidget *parent, const char *name )
+KOPrefsDialogColors::KOPrefsDialogColors( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QWidget *topFrame = new QWidget( this );
+ TQWidget *topFrame = new TQWidget( this );
topTopLayout->addWidget( topFrame );
- QGridLayout *topLayout = new QGridLayout(topFrame,7,2);
+ TQGridLayout *topLayout = new TQGridLayout(topFrame,7,2);
topLayout->setSpacing( KDialog::spacingHint() );
// Holiday Color
@@ -672,42 +672,42 @@ KOPrefsDialogColors::KOPrefsDialogColors( QWidget *parent, const char *name )
topLayout->addWidget(todoOverdueColor->button(),6,1);
// categories colors
- QGroupBox *categoryGroup = new QGroupBox(1,Horizontal,i18n("Categories"),
+ TQGroupBox *categoryGroup = new TQGroupBox(1,Horizontal,i18n("Categories"),
topFrame);
topLayout->addMultiCellWidget(categoryGroup,7,7,0,1);
- mCategoryCombo = new QComboBox(categoryGroup);
+ mCategoryCombo = new TQComboBox(categoryGroup);
mCategoryCombo->insertStringList(KOPrefs::instance()->mCustomCategories);
- QWhatsThis::add( mCategoryCombo,
+ TQWhatsThis::add( mCategoryCombo,
i18n( "Select here the event category you want to modify. "
"You can change the selected category color using "
"the button below." ) );
- connect(mCategoryCombo,SIGNAL(activated(int)),SLOT(updateCategoryColor()));
+ connect(mCategoryCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(updateCategoryColor()));
mCategoryButton = new KColorButton(categoryGroup);
- QWhatsThis::add( mCategoryButton,
+ TQWhatsThis::add( mCategoryButton,
i18n( "Choose here the color of the event category selected "
"using the combo box above." ) );
- connect(mCategoryButton,SIGNAL(changed(const QColor &)),SLOT(setCategoryColor()));
+ connect(mCategoryButton,TQT_SIGNAL(changed(const TQColor &)),TQT_SLOT(setCategoryColor()));
updateCategoryColor();
// resources colors
- QGroupBox *resourceGroup = new QGroupBox(1,Horizontal,i18n("Resources"),
+ TQGroupBox *resourceGroup = new TQGroupBox(1,Horizontal,i18n("Resources"),
topFrame);
topLayout->addMultiCellWidget(resourceGroup,8,8,0,1);
- mResourceCombo = new QComboBox(resourceGroup);
- QWhatsThis::add( mResourceCombo,
+ mResourceCombo = new TQComboBox(resourceGroup);
+ TQWhatsThis::add( mResourceCombo,
i18n( "Select here resource you want to modify. "
"You can change the selected resource color using "
"the button below." ) );
- connect(mResourceCombo,SIGNAL(activated(int)),SLOT(updateResourceColor()));
+ connect(mResourceCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(updateResourceColor()));
mResourceButton = new KColorButton(resourceGroup);
- QWhatsThis::add( mResourceButton,
+ TQWhatsThis::add( mResourceButton,
i18n( "Choose here the color of the resource selected "
"using the combo box above." ) );
- connect(mResourceButton,SIGNAL(changed(const QColor &)),SLOT(setResourceColor()));
+ connect(mResourceButton,TQT_SIGNAL(changed(const TQColor &)),TQT_SLOT(setResourceColor()));
updateResources();
topLayout->setRowStretch(9,1);
@@ -717,13 +717,13 @@ KOPrefsDialogColors::KOPrefsDialogColors( QWidget *parent, const char *name )
void KOPrefsDialogColors::usrWriteConfig()
{
- QDictIterator<QColor> itCat(mCategoryDict);
+ TQDictIterator<TQColor> itCat(mCategoryDict);
while (itCat.current()) {
KOPrefs::instance()->setCategoryColor(itCat.currentKey(),*itCat.current());
++itCat;
}
- QDictIterator<QColor> itRes(mResourceDict);
+ TQDictIterator<TQColor> itRes(mResourceDict);
while (itRes.current()) {
KOPrefs::instance()->setResourceColor(itRes.currentKey(),*itRes.current());
++itRes;
@@ -745,14 +745,14 @@ void KOPrefsDialogColors::updateCategories()
void KOPrefsDialogColors::setCategoryColor()
{
- mCategoryDict.replace(mCategoryCombo->currentText(), new QColor(mCategoryButton->color()));
+ mCategoryDict.replace(mCategoryCombo->currentText(), new TQColor(mCategoryButton->color()));
slotWidChanged();
}
void KOPrefsDialogColors::updateCategoryColor()
{
- QString cat = mCategoryCombo->currentText();
- QColor *color = mCategoryDict.find(cat);
+ TQString cat = mCategoryCombo->currentText();
+ TQColor *color = mCategoryDict.find(cat);
if (!color) {
color = KOPrefs::instance()->categoryColor(cat);
}
@@ -773,9 +773,9 @@ void KOPrefsDialogColors::updateResources()
KCal::CalendarResourceManager::Iterator it;
for( it = manager->begin(); it != manager->end(); ++it ) {
if ( !(*it)->subresources().isEmpty() ) {
- QStringList subresources = (*it)->subresources();
+ TQStringList subresources = (*it)->subresources();
for ( uint i = 0; i < subresources.count(); ++i ) {
- QString resource = subresources[ i ];
+ TQString resource = subresources[ i ];
if ( (*it)->subresourceActive( resource ) ) {
mResourceCombo->insertItem( (*it)->labelForSubresource( resource ) );
mResourceIdentifier.append( resource );
@@ -795,15 +795,15 @@ void KOPrefsDialogColors::setResourceColor()
kdDebug( 5850) << "KOPrefsDialogColors::setResorceColor()" << endl;
mResourceDict.replace( mResourceIdentifier[mResourceCombo->currentItem()],
- new QColor( mResourceButton->color() ) );
+ new TQColor( mResourceButton->color() ) );
slotWidChanged();
}
void KOPrefsDialogColors::updateResourceColor()
{
kdDebug( 5850 ) << "KOPrefsDialogColors::updateResourceColor()" << endl;
- QString res= mResourceIdentifier[mResourceCombo->currentItem()];
- QColor *color = mCategoryDict.find(res);
+ TQString res= mResourceIdentifier[mResourceCombo->currentItem()];
+ TQColor *color = mCategoryDict.find(res);
if( !color ) {
color = KOPrefs::instance()->resourceColor( res );
}
@@ -813,22 +813,22 @@ void KOPrefsDialogColors::updateResourceColor()
}
extern "C"
{
- KCModule *create_korganizerconfigcolors( QWidget *parent, const char * )
+ KCModule *create_korganizerconfigcolors( TQWidget *parent, const char * )
{
return new KOPrefsDialogColors( parent, "kcmkorganizercolors" );
}
}
-KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( QWidget *parent, const char *name )
+KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QWidget *topFrame = new QWidget( this );
+ TQWidget *topFrame = new TQWidget( this );
topTopLayout->addWidget( topFrame );
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ TQGridLayout *topLayout = new TQGridLayout(topFrame,6,2);
topLayout->setSpacing( KDialog::spacingHint() );
KPrefsWidBool *useGroupwareBool =
@@ -836,8 +836,8 @@ KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( QWidget *parent, con
topFrame );
topLayout->addMultiCellWidget(useGroupwareBool->checkBox(),0,0,0,1);
// FIXME: This radio button should only be available when KMail is chosen
-// connect(thekmailradiobuttonupthere,SIGNAL(toggled(bool)),
-// useGroupwareBool->checkBox(), SLOT(enabled(bool)));
+// connect(thekmailradiobuttonupthere,TQT_SIGNAL(toggled(bool)),
+// useGroupwareBool->checkBox(), TQT_SLOT(enabled(bool)));
KPrefsWidBool *bcc =
addWidBool( KOPrefs::instance()->bccItem(), topFrame );
@@ -858,50 +858,50 @@ KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( QWidget *parent, con
topLayout->addMultiCellWidget(schedulerGroup->groupBox(),0,0,0,1);
#endif
- QLabel *aMailsLabel = new QLabel(i18n("Additional email addresses:"),topFrame);
- QString whatsThis = i18n( "Add, edit or remove additional e-mails addresses "
+ TQLabel *aMailsLabel = new TQLabel(i18n("Additional email addresses:"),topFrame);
+ TQString whatsThis = i18n( "Add, edit or remove additional e-mails addresses "
"here. These email addresses are the ones you "
"have in addition to the one set in personal "
"preferences. If you are an attendee of one event, "
"but use another email address there, you need to "
"list this address here so KOrganizer can "
"recognize it as yours." );
- QWhatsThis::add( aMailsLabel, whatsThis );
+ TQWhatsThis::add( aMailsLabel, whatsThis );
topLayout->addMultiCellWidget(aMailsLabel,3,3,0,1);
- mAMails = new QListView(topFrame);
- QWhatsThis::add( mAMails, whatsThis );
+ mAMails = new TQListView(topFrame);
+ TQWhatsThis::add( mAMails, whatsThis );
mAMails->addColumn(i18n("Email"),300);
topLayout->addMultiCellWidget(mAMails,4,4,0,1);
- QLabel *aEmailsEditLabel = new QLabel(i18n("Additional email address:"),topFrame);
+ TQLabel *aEmailsEditLabel = new TQLabel(i18n("Additional email address:"),topFrame);
whatsThis = i18n( "Edit additional e-mails addresses here. To edit an "
"address select it from the list above "
"or press the \"New\" button below. These email "
"addresses are the ones you have in addition to the "
"one set in personal preferences." );
- QWhatsThis::add( aEmailsEditLabel, whatsThis );
+ TQWhatsThis::add( aEmailsEditLabel, whatsThis );
topLayout->addWidget(aEmailsEditLabel,5,0);
- aEmailsEdit = new QLineEdit(topFrame);
- QWhatsThis::add( aEmailsEdit, whatsThis );
+ aEmailsEdit = new TQLineEdit(topFrame);
+ TQWhatsThis::add( aEmailsEdit, whatsThis );
aEmailsEdit->setEnabled(false);
topLayout->addWidget(aEmailsEdit,5,1);
- QPushButton *add = new QPushButton(i18n("New"),topFrame,"new");
+ TQPushButton *add = new TQPushButton(i18n("New"),topFrame,"new");
whatsThis = i18n( "Press this button to add a new entry to the "
"additional e-mail addresses list. Use the edit "
"box above to edit the new entry." );
- QWhatsThis::add( add, whatsThis );
+ TQWhatsThis::add( add, whatsThis );
topLayout->addWidget(add,6,0);
- QPushButton *del = new QPushButton(i18n("Remove"),topFrame,"remove");
- QWhatsThis::add( del, whatsThis );
+ TQPushButton *del = new TQPushButton(i18n("Remove"),topFrame,"remove");
+ TQWhatsThis::add( del, whatsThis );
topLayout->addWidget(del,6,1);
//topLayout->setRowStretch(2,1);
- connect(add, SIGNAL( clicked() ), this, SLOT(addItem()) );
- connect(del, SIGNAL( clicked() ), this, SLOT(removeItem()) );
- connect(aEmailsEdit,SIGNAL( textChanged(const QString&) ), this,SLOT(updateItem()));
- connect(mAMails,SIGNAL(selectionChanged(QListViewItem *)),SLOT(updateInput()));
+ connect(add, TQT_SIGNAL( clicked() ), this, TQT_SLOT(addItem()) );
+ connect(del, TQT_SIGNAL( clicked() ), this, TQT_SLOT(removeItem()) );
+ connect(aEmailsEdit,TQT_SIGNAL( textChanged(const TQString&) ), this,TQT_SLOT(updateItem()));
+ connect(mAMails,TQT_SIGNAL(selectionChanged(TQListViewItem *)),TQT_SLOT(updateInput()));
load();
}
@@ -909,9 +909,9 @@ KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( QWidget *parent, con
void KOPrefsDialogGroupScheduling::usrReadConfig()
{
mAMails->clear();
- for ( QStringList::Iterator it = KOPrefs::instance()->mAdditionalMails.begin();
+ for ( TQStringList::Iterator it = KOPrefs::instance()->mAdditionalMails.begin();
it != KOPrefs::instance()->mAdditionalMails.end(); ++it ) {
- QListViewItem *item = new QListViewItem(mAMails);
+ TQListViewItem *item = new TQListViewItem(mAMails);
item->setText(0,*it);
mAMails->insertItem(item);
}
@@ -920,7 +920,7 @@ void KOPrefsDialogGroupScheduling::usrReadConfig()
void KOPrefsDialogGroupScheduling::usrWriteConfig()
{
KOPrefs::instance()->mAdditionalMails.clear();
- QListViewItem *item;
+ TQListViewItem *item;
item = mAMails->firstChild();
while (item)
{
@@ -932,7 +932,7 @@ void KOPrefsDialogGroupScheduling::usrWriteConfig()
void KOPrefsDialogGroupScheduling::addItem()
{
aEmailsEdit->setEnabled(true);
- QListViewItem *item = new QListViewItem(mAMails);
+ TQListViewItem *item = new TQListViewItem(mAMails);
mAMails->insertItem(item);
mAMails->setSelected(item,true);
aEmailsEdit->setText(i18n("(EmptyEmail)"));
@@ -941,7 +941,7 @@ void KOPrefsDialogGroupScheduling::addItem()
void KOPrefsDialogGroupScheduling::removeItem()
{
- QListViewItem *item;
+ TQListViewItem *item;
item = mAMails->selectedItem();
if (!item) return;
mAMails->takeItem(item);
@@ -958,7 +958,7 @@ void KOPrefsDialogGroupScheduling::removeItem()
void KOPrefsDialogGroupScheduling::updateItem()
{
- QListViewItem *item;
+ TQListViewItem *item;
item = mAMails->selectedItem();
if (!item) return;
item->setText(0,aEmailsEdit->text());
@@ -967,7 +967,7 @@ void KOPrefsDialogGroupScheduling::updateItem()
void KOPrefsDialogGroupScheduling::updateInput()
{
- QListViewItem *item;
+ TQListViewItem *item;
item = mAMails->selectedItem();
if (!item) return;
aEmailsEdit->setEnabled(true);
@@ -976,7 +976,7 @@ void KOPrefsDialogGroupScheduling::updateInput()
extern "C"
{
- KCModule *create_korganizerconfiggroupscheduling( QWidget *parent,
+ KCModule *create_korganizerconfiggroupscheduling( TQWidget *parent,
const char * )
{
return new KOPrefsDialogGroupScheduling( parent,
@@ -985,12 +985,12 @@ extern "C"
}
-KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling( QWidget *parent, const char *name )
+KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling( TQWidget *parent, const char *name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
mGroupwarePage = new KOGroupwarePrefsPage( this );
- connect( mGroupwarePage, SIGNAL( changed() ), SLOT( slotWidChanged() ) );
- ( new QVBoxLayout( this ) )->addWidget( mGroupwarePage );
+ connect( mGroupwarePage, TQT_SIGNAL( changed() ), TQT_SLOT( slotWidChanged() ) );
+ ( new TQVBoxLayout( this ) )->addWidget( mGroupwarePage );
load();
}
@@ -1035,7 +1035,7 @@ void KOPrefsDialogGroupwareScheduling::usrWriteConfig()
extern "C"
{
- KCModule *create_korganizerconfigfreebusy( QWidget *parent, const char * )
+ KCModule *create_korganizerconfigfreebusy( TQWidget *parent, const char * )
{
return new KOPrefsDialogGroupwareScheduling( parent,
"kcmkorganizerfreebusy" );
@@ -1044,10 +1044,10 @@ extern "C"
-class PluginItem : public QCheckListItem {
+class PluginItem : public TQCheckListItem {
public:
- PluginItem( QListView *parent, KService::Ptr service ) :
- QCheckListItem( parent, service->name(), QCheckListItem::CheckBox ), mService( service )
+ PluginItem( TQListView *parent, KService::Ptr service ) :
+ TQCheckListItem( parent, service->name(), TQCheckListItem::CheckBox ), mService( service )
{}
KService::Ptr service() { return mService; }
private:
@@ -1058,47 +1058,47 @@ class PluginItem : public QCheckListItem {
/**
Dialog for selecting and configuring KOrganizer plugins
*/
-KOPrefsDialogPlugins::KOPrefsDialogPlugins( QWidget *parent, const char* name )
+KOPrefsDialogPlugins::KOPrefsDialogPlugins( TQWidget *parent, const char* name )
: KPrefsModule( KOPrefs::instance(), parent, name )
{
- QBoxLayout *topTopLayout = new QVBoxLayout( this );
+ TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
- QWidget *topFrame = new QWidget( this );
+ TQWidget *topFrame = new TQWidget( this );
topTopLayout->addWidget( topFrame );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
topLayout->setSpacing( KDialog::spacingHint() );
- mListView = new QListView( topFrame );
+ mListView = new TQListView( topFrame );
mListView->addColumn( i18n("Name") );
- mListView->setResizeMode( QListView::LastColumn );
+ mListView->setResizeMode( TQListView::LastColumn );
topLayout->addWidget( mListView );
- mDescription = new QLabel( topFrame );
- mDescription->setAlignment( QLabel::NoAccel | QLabel::WordBreak | QLabel::AlignVCenter );
- mDescription->setFrameShape( QLabel::Panel );
- mDescription->setFrameShadow( QLabel::Sunken );
- mDescription->setMinimumSize( QSize( 0, 55 ) );
+ mDescription = new TQLabel( topFrame );
+ mDescription->setAlignment( TQLabel::NoAccel | TQLabel::WordBreak | TQLabel::AlignVCenter );
+ mDescription->setFrameShape( TQLabel::Panel );
+ mDescription->setFrameShadow( TQLabel::Sunken );
+ mDescription->setMinimumSize( TQSize( 0, 55 ) );
mDescription->setSizePolicy(
- QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0,
+ TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0,
0, 0, mDescription->sizePolicy().hasHeightForWidth() ) );
topLayout->addWidget( mDescription );
- QWidget *buttonRow = new QWidget( topFrame );
- QBoxLayout *buttonRowLayout = new QHBoxLayout( buttonRow );
+ TQWidget *buttonRow = new TQWidget( topFrame );
+ TQBoxLayout *buttonRowLayout = new TQHBoxLayout( buttonRow );
mConfigureButton = new KPushButton( KGuiItem( i18n("Configure &Plugin..."),
- "configure", QString::null, i18n("This button allows you to configure"
+ "configure", TQString::null, i18n("This button allows you to configure"
" the plugin that you have selected in the list above") ), buttonRow );
buttonRowLayout->addWidget( mConfigureButton );
- buttonRowLayout->addItem( new QSpacerItem(1, 1, QSizePolicy::Expanding) );
+ buttonRowLayout->addItem( new TQSpacerItem(1, 1, TQSizePolicy::Expanding) );
topLayout->addWidget( buttonRow );
- connect( mConfigureButton, SIGNAL( clicked() ), SLOT( configure() ) );
+ connect( mConfigureButton, TQT_SIGNAL( clicked() ), TQT_SLOT( configure() ) );
- connect( mListView, SIGNAL( selectionChanged( QListViewItem* ) ),
- SLOT( selectionChanged( QListViewItem* ) ) );
- connect( mListView, SIGNAL( clicked( QListViewItem* ) ),
- SLOT( slotWidChanged() ) );
+ connect( mListView, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ TQT_SLOT( selectionChanged( TQListViewItem* ) ) );
+ connect( mListView, TQT_SIGNAL( clicked( TQListViewItem* ) ),
+ TQT_SLOT( slotWidChanged() ) );
load();
// usrReadConfig();
@@ -1111,11 +1111,11 @@ void KOPrefsDialogPlugins::usrReadConfig()
KTrader::OfferList plugins = KOCore::self()->availablePlugins();
plugins += KOCore::self()->availableParts();
- QStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins;
+ TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins;
KTrader::OfferList::ConstIterator it;
for( it = plugins.begin(); it != plugins.end(); ++it ) {
- QCheckListItem *item = new PluginItem( mListView, *it );
+ TQCheckListItem *item = new PluginItem( mListView, *it );
if ( selectedPlugins.find( (*it)->desktopEntryName() ) !=
selectedPlugins.end() ) {
item->setOn( true );
@@ -1125,7 +1125,7 @@ void KOPrefsDialogPlugins::usrReadConfig()
void KOPrefsDialogPlugins::usrWriteConfig()
{
- QStringList selectedPlugins;
+ TQStringList selectedPlugins;
PluginItem *item = static_cast<PluginItem *>( mListView->firstChild() );
while( item ) {
@@ -1153,16 +1153,16 @@ void KOPrefsDialogPlugins::configure()
}
}
-void KOPrefsDialogPlugins::selectionChanged( QListViewItem *i )
+void KOPrefsDialogPlugins::selectionChanged( TQListViewItem *i )
{
PluginItem *item = dynamic_cast<PluginItem*>( i );
if ( !item ) {
mConfigureButton->setEnabled( false );
- mDescription->setText( QString::null );
+ mDescription->setText( TQString::null );
return;
}
- QVariant variant = item->service()->property( "X-KDE-KOrganizer-HasSettings" );
+ TQVariant variant = item->service()->property( "X-KDE-KOrganizer-HasSettings" );
bool hasSettings = true;
if ( variant.isValid() )
@@ -1176,7 +1176,7 @@ void KOPrefsDialogPlugins::selectionChanged( QListViewItem *i )
extern "C"
{
- KCModule *create_korganizerconfigplugins( QWidget *parent, const char * )
+ KCModule *create_korganizerconfigplugins( TQWidget *parent, const char * )
{
return new KOPrefsDialogPlugins( parent,
"kcmkorganizerplugins" );
@@ -1186,40 +1186,40 @@ extern "C"
extern "C"
{
- KCModule *create_korgdesignerfields( QWidget *parent, const char * ) {
+ KCModule *create_korgdesignerfields( TQWidget *parent, const char * ) {
return new KOPrefsDesignerFields( parent, "kcmkorgdesignerfields" );
}
}
-KOPrefsDesignerFields::KOPrefsDesignerFields( QWidget *parent, const char *name )
+KOPrefsDesignerFields::KOPrefsDesignerFields( TQWidget *parent, const char *name )
: KCMDesignerFields( parent, name )
{
}
-QString KOPrefsDesignerFields::localUiDir()
+TQString KOPrefsDesignerFields::localUiDir()
{
- QString dir = locateLocal( "data", "korganizer/designer/event/");
+ TQString dir = locateLocal( "data", "korganizer/designer/event/");
kdDebug() << "KOPrefsDesignerFields::localUiDir(): " << dir << endl;
return dir;
}
-QString KOPrefsDesignerFields::uiPath()
+TQString KOPrefsDesignerFields::uiPath()
{
return "korganizer/designer/event/";
}
-void KOPrefsDesignerFields::writeActivePages( const QStringList &activePages )
+void KOPrefsDesignerFields::writeActivePages( const TQStringList &activePages )
{
KOPrefs::instance()->setActiveDesignerFields( activePages );
KOPrefs::instance()->writeConfig();
}
-QStringList KOPrefsDesignerFields::readActivePages()
+TQStringList KOPrefsDesignerFields::readActivePages()
{
return KOPrefs::instance()->activeDesignerFields();
}
-QString KOPrefsDesignerFields::applicationName()
+TQString KOPrefsDesignerFields::applicationName()
{
return "KORGANIZER";
}