summaryrefslogtreecommitdiffstats
path: root/src/UiGuiSettingsDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/UiGuiSettingsDialog.cpp')
-rwxr-xr-xsrc/UiGuiSettingsDialog.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/UiGuiSettingsDialog.cpp b/src/UiGuiSettingsDialog.cpp
index 7c7001f..7414470 100755
--- a/src/UiGuiSettingsDialog.cpp
+++ b/src/UiGuiSettingsDialog.cpp
@@ -31,7 +31,7 @@
/*!
\brief The constructor calls the setup function for the ui created by uic.
*/
-UiGuiSettingsDialog::UiGuiSettingsDialog(QWidget* parent, QSharedPointer<UiGuiSettings> settings) : QDialog(parent) {
+UiGuiSettingsDialog::UiGuiSettingsDialog(TQWidget* parent, TQSharedPointer<UiGuiSettings> settings) : TQDialog(parent) {
// Remember pointer to the UiGuiSettings object.
_settings = settings;
@@ -62,28 +62,28 @@ void UiGuiSettingsDialog::initTranslationSelection() {
_settingsDialogForm->languageSelectionComboBox->clear();
// Now add an entry into the box for every language short.
- foreach (QString languageShort, _settings->getAvailableTranslations() ) {
+ foreach (TQString languageShort, _settings->getAvailableTranslations() ) {
// Identify the language mnemonic and set the full name.
if ( languageShort == "en" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("English") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("English") );
}
else if ( languageShort == "fr" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("French") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("French") );
}
else if ( languageShort == "de" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("German") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("German") );
}
else if ( languageShort == "zh_TW" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("Chinese (Taiwan)") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("Chinese (Taiwan)") );
}
else if ( languageShort == "ja" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("Japanese") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("Japanese") );
}
else if ( languageShort == "ru" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("Russian") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("Russian") );
}
else if ( languageShort == "uk" ) {
- _settingsDialogForm->languageSelectionComboBox->addItem( QIcon(QString(":/language/language-"+languageShort+".png")), tr("Ukrainian") );
+ _settingsDialogForm->languageSelectionComboBox->addItem( TQIcon(TQString(":/language/language-"+languageShort+".png")), tr("Ukrainian") );
}
else {
@@ -121,20 +121,20 @@ void UiGuiSettingsDialog::writeWidgetValuesToSettings() {
/*!
\brief Catches language change events and retranslates all needed widgets.
*/
-void UiGuiSettingsDialog::changeEvent(QEvent *event) {
- if (event->type() == QEvent::LanguageChange) {
+void UiGuiSettingsDialog::changeEvent(TQEvent *event) {
+ if (event->type() == TQEvent::LanguageChange) {
_settingsDialogForm->retranslateUi(this);
- // If this is not explicit set here, Qt < 4.3.0 does not translate the buttons.
- _settingsDialogForm->buttonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
+ // If this is not explicit set here, TQt < 4.3.0 does not translate the buttons.
+ _settingsDialogForm->buttonBox->setStandardButtons(TQDialogButtonBox::Cancel | TQDialogButtonBox::NoButton|TQDialogButtonBox::Ok);
//TODO: This has to be removed when the properties for the highlighters can be set.
_settingsDialogForm->groupBoxSyntaxHighlighterProperties->setToolTip( "(Will be implemented soon)" + _settingsDialogForm->groupBoxSyntaxHighlighterProperties->toolTip() );
- QStringList languageShortList = _settings->getAvailableTranslations();
+ TQStringList languageShortList = _settings->getAvailableTranslations();
// Now retranslate every entry in the language selection box.
for (int i = 0; i < languageShortList.size(); i++ ) {
- QString languageShort = languageShortList.at(i);
+ TQString languageShort = languageShortList.at(i);
// Identify the language mnemonic and set the full name.
if ( languageShort == "en" ) {
@@ -164,6 +164,6 @@ void UiGuiSettingsDialog::changeEvent(QEvent *event) {
}
}
else {
- QWidget::changeEvent(event);
+ TQWidget::changeEvent(event);
}
}