diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmfolderdia.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kmail/kmfolderdia.cpp')
-rw-r--r-- | kmail/kmfolderdia.cpp | 204 |
1 files changed, 102 insertions, 102 deletions
diff --git a/kmail/kmfolderdia.cpp b/kmail/kmfolderdia.cpp index 2e4044ab0..cf02fcddf 100644 --- a/kmail/kmfolderdia.cpp +++ b/kmail/kmfolderdia.cpp @@ -59,19 +59,19 @@ #include <klistview.h> #include <kpushbutton.h> -#include <qcheckbox.h> -#include <qlayout.h> -#include <qgroupbox.h> -#include <qregexp.h> -#include <qlabel.h> -#include <qvbox.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqgroupbox.h> +#include <tqregexp.h> +#include <tqlabel.h> +#include <tqvbox.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include <assert.h> -#include <qhbuttongroup.h> -#include <qradiobutton.h> -#include <qtextedit.h> +#include <tqhbuttongroup.h> +#include <tqradiobutton.h> +#include <tqtextedit.h> #include "templatesconfiguration.h" #include "templatesconfiguration_kfg.h" @@ -80,12 +80,12 @@ using namespace KMail; -static QString inCaseWeDecideToRenameTheTab( I18N_NOOP( "Permissions (ACL)" ) ); +static TQString inCaseWeDecideToRenameTheTab( I18N_NOOP( "Permissions (ACL)" ) ); //----------------------------------------------------------------------------- KMFolderDialog::KMFolderDialog(KMFolder *aFolder, KMFolderDir *aFolderDir, - KMFolderTree* aParent, const QString& aCap, - const QString& aName): + KMFolderTree* aParent, const TQString& aCap, + const TQString& aName): KDialogBase( KDialogBase::Tabbed, aCap, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, aParent, "KMFolderDialog", TRUE ), @@ -97,8 +97,8 @@ KMFolderDialog::KMFolderDialog(KMFolder *aFolder, KMFolderDir *aFolderDir, { kdDebug(5006)<<"KMFolderDialog::KMFolderDialog()" << endl; - QStringList folderNames; - QValueList<QGuardedPtr<KMFolder> > folders; + TQStringList folderNames; + TQValueList<TQGuardedPtr<KMFolder> > folders; // get all folders but search and folders that can not have children aParent->createFolderList(&folderNames, &folders, true, true, true, false, true, false); @@ -116,7 +116,7 @@ KMFolderDialog::KMFolderDialog(KMFolder *aFolder, KMFolderDir *aFolderDir, } FolderDiaTab* tab; - QVBox* box; + TQVBox* box; box = addVBoxPage( i18n("General") ); tab = new FolderDiaGeneralTab( this, aName, box ); @@ -149,12 +149,12 @@ KMFolderDialog::KMFolderDialog(KMFolder *aFolder, KMFolderDir *aFolderDir, void KMFolderDialog::addTab( FolderDiaTab* tab ) { - connect( tab, SIGNAL( readyForAccept() ), - this, SLOT( slotReadyForAccept() ) ); - connect( tab, SIGNAL( cancelAccept() ), - this, SLOT( slotCancelAccept() ) ); - //connect( tab, SIGNAL(changed( bool )), - // this, SLOT(slotChanged( bool )) ); + connect( tab, TQT_SIGNAL( readyForAccept() ), + this, TQT_SLOT( slotReadyForAccept() ) ); + connect( tab, TQT_SIGNAL( cancelAccept() ), + this, TQT_SLOT( slotCancelAccept() ) ); + //connect( tab, TQT_SIGNAL(changed( bool )), + // this, TQT_SLOT(slotChanged( bool )) ); mTabs.append( tab ); } @@ -233,20 +233,20 @@ void KMFolderDialog::setFolder( KMFolder* folder ) mFolder = folder; } -static void addLine( QWidget *parent, QVBoxLayout* layout ) +static void addLine( TQWidget *parent, TQVBoxLayout* layout ) { - QFrame *line = new QFrame( parent, "line" ); - line->setGeometry( QRect( 80, 150, 250, 20 ) ); - line->setFrameShape( QFrame::HLine ); - line->setFrameShadow( QFrame::Sunken ); - line->setFrameShape( QFrame::HLine ); + TQFrame *line = new TQFrame( parent, "line" ); + line->setGeometry( TQRect( 80, 150, 250, 20 ) ); + line->setFrameShape( TQFrame::HLine ); + line->setFrameShadow( TQFrame::Sunken ); + line->setFrameShape( TQFrame::HLine ); layout->addWidget( line ); } //---------------------------------------------------------------------------- KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, - const QString& aName, - QWidget* parent, const char* name ) + const TQString& aName, + TQWidget* parent, const char* name ) : FolderDiaTab( parent, name ), mDlg( dlg ) { @@ -255,17 +255,17 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, mDlg->folder()->folderType() != KMFolderTypeImap && mDlg->folder()->folderType() != KMFolderTypeCachedImap; - QLabel *label; + TQLabel *label; - QVBoxLayout *topLayout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); // Musn't be able to edit details for a system folder. if ( !mIsLocalSystemFolder ) { - QHBoxLayout *hl = new QHBoxLayout( topLayout ); + TQHBoxLayout *hl = new TQHBoxLayout( topLayout ); hl->setSpacing( KDialog::spacingHint() ); - label = new QLabel( i18n("&Name:"), this ); + label = new TQLabel( i18n("&Name:"), this ); hl->addWidget( label ); mNameEdit = new KLineEdit( this ); @@ -277,7 +277,7 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, mNameEdit->setMinimumSize(mNameEdit->sizeHint()); // prevent renaming of IMAP inbox if ( mDlg->folder() && mDlg->folder()->isSystemFolder() ) { - QString imapPath; + TQString imapPath; if ( mDlg->folder()->folderType() == KMFolderTypeImap ) imapPath = static_cast<KMFolderImap*>( mDlg->folder()->storage() )->imapPath(); if ( mDlg->folder()->folderType() == KMFolderTypeCachedImap ) @@ -287,21 +287,21 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, } label->setBuddy( mNameEdit ); hl->addWidget( mNameEdit ); - connect( mNameEdit, SIGNAL( textChanged( const QString & ) ), - this, SLOT( slotFolderNameChanged( const QString & ) ) ); + connect( mNameEdit, TQT_SIGNAL( textChanged( const TQString & ) ), + this, TQT_SLOT( slotFolderNameChanged( const TQString & ) ) ); //start icons group - QVBoxLayout *ivl = new QVBoxLayout( topLayout ); + TQVBoxLayout *ivl = new TQVBoxLayout( topLayout ); ivl->setSpacing( KDialog::spacingHint() ); - QHBoxLayout *ihl = new QHBoxLayout( ivl ); - mIconsCheckBox = new QCheckBox( i18n("Use custom &icons"), this ); + TQHBoxLayout *ihl = new TQHBoxLayout( ivl ); + mIconsCheckBox = new TQCheckBox( i18n("Use custom &icons"), this ); mIconsCheckBox->setChecked( false ); ihl->addWidget( mIconsCheckBox ); ihl->addStretch( 2 ); - mNormalIconLabel = new QLabel( i18n("&Normal:"), this ); + mNormalIconLabel = new TQLabel( i18n("&Normal:"), this ); mNormalIconLabel->setEnabled( false ); ihl->addWidget( mNormalIconLabel ); @@ -316,7 +316,7 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, mNormalIconButton->setEnabled( false ); ihl->addWidget( mNormalIconButton ); - mUnreadIconLabel = new QLabel( i18n("&Unread:"), this ); + mUnreadIconLabel = new TQLabel( i18n("&Unread:"), this ); mUnreadIconLabel->setEnabled( false ); ihl->addWidget( mUnreadIconLabel ); @@ -332,17 +332,17 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, ihl->addWidget( mUnreadIconButton ); ihl->addStretch( 1 ); - connect( mIconsCheckBox, SIGNAL(toggled(bool)), - mNormalIconButton, SLOT(setEnabled(bool)) ); - connect( mIconsCheckBox, SIGNAL(toggled(bool)), - mUnreadIconButton, SLOT(setEnabled(bool)) ); - connect( mIconsCheckBox, SIGNAL(toggled(bool)), - mNormalIconLabel, SLOT(setEnabled(bool)) ); - connect( mIconsCheckBox, SIGNAL(toggled(bool)), - mUnreadIconLabel, SLOT(setEnabled(bool)) ); + connect( mIconsCheckBox, TQT_SIGNAL(toggled(bool)), + mNormalIconButton, TQT_SLOT(setEnabled(bool)) ); + connect( mIconsCheckBox, TQT_SIGNAL(toggled(bool)), + mUnreadIconButton, TQT_SLOT(setEnabled(bool)) ); + connect( mIconsCheckBox, TQT_SIGNAL(toggled(bool)), + mNormalIconLabel, TQT_SLOT(setEnabled(bool)) ); + connect( mIconsCheckBox, TQT_SIGNAL(toggled(bool)), + mUnreadIconLabel, TQT_SLOT(setEnabled(bool)) ); - connect( mNormalIconButton, SIGNAL(iconChanged(QString)), - this, SLOT(slotChangeIcon(QString)) ); + connect( mNormalIconButton, TQT_SIGNAL(iconChanged(TQString)), + this, TQT_SLOT(slotChangeIcon(TQString)) ); //end icons group addLine( this, topLayout); @@ -350,11 +350,11 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, // should new mail in this folder be ignored? - QHBoxLayout *hbl = new QHBoxLayout( topLayout ); + TQHBoxLayout *hbl = new TQHBoxLayout( topLayout ); hbl->setSpacing( KDialog::spacingHint() ); mNotifyOnNewMailCheckBox = - new QCheckBox( i18n("Act on new/unread mail in this folder" ), this ); - QWhatsThis::add( mNotifyOnNewMailCheckBox, + new TQCheckBox( i18n("Act on new/unread mail in this folder" ), this ); + TQWhatsThis::add( mNotifyOnNewMailCheckBox, i18n( "<qt><p>If this option is enabled then you will be notified about " "new/unread mail in this folder. Moreover, going to the " "next/previous folder with unread messages will stop at this " @@ -369,9 +369,9 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, if ( mDlg->folder()->folderType() == KMFolderTypeImap ) { // should this folder be included in new-mail-checks? - QHBoxLayout *nml = new QHBoxLayout( topLayout ); + TQHBoxLayout *nml = new TQHBoxLayout( topLayout ); nml->setSpacing( KDialog::spacingHint() ); - mNewMailCheckBox = new QCheckBox( i18n("Include this folder in mail checks"), this ); + mNewMailCheckBox = new TQCheckBox( i18n("Include this folder in mail checks"), this ); // default is on mNewMailCheckBox->setChecked(true); nml->addWidget( mNewMailCheckBox ); @@ -379,11 +379,11 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, } // should replies to mails in this folder be kept in this same folder? - hbl = new QHBoxLayout( topLayout ); + hbl = new TQHBoxLayout( topLayout ); hbl->setSpacing( KDialog::spacingHint() ); mKeepRepliesInSameFolderCheckBox = - new QCheckBox( i18n("Keep replies in this folder" ), this ); - QWhatsThis::add( mKeepRepliesInSameFolderCheckBox, + new TQCheckBox( i18n("Keep replies in this folder" ), this ); + TQWhatsThis::add( mKeepRepliesInSameFolderCheckBox, i18n( "Check this option if you want replies you write " "to mails in this folder to be put in this same folder " "after sending, instead of in the configured sent-mail folder." ) ); @@ -393,25 +393,25 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, addLine( this, topLayout ); // use grid layout for the following combobox settings - QGridLayout *gl = new QGridLayout( topLayout, 3, 2, KDialog::spacingHint() ); + TQGridLayout *gl = new TQGridLayout( topLayout, 3, 2, KDialog::spacingHint() ); gl->setColStretch( 1, 100 ); // make the second column use all available space int row = -1; // sender or receiver column? ++row; - QString tip = i18n("Show Sender/Receiver Column in List of Messages"); + TQString tip = i18n("Show Sender/Receiver Column in List of Messages"); - QLabel *sender_label = new QLabel( i18n("Sho&w column:" ), this ); + TQLabel *sender_label = new TQLabel( i18n("Sho&w column:" ), this ); gl->addWidget( sender_label, row, 0 ); - mShowSenderReceiverComboBox = new QComboBox( this ); - QToolTip::add( mShowSenderReceiverComboBox, tip ); + mShowSenderReceiverComboBox = new TQComboBox( this ); + TQToolTip::add( mShowSenderReceiverComboBox, tip ); sender_label->setBuddy(mShowSenderReceiverComboBox); gl->addWidget( mShowSenderReceiverComboBox, row, 1 ); mShowSenderReceiverComboBox->insertItem(i18n("Default"), 0); mShowSenderReceiverComboBox->insertItem(i18n("Sender"), 1); mShowSenderReceiverComboBox->insertItem(i18n("Receiver"), 2); - QString whoField; + TQString whoField; if (mDlg->folder()) whoField = mDlg->folder()->userWhoField(); if (whoField.isEmpty()) mShowSenderReceiverComboBox->setCurrentItem(0); else if (whoField == "From") mShowSenderReceiverComboBox->setCurrentItem(1); @@ -420,12 +420,12 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, // sender identity ++row; - label = new QLabel( i18n("&Sender identity:"), this ); + label = new TQLabel( i18n("&Sender identity:"), this ); gl->addWidget( label, row, 0 ); mIdentityComboBox = new KPIM::IdentityCombo( kmkernel->identityManager(), this ); label->setBuddy( mIdentityComboBox ); gl->addWidget( mIdentityComboBox, row, 1 ); - QWhatsThis::add( mIdentityComboBox, + TQWhatsThis::add( mIdentityComboBox, i18n( "Select the sender identity to be used when writing new mail " "or replying to mail in this folder. This means that if you are in " "one of your work folders, you can make KMail use the corresponding " @@ -439,9 +439,9 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, // Only do make this settable, if the IMAP resource is enabled // and it's not the personal folders (those must not be changed) ++row; - label = new QLabel( i18n("&Folder contents:"), this ); + label = new TQLabel( i18n("&Folder contents:"), this ); gl->addWidget( label, row, 0 ); - mContentsComboBox = new QComboBox( this ); + mContentsComboBox = new TQComboBox( this ); label->setBuddy( mContentsComboBox ); gl->addWidget( mContentsComboBox, row, 1 ); @@ -453,8 +453,8 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, mContentsComboBox->insertItem( i18n( "Journal" ) ); if ( mDlg->folder() ) mContentsComboBox->setCurrentItem( mDlg->folder()->storage()->contentsType() ); - connect ( mContentsComboBox, SIGNAL ( activated( int ) ), - this, SLOT( slotFolderContentsSelectionChanged( int ) ) ); + connect ( mContentsComboBox, TQT_SIGNAL ( activated( int ) ), + this, TQT_SLOT( slotFolderContentsSelectionChanged( int ) ) ); if ( mDlg->folder()->isReadOnly() ) mContentsComboBox->setEnabled( false ); } else { @@ -472,13 +472,13 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, mContentsComboBox ) { ++row; - QLabel* label = new QLabel( i18n( "Generate free/&busy and activate alarms for:" ), this ); + TQLabel* label = new TQLabel( i18n( "Generate free/&busy and activate alarms for:" ), this ); gl->addWidget( label, row, 0 ); - mIncidencesForComboBox = new QComboBox( this ); + mIncidencesForComboBox = new TQComboBox( this ); label->setBuddy( mIncidencesForComboBox ); gl->addWidget( mIncidencesForComboBox, row, 1 ); - const QString whatsThisForMyOwnFolders = + const TQString whatsThisForMyOwnFolders = i18n( "This setting defines which users sharing " "this folder should get \"busy\" periods in their freebusy lists " "and should see the alarms for the events or tasks in this folder. " @@ -493,20 +493,20 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg, "A company-wide folder with optional events in it would use \"Nobody\" " "since it is not known who will go to those events." ); - QWhatsThis::add( mIncidencesForComboBox, whatsThisForMyOwnFolders ); + TQWhatsThis::add( mIncidencesForComboBox, whatsThisForMyOwnFolders ); mIncidencesForComboBox->insertItem( i18n( "Nobody" ) ); mIncidencesForComboBox->insertItem( i18n( "Admins of This Folder" ) ); mIncidencesForComboBox->insertItem( i18n( "All Readers of This Folder" ) ); ++row; - const QString whatsThisForReadOnlyFolders = + const TQString whatsThisForReadOnlyFolders = i18n( "This setting allows you to disable alarms for folders shared by " "others. "); - mAlarmsBlockedCheckBox = new QCheckBox( this ); + mAlarmsBlockedCheckBox = new TQCheckBox( this ); gl->addWidget( mAlarmsBlockedCheckBox, row, 0 ); - label = new QLabel( i18n( "Block free/&busy and alarms locally" ), this ); + label = new TQLabel( i18n( "Block free/&busy and alarms locally" ), this ); gl->addWidget( label, row, 1 ); label->setBuddy( mAlarmsBlockedCheckBox ); - QWhatsThis::add( mAlarmsBlockedCheckBox, whatsThisForReadOnlyFolders ); + TQWhatsThis::add( mAlarmsBlockedCheckBox, whatsThisForReadOnlyFolders ); if ( mDlg->folder()->storage()->contentsType() != KMail::ContentsTypeCalendar && mDlg->folder()->storage()->contentsType() != KMail::ContentsTypeTask ) { @@ -535,7 +535,7 @@ void FolderDiaGeneralTab::initializeWithValuesFromFolder( KMFolder* folder ) { mNormalIconButton->setEnabled( folder->useCustomIcons() ); mUnreadIconLabel->setEnabled( folder->useCustomIcons() ); mUnreadIconButton->setEnabled( folder->useCustomIcons() ); - QString iconPath = folder->normalIconPath(); + TQString iconPath = folder->normalIconPath(); if ( !iconPath.isEmpty() ) mNormalIconButton->setIcon( iconPath ); iconPath = folder->unreadIconPath(); @@ -571,7 +571,7 @@ void FolderDiaGeneralTab::initializeWithValuesFromFolder( KMFolder* folder ) { } //----------------------------------------------------------------------------- -void FolderDiaGeneralTab::slotFolderNameChanged( const QString& str ) +void FolderDiaGeneralTab::slotFolderNameChanged( const TQString& str ) { mDlg->enableButtonOK( !str.isEmpty() ); } @@ -582,7 +582,7 @@ void FolderDiaGeneralTab::slotFolderContentsSelectionChanged( int ) KMail::FolderContentsType type = static_cast<KMail::FolderContentsType>( mContentsComboBox->currentItem() ); if( type != KMail::ContentsTypeMail && GlobalSettings::self()->hideGroupwareFolders() ) { - QString message = i18n("You have configured this folder to contain groupware information " + TQString message = i18n("You have configured this folder to contain groupware information " "and the general configuration option to hide groupware folders is " "set. That means that this folder will disappear once the configuration " "dialog is closed. If you want to remove the folder again, you will need " @@ -613,10 +613,10 @@ bool FolderDiaGeneralTab::save() folder->setIgnoreNewMail( !mNotifyOnNewMailCheckBox->isChecked() ); folder->setPutRepliesInSameFolder( mKeepRepliesInSameFolderCheckBox->isChecked() ); - QString fldName, oldFldName; + TQString fldName, oldFldName; if ( !mIsLocalSystemFolder ) { - QString acctName; + TQString acctName; oldFldName = mDlg->folder()->name(); if (!mNameEdit->text().isEmpty()) @@ -628,7 +628,7 @@ bool FolderDiaGeneralTab::save() mDlg->parentFolder()->folderType() != KMFolderTypeImap && mDlg->parentFolder()->folderType() != KMFolderTypeCachedImap ) fldName.remove('/'); - fldName.remove(QRegExp("^\\.*")); + fldName.remove(TQRegExp("^\\.*")); if (fldName.isEmpty()) fldName = i18n("unnamed"); @@ -697,14 +697,14 @@ bool FolderDiaGeneralTab::save() return true; } -void FolderDiaGeneralTab::slotChangeIcon( QString icon ) // can't use a const-ref here, due to KIconButton's signal +void FolderDiaGeneralTab::slotChangeIcon( TQString icon ) // can't use a const-ref here, due to KIconButton's signal { mUnreadIconButton->setIcon( icon ); } //---------------------------------------------------------------------------- KMail::FolderDiaTemplatesTab::FolderDiaTemplatesTab( KMFolderDialog* dlg, - QWidget* parent ) + TQWidget* parent ) : FolderDiaTab( parent, 0 ), mDlg( dlg ) { @@ -712,32 +712,32 @@ KMail::FolderDiaTemplatesTab::FolderDiaTemplatesTab( KMFolderDialog* dlg, mDlg->folder()->folderType() != KMFolderTypeImap && mDlg->folder()->folderType() != KMFolderTypeCachedImap; - QVBoxLayout *topLayout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - mCustom = new QCheckBox( i18n("&Use custom message templates"), this ); + mCustom = new TQCheckBox( i18n("&Use custom message templates"), this ); topLayout->addWidget( mCustom ); mWidget = new TemplatesConfiguration( this , "folder-templates" ); mWidget->setEnabled( false ); topLayout->addWidget( mWidget ); - QHBoxLayout *btns = new QHBoxLayout( topLayout, KDialog::spacingHint() ); + TQHBoxLayout *btns = new TQHBoxLayout( topLayout, KDialog::spacingHint() ); mCopyGlobal = new KPushButton( i18n("&Copy global templates"), this ); mCopyGlobal->setEnabled( false ); btns->addWidget( mCopyGlobal ); - connect( mCustom, SIGNAL(toggled(bool)), - mWidget, SLOT(setEnabled(bool)) ); - connect( mCustom, SIGNAL(toggled(bool)), - mCopyGlobal, SLOT(setEnabled(bool)) ); + connect( mCustom, TQT_SIGNAL(toggled(bool)), + mWidget, TQT_SLOT(setEnabled(bool)) ); + connect( mCustom, TQT_SIGNAL(toggled(bool)), + mCopyGlobal, TQT_SLOT(setEnabled(bool)) ); - connect( mCopyGlobal, SIGNAL(clicked()), - this, SLOT(slotCopyGlobal()) ); + connect( mCopyGlobal, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotCopyGlobal()) ); initializeWithValuesFromFolder( mDlg->folder() ); - connect( mWidget, SIGNAL( changed() ), - this, SLOT( slotEmitChanged( void ) ) ); + connect( mWidget, TQT_SIGNAL( changed() ), + this, TQT_SLOT( slotEmitChanged( void ) ) ); } void FolderDiaTemplatesTab::load() @@ -751,7 +751,7 @@ void FolderDiaTemplatesTab::initializeWithValuesFromFolder( KMFolder* folder ) { mFolder = folder; - QString fid = folder->idString(); + TQString fid = folder->idString(); Templates t( fid ); @@ -767,7 +767,7 @@ bool FolderDiaTemplatesTab::save() { KMFolder* folder = mDlg->folder(); - QString fid = folder->idString(); + TQString fid = folder->idString(); Templates t(fid); kdDebug() << "use custom templates for folder " << fid << ": " << mCustom->isChecked() << endl; |