diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-07-16 15:44:05 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-07-16 15:44:05 +0900 | 
| commit | a30a266067d9d952edc91305bef757557c03717e (patch) | |
| tree | 7bcabd84594f751001c66b16f3c42a8d459b7773 /src/UiGuiSettingsDialog.cpp | |
| parent | d017bd37253ae35b29d82e3277b9adcbb4517dd0 (diff) | |
| download | universal-indent-gui-tqt-a30a266067d9d952edc91305bef757557c03717e.tar.gz universal-indent-gui-tqt-a30a266067d9d952edc91305bef757557c03717e.zip | |
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/UiGuiSettingsDialog.cpp')
| -rwxr-xr-x | src/UiGuiSettingsDialog.cpp | 32 | 
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);      }  } | 
