summaryrefslogtreecommitdiffstats
path: root/korganizer/koprefsdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/koprefsdialog.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koprefsdialog.cpp')
-rw-r--r--korganizer/koprefsdialog.cpp96
1 files changed, 48 insertions, 48 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp
index 63b2a347..d074ae91 100644
--- a/korganizer/koprefsdialog.cpp
+++ b/korganizer/koprefsdialog.cpp
@@ -19,8 +19,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <tqlayout.h>
@@ -80,8 +80,8 @@
#include <kdepimmacros.h>
-KOPrefsDialogMain::KOPrefsDialogMain( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+KOPrefsDialogMain::KOPrefsDialogMain( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -138,9 +138,9 @@ void KOPrefsDialogMain::toggleEmailSettings( bool on )
extern "C"
{
- KDE_EXPORT KCModule *create_korganizerconfigmain( TQWidget *parent, const char * )
+ KDE_EXPORT KCModule *create_korganizerconfigmain( TQWidget *tqparent, const char * )
{
- return new KOPrefsDialogMain( parent, "kcmkorganizermain" );
+ return new KOPrefsDialogMain( tqparent, "kcmkorganizermain" );
}
}
@@ -148,8 +148,8 @@ extern "C"
class KOPrefsDialogTime : public KPrefsModule
{
public:
- KOPrefsDialogTime( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+ KOPrefsDialogTime( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -212,7 +212,7 @@ class KOPrefsDialogTime : public KPrefsModule
// Read all system time zones
#if defined(USE_SOLARIS) // MARCO
snprintf(buf, MAXPATHLEN,
- "/bin/find %s \\( -name src -prune \\) -o -type f -print | /bin/cut -b %d-",
+ "/bin/tqfind %s \\( -name src -prune \\) -o -type f -print | /bin/cut -b %d-",
ZONEINFODIR, strlen(ZONEINFODIR) + 2);
if (f = popen(buf, "r"))
@@ -340,7 +340,7 @@ class KOPrefsDialogTime : public KPrefsModule
TQCheckBox *cb = addWidBool( KOPrefs::instance()->defaultAudioFileRemindersItem(),
audioFileRemindersBox )->checkBox();
- cb->setText( TQString::null );
+ cb->setText( TQString() );
if ( KOPrefs::instance()->audioFilePathItem()->value().isEmpty() ) {
TQString defAudioFile = KGlobal::dirs()->findResourceDir( "sound", "KDE-Sys-Warning.ogg");
@@ -436,7 +436,7 @@ class KOPrefsDialogTime : public KPrefsModule
KOPrefs::instance()->mTimeZoneId = mTimeZoneCombo->currentText();
KOPrefs::instance()->mHolidays = ( mHolidayCombo->currentItem() == 0 ) ? // (None)
- TQString::null :
+ TQString() :
mRegionMap[mHolidayCombo->currentText()];
KOPrefs::instance()->mReminderTime = mReminderTimeSpin->value();
@@ -479,10 +479,10 @@ class KOPrefsDialogTime : public KPrefsModule
extern "C"
{
- KCModule *create_korganizerconfigtime( TQWidget *parent, const char * )
+ KCModule *create_korganizerconfigtime( TQWidget *tqparent, const char * )
{
KGlobal::locale()->insertCatalogue( "timezones" );
- return new KOPrefsDialogTime( parent, "kcmkorganizertime" );
+ return new KOPrefsDialogTime( tqparent, "kcmkorganizertime" );
}
}
@@ -490,8 +490,8 @@ extern "C"
class KOPrefsDialogViews : public KPrefsModule
{
public:
- KOPrefsDialogViews( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+ KOPrefsDialogViews( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -579,9 +579,9 @@ class KOPrefsDialogViews : public KPrefsModule
extern "C"
{
- KCModule *create_korganizerconfigviews( TQWidget *parent, const char * )
+ KCModule *create_korganizerconfigviews( TQWidget *tqparent, const char * )
{
- return new KOPrefsDialogViews( parent, "kcmkorganizerviews" );
+ return new KOPrefsDialogViews( tqparent, "kcmkorganizerviews" );
}
}
@@ -589,8 +589,8 @@ extern "C"
class KOPrefsDialogFonts : public KPrefsModule
{
public:
- KOPrefsDialogFonts( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+ KOPrefsDialogFonts( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -639,15 +639,15 @@ class KOPrefsDialogFonts : public KPrefsModule
extern "C"
{
- KCModule *create_korganizerconfigfonts( TQWidget *parent, const char * )
+ KCModule *create_korganizerconfigfonts( TQWidget *tqparent, const char * )
{
- return new KOPrefsDialogFonts( parent, "kcmkorganizerfonts" );
+ return new KOPrefsDialogFonts( tqparent, "kcmkorganizerfonts" );
}
}
-KOPrefsDialogColors::KOPrefsDialogColors( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+KOPrefsDialogColors::KOPrefsDialogColors( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -781,7 +781,7 @@ void KOPrefsDialogColors::setCategoryColor()
void KOPrefsDialogColors::updateCategoryColor()
{
TQString cat = mCategoryCombo->currentText();
- TQColor *color = mCategoryDict.find(cat);
+ TQColor *color = mCategoryDict.tqfind(cat);
if (!color) {
color = KOPrefs::instance()->categoryColor(cat);
}
@@ -832,7 +832,7 @@ void KOPrefsDialogColors::updateResourceColor()
{
kdDebug( 5850 ) << "KOPrefsDialogColors::updateResourceColor()" << endl;
TQString res= mResourceIdentifier[mResourceCombo->currentItem()];
- TQColor *color = mCategoryDict.find(res);
+ TQColor *color = mCategoryDict.tqfind(res);
if( !color ) {
color = KOPrefs::instance()->resourceColor( res );
}
@@ -842,15 +842,15 @@ void KOPrefsDialogColors::updateResourceColor()
}
extern "C"
{
- KCModule *create_korganizerconfigcolors( TQWidget *parent, const char * )
+ KCModule *create_korganizerconfigcolors( TQWidget *tqparent, const char * )
{
- return new KOPrefsDialogColors( parent, "kcmkorganizercolors" );
+ return new KOPrefsDialogColors( tqparent, "kcmkorganizercolors" );
}
}
-KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -1005,17 +1005,17 @@ void KOPrefsDialogGroupScheduling::updateInput()
extern "C"
{
- KCModule *create_korganizerconfiggroupscheduling( TQWidget *parent,
+ KCModule *create_korganizerconfiggroupscheduling( TQWidget *tqparent,
const char * )
{
- return new KOPrefsDialogGroupScheduling( parent,
+ return new KOPrefsDialogGroupScheduling( tqparent,
"kcmkorganizergroupscheduling" );
}
}
-KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling( TQWidget *parent, const char *name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling( TQWidget *tqparent, const char *name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
mGroupwarePage = new KOGroupwarePrefsPage( this );
connect( mGroupwarePage, TQT_SIGNAL( changed() ), TQT_SLOT( slotWidChanged() ) );
@@ -1069,9 +1069,9 @@ void KOPrefsDialogGroupwareScheduling::usrWriteConfig()
extern "C"
{
- KCModule *create_korganizerconfigfreebusy( TQWidget *parent, const char * )
+ KCModule *create_korganizerconfigfreebusy( TQWidget *tqparent, const char * )
{
- return new KOPrefsDialogGroupwareScheduling( parent,
+ return new KOPrefsDialogGroupwareScheduling( tqparent,
"kcmkorganizerfreebusy" );
}
}
@@ -1080,8 +1080,8 @@ extern "C"
class PluginItem : public TQCheckListItem {
public:
- PluginItem( TQListView *parent, KService::Ptr service ) :
- TQCheckListItem( parent, service->name(), TQCheckListItem::CheckBox ), mService( service )
+ PluginItem( TQListView *tqparent, KService::Ptr service ) :
+ TQCheckListItem( tqparent, service->name(), TQCheckListItem::CheckBox ), mService( service )
{}
KService::Ptr service() { return mService; }
private:
@@ -1092,8 +1092,8 @@ class PluginItem : public TQCheckListItem {
/**
Dialog for selecting and configuring KOrganizer plugins
*/
-KOPrefsDialogPlugins::KOPrefsDialogPlugins( TQWidget *parent, const char* name )
- : KPrefsModule( KOPrefs::instance(), parent, name )
+KOPrefsDialogPlugins::KOPrefsDialogPlugins( TQWidget *tqparent, const char* name )
+ : KPrefsModule( KOPrefs::instance(), tqparent, name )
{
TQBoxLayout *topTopLayout = new TQVBoxLayout( this );
@@ -1121,7 +1121,7 @@ KOPrefsDialogPlugins::KOPrefsDialogPlugins( TQWidget *parent, const char* name )
TQWidget *buttonRow = new TQWidget( topFrame );
TQBoxLayout *buttonRowLayout = new TQHBoxLayout( buttonRow );
mConfigureButton = new KPushButton( KGuiItem( i18n("Configure &Plugin..."),
- "configure", TQString::null, i18n("This button allows you to configure"
+ "configure", TQString(), i18n("This button allows you to configure"
" the plugin that you have selected in the list above") ), buttonRow );
buttonRowLayout->addWidget( mConfigureButton );
@@ -1150,7 +1150,7 @@ void KOPrefsDialogPlugins::usrReadConfig()
KTrader::OfferList::ConstIterator it;
for( it = plugins.begin(); it != plugins.end(); ++it ) {
TQCheckListItem *item = new PluginItem( mListView, *it );
- if ( selectedPlugins.find( (*it)->desktopEntryName() ) !=
+ if ( selectedPlugins.tqfind( (*it)->desktopEntryName() ) !=
selectedPlugins.end() ) {
item->setOn( true );
}
@@ -1192,7 +1192,7 @@ void KOPrefsDialogPlugins::selectionChanged( TQListViewItem *i )
PluginItem *item = dynamic_cast<PluginItem*>( i );
if ( !item ) {
mConfigureButton->setEnabled( false );
- mDescription->setText( TQString::null );
+ mDescription->setText( TQString() );
return;
}
@@ -1210,9 +1210,9 @@ void KOPrefsDialogPlugins::selectionChanged( TQListViewItem *i )
extern "C"
{
- KCModule *create_korganizerconfigplugins( TQWidget *parent, const char * )
+ KCModule *create_korganizerconfigplugins( TQWidget *tqparent, const char * )
{
- return new KOPrefsDialogPlugins( parent,
+ return new KOPrefsDialogPlugins( tqparent,
"kcmkorganizerplugins" );
}
}
@@ -1220,13 +1220,13 @@ extern "C"
extern "C"
{
- KCModule *create_korgdesignerfields( TQWidget *parent, const char * ) {
- return new KOPrefsDesignerFields( parent, "kcmkorgdesignerfields" );
+ KCModule *create_korgdesignerfields( TQWidget *tqparent, const char * ) {
+ return new KOPrefsDesignerFields( tqparent, "kcmkorgdesignerfields" );
}
}
-KOPrefsDesignerFields::KOPrefsDesignerFields( TQWidget *parent, const char *name )
- : KCMDesignerFields( parent, name )
+KOPrefsDesignerFields::KOPrefsDesignerFields( TQWidget *tqparent, const char *name )
+ : KCMDesignerFields( tqparent, name )
{
}