diff options
Diffstat (limited to 'kbabel/commonui/projectprefwidgets.cpp')
-rw-r--r-- | kbabel/commonui/projectprefwidgets.cpp | 468 |
1 files changed, 234 insertions, 234 deletions
diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp index 16bc2da4..0357065e 100644 --- a/kbabel/commonui/projectprefwidgets.cpp +++ b/kbabel/commonui/projectprefwidgets.cpp @@ -58,25 +58,25 @@ #include <kurldrag.h> #include <kurlrequester.h> -#include <qlayout.h> -#include <qobjectlist.h> -#include <qlabel.h> -#include <qvbox.h> -#include <qlineedit.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qhbuttongroup.h> -#include <qvbuttongroup.h> -#include <qpushbutton.h> -#include <qcombobox.h> -#include <qradiobutton.h> -#include <qspinbox.h> -#include <qtextcodec.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqobjectlist.h> +#include <tqlabel.h> +#include <tqvbox.h> +#include <tqlineedit.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqhbuttongroup.h> +#include <tqvbuttongroup.h> +#include <tqpushbutton.h> +#include <tqcombobox.h> +#include <tqradiobutton.h> +#include <tqspinbox.h> +#include <tqtextcodec.h> +#include <tqwhatsthis.h> using namespace KBabel; -static QSize sizeHintForWidget(const QWidget* widget) +static TQSize sizeHintForWidget(const TQWidget* widget) { // // The size is computed by adding the sizeHint().height() of all @@ -84,23 +84,23 @@ static QSize sizeHintForWidget(const QWidget* widget) // layout()->margin() and layout()->spacing() // - QSize size; + TQSize size; int numChild = 0; - QObjectList *l = (QObjectList*)(widget->children()); + TQObjectList *l = (TQObjectList*)(widget->children()); for( uint i=0; i < l->count(); i++ ) { - QObject *o = l->at(i); + TQObject *o = l->at(i); if( o->isWidgetType() ) { numChild += 1; - QWidget *w=((QWidget*)o); + TQWidget *w=((TQWidget*)o); - QSize s = w->sizeHint(); + TQSize s = w->sizeHint(); if( s.isEmpty() == true ) { - s = QSize( 50, 100 ); // Default size + s = TQSize( 50, 100 ); // Default size } size.setHeight( size.height() + s.height() ); if( s.width() > size.width() ) { size.setWidth( s.width() ); } @@ -110,11 +110,11 @@ static QSize sizeHintForWidget(const QWidget* widget) if( numChild > 0 ) { size.setHeight( size.height() + widget->layout()->spacing()*(numChild-1) ); - size += QSize( widget->layout()->margin()*2, widget->layout()->margin()*2 + 1 ); + size += TQSize( widget->layout()->margin()*2, widget->layout()->margin()*2 + 1 ); } else { - size = QSize( 1, 1 ); + size = TQSize( 1, 1 ); } return( size ); @@ -123,44 +123,44 @@ static QSize sizeHintForWidget(const QWidget* widget) -SavePreferences::SavePreferences(QWidget *parent) +SavePreferences::SavePreferences(TQWidget *parent) : KTabCtl(parent) { - QWidget* page = new QWidget(this); - QVBoxLayout* layout=new QVBoxLayout(page); + TQWidget* page = new TQWidget(this); + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* box=new QGroupBox(1,Qt::Horizontal,page); + TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); layout->addWidget(box); box->setMargin(KDialog::marginHint()); - _updateButton = new QCheckBox(i18n("&Update header when saving"),box, "kcfg_AutoUpdate"); - _descriptionButton = new QCheckBox(i18n("Update &description comment when saving"),box, "kcfg_UpdateDescription"); - _autoCheckButton = new QCheckBox(i18n("Chec&k syntax of file when saving"),box, "kcfg_AutoSyntaxCheck"); - _saveObsoleteButton = new QCheckBox(i18n("Save &obsolete entries"),box, "kcfg_SaveObsolete"); + _updateButton = new TQCheckBox(i18n("&Update header when saving"),box, "kcfg_AutoUpdate"); + _descriptionButton = new TQCheckBox(i18n("Update &description comment when saving"),box, "kcfg_UpdateDescription"); + _autoCheckButton = new TQCheckBox(i18n("Chec&k syntax of file when saving"),box, "kcfg_AutoSyntaxCheck"); + _saveObsoleteButton = new TQCheckBox(i18n("Save &obsolete entries"),box, "kcfg_SaveObsolete"); - QGroupBox* descBox=new QGroupBox(1,Qt::Horizontal,i18n("De&scription"),page); + TQGroupBox* descBox=new TQGroupBox(1,Qt::Horizontal,i18n("De&scription"),page); layout->addWidget(descBox); descBox->setMargin(KDialog::marginHint()); - _descriptionEdit = new QLineEdit(descBox, "kcfg_DescriptionString"); + _descriptionEdit = new TQLineEdit(descBox, "kcfg_DescriptionString"); - QGroupBox* encodingBox = new QGroupBox(1,Qt::Horizontal,i18n("Encoding") + TQGroupBox* encodingBox = new TQGroupBox(1,Qt::Horizontal,i18n("Encoding") ,page); encodingBox->setMargin(KDialog::marginHint()); layout->addWidget(encodingBox); - QHBox *b = new QHBox(encodingBox); + TQHBox *b = new TQHBox(encodingBox); - QLabel* tempLabel=new QLabel(i18n("Default:"),b); - _encodingBox = new QComboBox(b, "kcfg_Encoding"); + TQLabel* tempLabel=new TQLabel(i18n("Default:"),b); + _encodingBox = new TQComboBox(b, "kcfg_Encoding"); b->setStretchFactor(_encodingBox,2); b->setSpacing(KDialog::spacingHint()); - QString defaultName=charsetString(ProjectSettingsBase::Locale); + TQString defaultName=charsetString(ProjectSettingsBase::Locale); defaultName+=" "+i18n("(default)"); - QString utf8Name=charsetString(ProjectSettingsBase::UTF8); - QString utf16Name=charsetString(ProjectSettingsBase::UTF16); + TQString utf8Name=charsetString(ProjectSettingsBase::UTF8); + TQString utf16Name=charsetString(ProjectSettingsBase::UTF16); _encodingBox->insertItem(defaultName,(int)ProjectSettingsBase::Locale); _encodingBox->insertItem(utf8Name,(int)ProjectSettingsBase::UTF8); @@ -172,10 +172,10 @@ SavePreferences::SavePreferences(QWidget *parent) tempLabel->setBuddy(_encodingBox); - _oldEncodingButton = new QCheckBox(i18n("Kee&p the encoding of the file") + _oldEncodingButton = new TQCheckBox(i18n("Kee&p the encoding of the file") ,encodingBox, "kcfg_UseOldEncoding"); - _autoSaveBox = new QGroupBox( 1, Qt::Horizontal, i18n( "Automatic Saving" ), page ); + _autoSaveBox = new TQGroupBox( 1, Qt::Horizontal, i18n( "Automatic Saving" ), page ); _autoSaveBox->setMargin( KDialog::marginHint( ) ); layout->addWidget( _autoSaveBox ); _autoSaveDelay = new KIntNumInput( _autoSaveBox, "kcfg_AutoSaveDelay" ); @@ -187,49 +187,49 @@ SavePreferences::SavePreferences(QWidget *parent) page->setMinimumSize(sizeHintForWidget(page)); addTab(page, i18n("&General")); - page = new QWidget(this); - layout=new QVBoxLayout(page); + page = new TQWidget(this); + layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* gridBox = new QGroupBox(2,Qt::Horizontal,i18n("Fields to Update"),page); + TQGroupBox* gridBox = new TQGroupBox(2,Qt::Horizontal,i18n("Fields to Update"),page); layout->addWidget(gridBox); gridBox->setMargin(KDialog::marginHint()); - _revisionButton = new QCheckBox(i18n("Re&vision-Date"),gridBox, "kcfg_UpdateRevisionDate"); - _lastButton = new QCheckBox(i18n("Last-&Translator"),gridBox, "kcfg_UpdateLastTranslator"); - _languageButton = new QCheckBox(i18n("&Language"),gridBox, "kcfg_UpdateLanguageTeam"); - _charsetButton = new QCheckBox(i18n("Char&set"),gridBox, "kcfg_UpdateCharset"); - _encodingButton = new QCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding"); - _projectButton = new QCheckBox(i18n("Pro&ject"),gridBox, "kcfg_UpdateProject"); + _revisionButton = new TQCheckBox(i18n("Re&vision-Date"),gridBox, "kcfg_UpdateRevisionDate"); + _lastButton = new TQCheckBox(i18n("Last-&Translator"),gridBox, "kcfg_UpdateLastTranslator"); + _languageButton = new TQCheckBox(i18n("&Language"),gridBox, "kcfg_UpdateLanguageTeam"); + _charsetButton = new TQCheckBox(i18n("Char&set"),gridBox, "kcfg_UpdateCharset"); + _encodingButton = new TQCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding"); + _projectButton = new TQCheckBox(i18n("Pro&ject"),gridBox, "kcfg_UpdateProject"); - QButtonGroup* dateBox = new QButtonGroup(2,Qt::Horizontal,i18n("Format of Revision-Date"),page, "kcfg_DateFormat"); + TQButtonGroup* dateBox = new TQButtonGroup(2,Qt::Horizontal,i18n("Format of Revision-Date"),page, "kcfg_DateFormat"); layout->addWidget(dateBox); box->setMargin(KDialog::marginHint()); // we remove/insert default date button to correctly map Qt::DateFormat to our Ids - _defaultDateButton = new QRadioButton( i18n("De&fault date format"),dateBox ); + _defaultDateButton = new TQRadioButton( i18n("De&fault date format"),dateBox ); dateBox->remove (_defaultDateButton); - _localDateButton = new QRadioButton( i18n("Local date fo&rmat"),dateBox ); + _localDateButton = new TQRadioButton( i18n("Local date fo&rmat"),dateBox ); dateBox->remove (_localDateButton); - _customDateButton = new QRadioButton( i18n("Custo&m date format:"),dateBox ); + _customDateButton = new TQRadioButton( i18n("Custo&m date format:"),dateBox ); dateBox->insert (_defaultDateButton); dateBox->insert (_localDateButton); - _dateFormatEdit = new QLineEdit(dateBox, "kcfg_CustomDateFormat"); + _dateFormatEdit = new TQLineEdit(dateBox, "kcfg_CustomDateFormat"); _dateFormatEdit->setEnabled(false); - connect( _customDateButton, SIGNAL(toggled(bool)), this, SLOT( customDateActivated(bool) ) ); + connect( _customDateButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT( customDateActivated(bool) ) ); - QGroupBox* projectBox = new QGroupBox(1,Qt::Horizontal,i18n("Project String") + TQGroupBox* projectBox = new TQGroupBox(1,Qt::Horizontal,i18n("Project String") ,page); projectBox->setMargin(KDialog::marginHint()); layout->addWidget(projectBox); - b = new QHBox(projectBox); + b = new TQHBox(projectBox); - tempLabel=new QLabel(i18n("Project-Id:"),b); - _projectEdit = new QLineEdit(b, "kcfg_ProjectString"); + tempLabel=new TQLabel(i18n("Project-Id:"),b); + _projectEdit = new TQLineEdit(b, "kcfg_ProjectString"); b->setStretchFactor(_projectEdit,2); b->setSpacing(KDialog::spacingHint()); tempLabel->setBuddy(_projectEdit); @@ -238,31 +238,31 @@ SavePreferences::SavePreferences(QWidget *parent) page->setMinimumSize(sizeHintForWidget(page)); addTab(page, i18n("&Header")); - page = new QWidget(this); - layout=new QVBoxLayout(page); + page = new TQWidget(this); + layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* translatorCopyrightBox = new QGroupBox(1,Qt::Horizontal, page); + TQGroupBox* translatorCopyrightBox = new TQGroupBox(1,Qt::Horizontal, page); translatorCopyrightBox->setMargin(KDialog::marginHint()); _translatorCopyrightButton = - new QCheckBox(i18n("Update &translator copyright") + new TQCheckBox(i18n("Update &translator copyright") ,translatorCopyrightBox, "kcfg_UpdateTranslatorCopyright"); layout->addWidget(translatorCopyrightBox); - QGroupBox* fsfBox=new QButtonGroup(1,Qt::Horizontal,i18n("Free Software Foundation Copyright"),page, "kcfg_FSFCopyright"); + TQGroupBox* fsfBox=new TQButtonGroup(1,Qt::Horizontal,i18n("Free Software Foundation Copyright"),page, "kcfg_FSFCopyright"); layout->addWidget(fsfBox); fsfBox->setMargin(KDialog::marginHint()); - _removeFSFButton = new QRadioButton(i18n("&Remove copyright if empty"),fsfBox); - _updateFSFButton = new QRadioButton(i18n("&Update copyright"),fsfBox); - _nochangeFSFButton = new QRadioButton(i18n("Do ¬ change"),fsfBox); + _removeFSFButton = new TQRadioButton(i18n("&Remove copyright if empty"),fsfBox); + _updateFSFButton = new TQRadioButton(i18n("&Update copyright"),fsfBox); + _nochangeFSFButton = new TQRadioButton(i18n("Do ¬ change"),fsfBox); layout->addStretch(1); page->setMinimumSize(sizeHintForWidget(page)); addTab(page, i18n("Cop&yright")); - QWhatsThis::add(_updateButton, + TQWhatsThis::add(_updateButton, i18n("<qt><p><b>Update Header</b></p>\n" "<p>Check this button to update the header " "information of the file " @@ -275,7 +275,7 @@ SavePreferences::SavePreferences(QWidget *parent) "If you want to add additional fields to the header, you can edit the header manually by choosing\n" "<b>Edit->Edit Header</b> in the editor window.</p></qt>")); - QWhatsThis::add(gridBox,i18n("<qt><p><b>Fields to update</b></p>\n" + TQWhatsThis::add(gridBox,i18n("<qt><p><b>Fields to update</b></p>\n" "<p>Choose which fields in the header you want to have updated when saving.\n" "If a field does not exist, it is appended to the header.</p>\n" "<p>If you want to add other information to the header, you have to edit the header manually\n" @@ -283,7 +283,7 @@ SavePreferences::SavePreferences(QWidget *parent) "<p>Deactivate <b>Update Header</b> above if you do not want to have the header\n" "updated when saving.</p></qt>")); - QWhatsThis::add(encodingBox,i18n("<qt><p><b>Encoding</b></p>" + TQWhatsThis::add(encodingBox,i18n("<qt><p><b>Encoding</b></p>" "<p>Choose how to encode characters when saving to a file. If you are unsure " "what encoding to use, please ask your translation coordinator.</p>" "<ul><li><b>%1</b>: this is the encoding that fits the character " @@ -292,18 +292,18 @@ SavePreferences::SavePreferences(QWidget *parent) "</ul></qt>").arg(defaultName).arg(utf8Name) ); - QWhatsThis::add(_oldEncodingButton + TQWhatsThis::add(_oldEncodingButton ,i18n("<qt><p><b>Keep the encoding of the file</b></p>" "<p>If this option is activated, files are always saved in the " "same encoding as they were read in. Files without charset " "information in the header (e.g. POT files) are saved in the " "encoding set above.</p></qt>")); - QWhatsThis::add(_autoCheckButton,i18n("<qt><p><b>Check syntax of file when saving</b></p>\n" + TQWhatsThis::add(_autoCheckButton,i18n("<qt><p><b>Check syntax of file when saving</b></p>\n" "<p>Check this to automatically check syntax of file with \"msgfmt --statistics\"\n" "when saving a file. You will only get a message, if an error occurred.</p></qt>")); - QWhatsThis::add(_saveObsoleteButton,i18n("<qt><p><b>Save obsolete entries</b></p>\n" + TQWhatsThis::add(_saveObsoleteButton,i18n("<qt><p><b>Save obsolete entries</b></p>\n" "<p>If this option is activated, obsolete entries found when the file was open\n" "will be saved back to the file. Obsolete entries are marked by #~ and are\n" "created when the msgmerge does not need the translation anymore.\n" @@ -311,7 +311,7 @@ SavePreferences::SavePreferences(QWidget *parent) "The main drawback is the size of the saved file.</p></qt>")); - QWhatsThis::add(dateBox, i18n("<qt><p><b>Format of Revision-Date</b></p>" + TQWhatsThis::add(dateBox, i18n("<qt><p><b>Format of Revision-Date</b></p>" "<p>Choose in which format the date and time of the header field\n" "<i>PO-Revision-Date</i> is saved: <ul>\n" "<li><b>Default</b> is the format normally used in PO files.</li>\n" @@ -398,92 +398,92 @@ void SavePreferences::setAutoSaveVisible( const bool on ) -IdentityPreferences::IdentityPreferences(QWidget* parent, const QString& project) - : QWidget(parent) +IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& project) + : TQWidget(parent) { - QWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQWidget* page = this; + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); if( !project.isEmpty() ) { // show the project name in the widget at the top - layout->addWidget(new QLabel(i18n("<font size=\"+1\">Project: %1</font>").arg(project),page)); + layout->addWidget(new TQLabel(i18n("<font size=\"+1\">Project: %1</font>").arg(project),page)); } - QGroupBox* group = new QGroupBox(2,Qt::Horizontal,page); + TQGroupBox* group = new TQGroupBox(2,Qt::Horizontal,page); layout->addWidget(group); group->setMargin(KDialog::marginHint()); - QLabel* tempLabel=new QLabel(i18n("&Name:"),group); - _nameEdit = new QLineEdit(group, "kcfg_AuthorName"); + TQLabel* tempLabel=new TQLabel(i18n("&Name:"),group); + _nameEdit = new TQLineEdit(group, "kcfg_AuthorName"); tempLabel->setBuddy(_nameEdit); - tempLabel=new QLabel(i18n("Localized na&me:"),group); - _localNameEdit = new QLineEdit(group, "kcfg_LocalAuthorName"); + tempLabel=new TQLabel(i18n("Localized na&me:"),group); + _localNameEdit = new TQLineEdit(group, "kcfg_LocalAuthorName"); tempLabel->setBuddy(_localNameEdit); - tempLabel=new QLabel(i18n("E&mail:"),group); - _mailEdit = new QLineEdit(group, "kcfg_AuthorEmail"); + tempLabel=new TQLabel(i18n("E&mail:"),group); + _mailEdit = new TQLineEdit(group, "kcfg_AuthorEmail"); tempLabel->setBuddy(_mailEdit); - tempLabel=new QLabel(i18n("&Full language name:"),group); + tempLabel=new TQLabel(i18n("&Full language name:"),group); - QHBox *hbox = new QHBox(group); + TQHBox *hbox = new TQHBox(group); hbox->setSpacing(KDialog::spacingHint()); - _langEdit = new QLineEdit(hbox, "kcfg_Language"); + _langEdit = new TQLineEdit(hbox, "kcfg_Language"); tempLabel->setBuddy(_langEdit); - tempLabel=new QLabel(i18n("Lan&guage code:"),hbox); - _langCodeEdit = new QLineEdit(hbox, "kcfg_LanguageCode"); + tempLabel=new TQLabel(i18n("Lan&guage code:"),hbox); + _langCodeEdit = new TQLineEdit(hbox, "kcfg_LanguageCode"); tempLabel->setBuddy(_langCodeEdit); - connect(_langCodeEdit,SIGNAL(textChanged(const QString&)), this - , SLOT(checkTestPluralButton())); + connect(_langCodeEdit,TQT_SIGNAL(textChanged(const TQString&)), this + , TQT_SLOT(checkTestPluralButton())); - tempLabel=new QLabel(i18n("&Language mailing list:"),group); - _listEdit = new QLineEdit(group, "kcfg_Mailinglist"); + tempLabel=new TQLabel(i18n("&Language mailing list:"),group); + _listEdit = new TQLineEdit(group, "kcfg_Mailinglist"); _listEdit->setMinimumSize(100,_listEdit->sizeHint().height()); tempLabel->setBuddy(_listEdit); - tempLabel=new QLabel(i18n("&Timezone:"), group); - _timezoneEdit = new QLineEdit(group, "kcfg_Timezone"); + tempLabel=new TQLabel(i18n("&Timezone:"), group); + _timezoneEdit = new TQLineEdit(group, "kcfg_Timezone"); _timezoneEdit->setMinimumSize(100,_timezoneEdit->sizeHint().height()); tempLabel->setBuddy(_timezoneEdit); - QString whatsThisMsg=i18n("<qt><p><b>Identity</b></p>\n" + TQString whatsThisMsg=i18n("<qt><p><b>Identity</b></p>\n" "<p>Fill in information about you and your translation team.\n" "This information is used when updating the header of a file.</p>\n" "<p>You can find the options if and what fields in the header should be updated\n" "on page <b>Save</b> in this dialog.</p></qt>"); - QWhatsThis::add(group,whatsThisMsg); + TQWhatsThis::add(group,whatsThisMsg); - group = new QGroupBox(1,Qt::Horizontal,page); + group = new TQGroupBox(1,Qt::Horizontal,page); layout->addWidget(group); group->setMargin(KDialog::marginHint()); - hbox = new QHBox(group); + hbox = new TQHBox(group); hbox->setSpacing(KDialog::spacingHint()); - QLabel *label = new QLabel(i18n("&Number of singular/plural forms:"), hbox); - _pluralFormsBox = new QSpinBox(0,100,1,hbox, "kcfg_PluralForms"); + TQLabel *label = new TQLabel(i18n("&Number of singular/plural forms:"), hbox); + _pluralFormsBox = new TQSpinBox(0,100,1,hbox, "kcfg_PluralForms"); _pluralFormsBox->setSpecialValueText( i18n("automatic choose number of plural forms","Automatic")); label->setBuddy(_pluralFormsBox); - connect(_pluralFormsBox,SIGNAL(valueChanged(int)), this - , SLOT(checkTestPluralButton())); + connect(_pluralFormsBox,TQT_SIGNAL(valueChanged(int)), this + , TQT_SLOT(checkTestPluralButton())); hbox->setStretchFactor(_pluralFormsBox,1); - _testPluralButton = new QPushButton(i18n("Te&st"),hbox); + _testPluralButton = new TQPushButton(i18n("Te&st"),hbox); _testPluralButton->setEnabled(false); - connect(_testPluralButton, SIGNAL(clicked()), this - , SLOT(testPluralForm())); + connect(_testPluralButton, TQT_SIGNAL(clicked()), this + , TQT_SLOT(testPluralForm())); - const QString msg=i18n("<qt><p><b>Number of singular/plural forms</b></p>" + const TQString msg=i18n("<qt><p><b>Number of singular/plural forms</b></p>" "<p><b>Note</b>: This option is KDE specific. " "If you are not translating a KDE application, you can safely " "ignore this option.</p>" @@ -495,29 +495,29 @@ IdentityPreferences::IdentityPreferences(QWidget* parent, const QString& project "<i>Automatic</i> and KBabel will try to get this information " "automatically from KDE. Use the <i>Test</i> button " "to test if it can find it out.</p></qt>"); - QWhatsThis::add(_pluralFormsBox,msg); - QWhatsThis::add(_testPluralButton,msg); + TQWhatsThis::add(_pluralFormsBox,msg); + TQWhatsThis::add(_testPluralButton,msg); - QVBox* vbox = new QVBox(group); + TQVBox* vbox = new TQVBox(group); vbox->setSpacing(KDialog::spacingHint()); - label = new QLabel(i18n("&GNU plural form header:"), vbox); + label = new TQLabel(i18n("&GNU plural form header:"), vbox); - hbox = new QHBox(vbox); + hbox = new TQHBox(vbox); hbox->setSpacing(KDialog::spacingHint()); - _gnuPluralFormHeaderEdit = new QLineEdit(hbox, "kcfg_PluralFormsHeader"); + _gnuPluralFormHeaderEdit = new TQLineEdit(hbox, "kcfg_PluralFormsHeader"); label->setBuddy(_gnuPluralFormHeaderEdit); hbox->setStretchFactor(_gnuPluralFormHeaderEdit,1); - _testGnuPluralFormButton = new QPushButton(i18n("&Lookup"),hbox); - connect(_testGnuPluralFormButton, SIGNAL(clicked()), this - , SLOT(lookupGnuPluralFormHeader())); + _testGnuPluralFormButton = new TQPushButton(i18n("&Lookup"),hbox); + connect(_testGnuPluralFormButton, TQT_SIGNAL(clicked()), this + , TQT_SLOT(lookupGnuPluralFormHeader())); - _checkPluralArgumentBox = new QCheckBox( i18n("Re&quire plural form arguments in translation") + _checkPluralArgumentBox = new TQCheckBox( i18n("Re&quire plural form arguments in translation") , group, "kcfg_CheckPluralArgument" ); - QWhatsThis::add(_checkPluralArgumentBox, + TQWhatsThis::add(_checkPluralArgumentBox, i18n("<qt><p><b>Require plural form arguments in translation</b></p>\n" "<p><b>Note</b>: This option is KDE specific at the moment. " "If you are not translating a KDE application, you can safely " @@ -525,7 +525,7 @@ IdentityPreferences::IdentityPreferences(QWidget* parent, const QString& project "<p>If is this option enabled, the validation check will " "require the %n argument to be present in the message.</p></qt>")); - QWhatsThis::add(_gnuPluralFormHeaderEdit, + TQWhatsThis::add(_gnuPluralFormHeaderEdit, i18n("<qt><p><b>GNU plural form header</b></p>\n" "<p>Here you can fill a header entry for GNU plural form handling; " "if you leave the entry empty, the entry in the PO file will not be " @@ -557,18 +557,18 @@ void IdentityPreferences::defaults(const IdentitySettings& settings) _checkPluralArgumentBox->setChecked(settings.checkPluralArgument); } -bool IdentityPreferences::eventFilter(QObject *o, QEvent *e) +bool IdentityPreferences::eventFilter(TQObject *o, TQEvent *e) { - if(e->type() == QEvent::Drop) + if(e->type() == TQEvent::Drop) { - QDropEvent *de = static_cast<QDropEvent*>(e); + TQDropEvent *de = static_cast<TQDropEvent*>(e); KURL::List urlList; if(de && KURLDrag::decode(de,urlList)) { KURL url(urlList.first()); if(url.protocol()== "mailto") { - QString mail=url.path(); + TQString mail=url.path(); bool handled=false; if(o == _mailEdit) @@ -594,14 +594,14 @@ bool IdentityPreferences::eventFilter(QObject *o, QEvent *e) void IdentityPreferences::checkTestPluralButton() { int val = _pluralFormsBox->value(); - QString lang=_langCodeEdit->text(); + TQString lang=_langCodeEdit->text(); _testPluralButton->setEnabled(val==0 && !lang.isEmpty()); } void IdentityPreferences::testPluralForm() { - QString lang=_langCodeEdit->text(); + TQString lang=_langCodeEdit->text(); if(lang.isEmpty()) { @@ -611,7 +611,7 @@ void IdentityPreferences::testPluralForm() int number=Catalog::getNumberOfPluralForms(lang); - QString msg; + TQString msg; if(number < 0) { @@ -635,7 +635,7 @@ void IdentityPreferences::testPluralForm() void IdentityPreferences::lookupGnuPluralFormHeader() { - QString lang=_langCodeEdit->text(); + TQString lang=_langCodeEdit->text(); if(lang.isEmpty()) { @@ -643,7 +643,7 @@ void IdentityPreferences::lookupGnuPluralFormHeader() return; } - QString header=GNUPluralForms(lang); + TQString header=GNUPluralForms(lang); if( header.isEmpty() ) { @@ -658,39 +658,39 @@ void IdentityPreferences::lookupGnuPluralFormHeader() } -MiscPreferences::MiscPreferences(QWidget *parent) - : QWidget(parent), _regExpEditDialog(0) +MiscPreferences::MiscPreferences(TQWidget *parent) + : TQWidget(parent), _regExpEditDialog(0) { - QWidget* page = this; + TQWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* box=new QGroupBox(1,Qt::Horizontal,page); + TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); - QHBox *hbox = new QHBox(box); + TQHBox *hbox = new TQHBox(box); hbox->setSpacing(KDialog::spacingHint()); - QLabel *label = new QLabel(i18n("&Marker for keyboard accelerator:"),hbox); + TQLabel *label = new TQLabel(i18n("&Marker for keyboard accelerator:"),hbox); accelMarkerEdit = new KLineEdit(hbox, "kcfg_AccelMarker"); accelMarkerEdit->setMaxLength(1); label->setBuddy(accelMarkerEdit); hbox->setStretchFactor(accelMarkerEdit,1); - QString msg=i18n("<qt><p><b>Marker for keyboard accelerator</b></p>" + TQString msg=i18n("<qt><p><b>Marker for keyboard accelerator</b></p>" "<p>Define here, what character marks the following " "character as keyboard accelerator. For example in Qt it is " "'&' and in Gtk it is '_'.</p></qt>"); - QWhatsThis::add(label,msg); - QWhatsThis::add(accelMarkerEdit,msg); + TQWhatsThis::add(label,msg); + TQWhatsThis::add(accelMarkerEdit,msg); - hbox = new QHBox(box); + hbox = new TQHBox(box); hbox->setSpacing(KDialog::spacingHint()); - label = new QLabel(i18n("&Regular expression for context information:") + label = new TQLabel(i18n("&Regular expression for context information:") ,hbox); contextInfoEdit = new KLineEdit(hbox, "kcfg_ContextInfo"); label->setBuddy(contextInfoEdit); @@ -700,27 +700,27 @@ MiscPreferences::MiscPreferences(QWidget *parent) "<p>Enter a regular expression here which defines what is " "context information in the message and must not get " "translated.</p></qt>"); - QWhatsThis::add(label,msg); - QWhatsThis::add(contextInfoEdit,msg); + TQWhatsThis::add(label,msg); + TQWhatsThis::add(contextInfoEdit,msg); if( !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() ) { - _regExpButton = new QPushButton( i18n("&Edit..."), hbox ); - connect( _regExpButton, SIGNAL( clicked() ), this, SLOT( regExpButtonClicked())); + _regExpButton = new TQPushButton( i18n("&Edit..."), hbox ); + connect( _regExpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( regExpButtonClicked())); } // preferences for mail attachments - QVButtonGroup* vbgroup = new QVButtonGroup(page); + TQVButtonGroup* vbgroup = new TQVButtonGroup(page); vbgroup->setTitle(i18n("Compression Method for Mail Attachments")); vbgroup->setRadioButtonExclusive(true); vbgroup->setMargin(KDialog::marginHint()); layout->addWidget(vbgroup); - bzipButton = new QRadioButton(i18n("tar/&bzip2"), vbgroup, "kcfg_BZipCompression"); - gzipButton = new QRadioButton(i18n("tar/&gzip"), vbgroup); + bzipButton = new TQRadioButton(i18n("tar/&bzip2"), vbgroup, "kcfg_BZipCompression"); + gzipButton = new TQRadioButton(i18n("tar/&gzip"), vbgroup); - compressSingle = new QCheckBox(i18n("&Use compression when sending " + compressSingle = new TQCheckBox(i18n("&Use compression when sending " "a single file"), vbgroup, "kcfg_CompressSingleFile"); layout->addStretch(1); @@ -739,12 +739,12 @@ void MiscPreferences::defaults(const MiscSettings& settings) compressSingle->setChecked(settings.compressSingleFile); } -QString MiscPreferences::contextInfo() const +TQString MiscPreferences::contextInfo() const { - QString temp=contextInfoEdit->text(); + TQString temp=contextInfoEdit->text(); bool quoted=false; - QString newStr; + TQString newStr; for(uint i=0; i<temp.length(); i++) { @@ -768,7 +768,7 @@ QString MiscPreferences::contextInfo() const return newStr; } -void MiscPreferences::setContextInfo(QString reg) +void MiscPreferences::setContextInfo(TQString reg) { reg.replace("\n","\\n"); contextInfoEdit->setText(reg); @@ -777,61 +777,61 @@ void MiscPreferences::setContextInfo(QString reg) void MiscPreferences::regExpButtonClicked() { if ( _regExpEditDialog==0 ) - _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog> - ("KRegExpEditor/KRegExpEditor", QString::null, this ); + _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog> + ("KRegExpEditor/KRegExpEditor", TQString::null, this ); KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _regExpEditDialog ); if( iface ) { iface->setRegExp( contextInfoEdit->text() ); - if( _regExpEditDialog->exec() == QDialog::Accepted ) + if( _regExpEditDialog->exec() == TQDialog::Accepted ) contextInfoEdit->setText( iface->regExp() ); } } -SpellPreferences::SpellPreferences(QWidget* parent) - : QWidget(parent) +SpellPreferences::SpellPreferences(TQWidget* parent) + : TQWidget(parent) { - QWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQWidget* page = this; + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - onFlyBtn = new QCheckBox(i18n("On the &fly spellchecking"),page, "kcfg_OnFlySpellCheck"); + onFlyBtn = new TQCheckBox(i18n("On the &fly spellchecking"),page, "kcfg_OnFlySpellCheck"); layout->addWidget(onFlyBtn); - QWhatsThis::add(onFlyBtn, i18n("<qt><p><b>On the fly spellchecking</b></p>" + TQWhatsThis::add(onFlyBtn, i18n("<qt><p><b>On the fly spellchecking</b></p>" "<p>Activate this to let KBabel spell check the text " "as you type. Mispelled words will be colored by the error color.</p></qt>")); spellConfig = new KSpellConfig(page,"spellConfigWidget",0,false); layout->addWidget(spellConfig); - remIgnoredBtn = new QCheckBox(i18n("&Remember ignored words"),page, "kcfg_RememberIgnored"); + remIgnoredBtn = new TQCheckBox(i18n("&Remember ignored words"),page, "kcfg_RememberIgnored"); layout->addWidget(remIgnoredBtn); - connect( spellConfig, SIGNAL( configChanged() ) - , this, SIGNAL ( settingsChanged() ) ); + connect( spellConfig, TQT_SIGNAL( configChanged() ) + , this, TQT_SIGNAL ( settingsChanged() ) ); - QLabel *tempLabel = new QLabel(i18n("F&ile to store ignored words:"),page); + TQLabel *tempLabel = new TQLabel(i18n("F&ile to store ignored words:"),page); layout->addWidget(tempLabel); ignoreURLEdit = new KURLRequester(page, "kcfg_IgnoreURL"); layout->addWidget(ignoreURLEdit); tempLabel->setBuddy(ignoreURLEdit); - connect(remIgnoredBtn,SIGNAL(toggled(bool)),ignoreURLEdit - ,SLOT(setEnabled(bool))); + connect(remIgnoredBtn,TQT_SIGNAL(toggled(bool)),ignoreURLEdit + ,TQT_SLOT(setEnabled(bool))); - QString msg = i18n("<qt><p><b>Remember ignored words</b></p>" + TQString msg = i18n("<qt><p><b>Remember ignored words</b></p>" "<p>Activate this, to let KBabel ignore the words, where you have " "chosen <i>Ignore All</i> in the spell check dialog, " "in every spell check.</p></qt>"); - QWhatsThis::add(remIgnoredBtn,msg); - QWhatsThis::add(tempLabel,msg); - QWhatsThis::add(ignoreURLEdit,msg); + TQWhatsThis::add(remIgnoredBtn,msg); + TQWhatsThis::add(tempLabel,msg); + TQWhatsThis::add(ignoreURLEdit,msg); layout->addStretch(1); @@ -874,21 +874,21 @@ void SpellPreferences::defaults(const SpellcheckSettings& settings) *spellConfig = spCfg; } -CatmanPreferences::CatmanPreferences(QWidget* parent) - : QWidget(parent) +CatmanPreferences::CatmanPreferences(TQWidget* parent) + : TQWidget(parent) { - QWidget* page = this; + TQWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* box=new QGroupBox(1,Qt::Horizontal,page); + TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); - QLabel* label=new QLabel(i18n("&Base folder of PO files:"),box); - QHBox* hbox = new QHBox(box); + TQLabel* label=new TQLabel(i18n("&Base folder of PO files:"),box); + TQHBox* hbox = new TQHBox(box); hbox->setSpacing(KDialog::spacingHint()); const KFile::Mode mode = static_cast<KFile::Mode>( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly ); @@ -900,8 +900,8 @@ CatmanPreferences::CatmanPreferences(QWidget* parent) label->setBuddy(_poDirEdit); - label=new QLabel(i18n("Ba&se folder of POT files:"),box); - hbox = new QHBox(box); + label=new TQLabel(i18n("Ba&se folder of POT files:"),box); + hbox = new TQHBox(box); hbox->setSpacing(KDialog::spacingHint()); _potDirEdit = new KURLRequester(hbox, "kcfg_PotBaseDir"); @@ -911,40 +911,40 @@ CatmanPreferences::CatmanPreferences(QWidget* parent) - QWhatsThis::add(box,i18n("<qt><p><b>Base folders</b></p>\n" + TQWhatsThis::add(box,i18n("<qt><p><b>Base folders</b></p>\n" "<p>Type in the folders which contain all your PO and POT files.\n" "The files and the folders in these folders will then be merged into one\n" "tree.</p></qt>")); - box=new QGroupBox(1,Qt::Horizontal,page); + box=new TQGroupBox(1,Qt::Horizontal,page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); - _openWindowButton = new QCheckBox(i18n("O&pen files in new window"),box, "kcfg_OpenWindow"); + _openWindowButton = new TQCheckBox(i18n("O&pen files in new window"),box, "kcfg_OpenWindow"); - QWhatsThis::add(_openWindowButton,i18n("<qt><p><b>Open files in new window</b></p>\n" + TQWhatsThis::add(_openWindowButton,i18n("<qt><p><b>Open files in new window</b></p>\n" "<p>If this is activated all files that are opened from the Catalog Manager are opened\n" "in a new window.</p></qt>")); - _killButton = new QCheckBox( i18n("&Kill processes on exit") , box, "kcfg_KillCmdOnExit" ); + _killButton = new TQCheckBox( i18n("&Kill processes on exit") , box, "kcfg_KillCmdOnExit" ); - QWhatsThis::add( _killButton , i18n("<qt><p><b>Kill processes on exit</b></p>\n" + TQWhatsThis::add( _killButton , i18n("<qt><p><b>Kill processes on exit</b></p>\n" "<p>If you check this, KBabel tries to kill the processes, that have not exited already when KBabel exits,\n" "by sending a kill signal to them.</p>\n" "<p>NOTE: It is not guaranteed that the processes will be killed.</p></qt>") ); - _indexButton = new QCheckBox( i18n("Create inde&x for file contents"), box, "kcfg_IndexWords" ); + _indexButton = new TQCheckBox( i18n("Create inde&x for file contents"), box, "kcfg_IndexWords" ); - QWhatsThis::add( _indexButton , i18n("<qt><p><b>Create index for file contents</b></p>\n" + TQWhatsThis::add( _indexButton , i18n("<qt><p><b>Create index for file contents</b></p>\n" "<p>If you check this, KBabel will create an index for each PO file to speed up the find/replace functions.</p>\n" "<p>NOTE: This will slow down updating the file information considerably.</p></qt>") ); - m_msgfmtButton = new QCheckBox( i18n("Run &msgfmt before processing a file"), box, "kcfg_msgfmt" ); + m_msgfmtButton = new TQCheckBox( i18n("Run &msgfmt before processing a file"), box, "kcfg_msgfmt" ); - QWhatsThis::add( m_msgfmtButton, i18n("<qt><p><b>Run msgfmt before processing a file</b></p>" + TQWhatsThis::add( m_msgfmtButton, i18n("<qt><p><b>Run msgfmt before processing a file</b></p>" "<p>If you enable this, KBabel will run Gettext's " "msgfmt tool before processing a file.</p>" "<p>Enabling this setting is recommended, even if it causes processing to be slower. " @@ -976,26 +976,26 @@ void CatmanPreferences::defaults(const CatManSettings& settings) m_msgfmtButton->setChecked( settings.msgfmt ); } -DirCommandsPreferences::DirCommandsPreferences(QWidget* parent) - : QWidget(parent) +DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent) + : TQWidget(parent) { - QWidget* page = this; + TQWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* box = new QGroupBox( 1 , Qt::Horizontal , i18n("Commands for Folders") , page ); + TQGroupBox* box = new TQGroupBox( 1 , Qt::Horizontal , i18n("Commands for Folders") , page ); box->setMargin( KDialog::marginHint() ); layout->addWidget( box ); _dirCmdEdit = new CmdEdit( box ); - new QLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@\n" + new TQLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@\n" "@POFILES@, @MARKEDPOFILES@"), box); - connect (_dirCmdEdit, SIGNAL(widgetChanged()), this, SIGNAL(settingsChanged())); + connect (_dirCmdEdit, TQT_SIGNAL(widgetChanged()), this, TQT_SIGNAL(settingsChanged())); - QWhatsThis::add( box , i18n("<qt><p><b>Commands for folders</b></p>" + TQWhatsThis::add( box , i18n("<qt><p><b>Commands for folders</b></p>" "<p>Insert here the commands you want to execute in folders from " "the Catalog Manager. The commands are then shown in the submenu " "<b>Commands</b> in the Catalog Manager's context menu.</p>" @@ -1039,26 +1039,26 @@ void DirCommandsPreferences::defaults(const CatManSettings& settings) } -FileCommandsPreferences::FileCommandsPreferences(QWidget* parent) - : QWidget(parent) +FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent) + : TQWidget(parent) { - QWidget* page = this; + TQWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* box=new QGroupBox( 1 , Qt::Horizontal , i18n("Commands for Files") , page ); + TQGroupBox* box=new TQGroupBox( 1 , Qt::Horizontal , i18n("Commands for Files") , page ); box->setMargin( KDialog::marginHint() ); layout->addWidget( box ); _fileCmdEdit = new CmdEdit( box ); - new QLabel( i18n("Replaceables:\n" + new TQLabel( i18n("Replaceables:\n" "@PACKAGE@, @POFILE@,@POTFILE@,\n@PODIR@, @POTDIR@"), box); - connect (_fileCmdEdit, SIGNAL(widgetChanged()), this, SIGNAL(settingsChanged())); + connect (_fileCmdEdit, TQT_SIGNAL(widgetChanged()), this, TQT_SIGNAL(settingsChanged())); - QWhatsThis::add( box , i18n("<qt><p><b>Commands for files</b></p>" + TQWhatsThis::add( box , i18n("<qt><p><b>Commands for files</b></p>" "<p>Insert here the commands you want to execute on files from " "the Catalog Manager. The commands are then shown in the submenu " "<b>Commands</b> in the Catalog Manager's context menu.</p>" @@ -1102,28 +1102,28 @@ void FileCommandsPreferences::defaults(const CatManSettings& settings) _fileCmdEdit->setCommands( settings.fileCommands, settings.fileCommandNames ); } -ViewPreferences::ViewPreferences(QWidget* parent) - : QWidget(parent) +ViewPreferences::ViewPreferences(TQWidget* parent) + : TQWidget(parent) { - QWidget* page = this; + TQWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QGroupBox* box=new QGroupBox(2, Qt::Horizontal,i18n("Shown Columns"),page); + TQGroupBox* box=new TQGroupBox(2, Qt::Horizontal,i18n("Shown Columns"),page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); - _flagColumnCheckbox = new QCheckBox( i18n("Fla&g"), box, "kcfg_ShowFlagColumn" ); - _fuzzyColumnCheckbox = new QCheckBox( i18n("&Fuzzy"), box, "kcfg_ShowFuzzyColumn" ); - _untranslatedColumnCheckbox = new QCheckBox( i18n("&Untranslated"), box, "kcfg_ShowUntranslatedColumn" ); - _totalColumnCheckbox = new QCheckBox( i18n("&Total"), box, "kcfg_ShowTotalColumn" ); - _cvsColumnCheckbox = new QCheckBox( i18n("SVN/&CVS status"), box, "kcfg_ShowCVSColumn" ); - _revisionColumnCheckbox = new QCheckBox( i18n("Last &revision"), box, "kcfg_ShowRevisionColumn" ); - _translatorColumnCheckbox = new QCheckBox( i18n("Last t&ranslator"), box, "kcfg_ShowTranslatorColumn" ); + _flagColumnCheckbox = new TQCheckBox( i18n("Fla&g"), box, "kcfg_ShowFlagColumn" ); + _fuzzyColumnCheckbox = new TQCheckBox( i18n("&Fuzzy"), box, "kcfg_ShowFuzzyColumn" ); + _untranslatedColumnCheckbox = new TQCheckBox( i18n("&Untranslated"), box, "kcfg_ShowUntranslatedColumn" ); + _totalColumnCheckbox = new TQCheckBox( i18n("&Total"), box, "kcfg_ShowTotalColumn" ); + _cvsColumnCheckbox = new TQCheckBox( i18n("SVN/&CVS status"), box, "kcfg_ShowCVSColumn" ); + _revisionColumnCheckbox = new TQCheckBox( i18n("Last &revision"), box, "kcfg_ShowRevisionColumn" ); + _translatorColumnCheckbox = new TQCheckBox( i18n("Last t&ranslator"), box, "kcfg_ShowTranslatorColumn" ); - QWhatsThis::add(box,i18n("<qt><p><b>Shown columns</b></p>\n" + TQWhatsThis::add(box,i18n("<qt><p><b>Shown columns</b></p>\n" "<p></p></qt>")); layout->addStretch(1); @@ -1145,16 +1145,16 @@ void ViewPreferences::defaults(const CatManSettings& _settings) _translatorColumnCheckbox->setChecked(_settings.translatorColumn); } -SourceContextPreferences::SourceContextPreferences(QWidget* parent): QWidget(parent) +SourceContextPreferences::SourceContextPreferences(TQWidget* parent): TQWidget(parent) { - QWidget* page = this; - QVBoxLayout* layout=new QVBoxLayout(page); + TQWidget* page = this; + TQVBoxLayout* layout=new TQVBoxLayout(page); layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - QHBox* box = new QHBox(page); + TQHBox* box = new TQHBox(page); box->setSpacing(KDialog::spacingHint()); - QLabel* tempLabel=new QLabel(i18n("&Base folder for source code:"),box); + TQLabel* tempLabel=new TQLabel(i18n("&Base folder for source code:"),box); const KFile::Mode mode = static_cast<KFile::Mode>( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly ); _coderootEdit = new KURLRequester ( box, "kcfg_CodeRoot" ); @@ -1168,8 +1168,8 @@ SourceContextPreferences::SourceContextPreferences(QWidget* parent): QWidget(par _pathsEditor->setTitle(i18n("Path Patterns")); layout->addWidget(_pathsEditor); - connect ( _pathsEditor, SIGNAL (itemsChanged ()) - , this, SIGNAL (itemsChanged ())); + connect ( _pathsEditor, TQT_SIGNAL (itemsChanged ()) + , this, TQT_SIGNAL (itemsChanged ())); _pathsEditor->installEventFilter(this); @@ -1195,11 +1195,11 @@ void SourceContextPreferences::defaults(const KBabel::SourceContextSettings& set _pathsEditor->setList(settings.sourcePaths); } -bool SourceContextPreferences::eventFilter( QObject *, QEvent *e ) +bool SourceContextPreferences::eventFilter( TQObject *, TQEvent *e ) { - if( e->type() == QEvent::KeyPress ) + if( e->type() == TQEvent::KeyPress ) { - QKeyEvent *ke = dynamic_cast<QKeyEvent*>(e); + TQKeyEvent *ke = dynamic_cast<TQKeyEvent*>(e); if( ke->key() == Key_Return || ke->key() == Key_Enter ) return true; } |