From e470a86df30e2a0c0d3ea8c4f67112795071617a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 4 Nov 2023 23:33:05 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- plugins/alsa-sound/alsa-sound-configuration.cpp | 2 +- plugins/gui-docking-menu/docking.cpp | 2 +- plugins/gui-error-log/errorlog.cpp | 8 ++++---- plugins/gui-standard-display/displaycfg.cpp | 2 +- .../gui-standard-display/radioview_frequencyseeker.cpp | 2 +- plugins/gui-standard-display/radioview_volume.cpp | 2 +- plugins/recording/encoder_mp3.cpp | 2 +- plugins/recording/encoder_ogg.cpp | 2 +- src/errorlog-interfaces.cpp | 16 ++++++++-------- src/pluginmanager.cpp | 4 ++-- src/stationlist.cpp | 2 +- src/stationlistxmlhandler.cpp | 2 +- src/tderadioapp.cpp | 6 +++--- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/plugins/alsa-sound/alsa-sound-configuration.cpp b/plugins/alsa-sound/alsa-sound-configuration.cpp index 9a29e43..bf21210 100644 --- a/plugins/alsa-sound/alsa-sound-configuration.cpp +++ b/plugins/alsa-sound/alsa-sound-configuration.cpp @@ -55,7 +55,7 @@ AlsaSoundConfiguration::AlsaSoundConfiguration (TQWidget *parent, AlsaSoundDevic TQObject::connect(m_comboCaptureCard, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotCaptureCardSelected(const TQString &))); - m_groupMixer->setColumnLayout(0, Qt::Horizontal ); + m_groupMixer->setColumnLayout(0, TQt::Horizontal ); TQHBoxLayout *tmp_layout = new TQHBoxLayout( m_groupMixer->layout() ); diff --git a/plugins/gui-docking-menu/docking.cpp b/plugins/gui-docking-menu/docking.cpp index aae4f3f..5aa5069 100644 --- a/plugins/gui-docking-menu/docking.cpp +++ b/plugins/gui-docking-menu/docking.cpp @@ -437,7 +437,7 @@ void RadioDocking::mousePressEvent( TQMouseEvent *e ) KSystemTray::mousePressEvent(e); switch ( e->button() ) { - case Qt::LeftButton: + case TQt::LeftButton: switch (m_leftClickAction) { case lcaShowHide : ShowHideWidgetPlugins(); diff --git a/plugins/gui-error-log/errorlog.cpp b/plugins/gui-error-log/errorlog.cpp index 1ed8fdf..9e64d69 100644 --- a/plugins/gui-error-log/errorlog.cpp +++ b/plugins/gui-error-log/errorlog.cpp @@ -183,7 +183,7 @@ void ErrorLog::hideEvent(TQHideEvent *e) bool ErrorLog::logError (const TQString &s) { - m_teErrors->append("" + TQDateTime::currentDateTime().toString(Qt::ISODate) + " " + s + "\n"); + m_teErrors->append("" + TQDateTime::currentDateTime().toString(TQt::ISODate) + " " + s + "\n"); if (init_done) { showPage(PAGE_ID_ERROR); show(); @@ -193,19 +193,19 @@ bool ErrorLog::logError (const TQString &s) bool ErrorLog::logWarning(const TQString &s) { - m_teWarnings->append("" + TQDateTime::currentDateTime().toString(Qt::ISODate) + " " + s + "\n"); + m_teWarnings->append("" + TQDateTime::currentDateTime().toString(TQt::ISODate) + " " + s + "\n"); return true; } bool ErrorLog::logInfo (const TQString &s) { - m_teInfos->append("" + TQDateTime::currentDateTime().toString(Qt::ISODate) + " " + s + "\n"); + m_teInfos->append("" + TQDateTime::currentDateTime().toString(TQt::ISODate) + " " + s + "\n"); return true; } bool ErrorLog::logDebug (const TQString &s) { - m_teDebug->append("" + TQDateTime::currentDateTime().toString(Qt::ISODate) + " " + s + "\n"); + m_teDebug->append("" + TQDateTime::currentDateTime().toString(TQt::ISODate) + " " + s + "\n"); return true; } diff --git a/plugins/gui-standard-display/displaycfg.cpp b/plugins/gui-standard-display/displaycfg.cpp index e2a37ac..f51a4db 100644 --- a/plugins/gui-standard-display/displaycfg.cpp +++ b/plugins/gui-standard-display/displaycfg.cpp @@ -31,7 +31,7 @@ DisplayConfiguration::DisplayConfiguration(TQWidget *parent) m_ignore_gui_updates(false) { TQGroupBox *bg = new TQGroupBox(i18n("Display Colors"), this); - bg->setColumnLayout(0, Qt::Vertical ); + bg->setColumnLayout(0, TQt::Vertical ); bg->layout()->setSpacing( 8 ); bg->layout()->setMargin( 12 ); TQGridLayout *gl = new TQGridLayout (bg->layout()); diff --git a/plugins/gui-standard-display/radioview_frequencyseeker.cpp b/plugins/gui-standard-display/radioview_frequencyseeker.cpp index 2534dbe..611c6a2 100644 --- a/plugins/gui-standard-display/radioview_frequencyseeker.cpp +++ b/plugins/gui-standard-display/radioview_frequencyseeker.cpp @@ -39,7 +39,7 @@ RadioViewFrequencySeeker::RadioViewFrequencySeeker(TQWidget *parent, const TQStr TQBoxLayout *l = new TQBoxLayout(this, TQBoxLayout::LeftToRight, /*spacing=*/ 3); l->setMargin(0); - m_sldFrequency = new TQSlider(Qt::Horizontal, this); + m_sldFrequency = new TQSlider(TQt::Horizontal, this); m_btnSearchLeft = new TQToolButton(this); m_btnSearchRight = new TQToolButton(this); m_btnStepLeft = new TQToolButton(this); diff --git a/plugins/gui-standard-display/radioview_volume.cpp b/plugins/gui-standard-display/radioview_volume.cpp index 683ef82..11e00dd 100644 --- a/plugins/gui-standard-display/radioview_volume.cpp +++ b/plugins/gui-standard-display/radioview_volume.cpp @@ -43,7 +43,7 @@ RadioViewVolume::RadioViewVolume(TQWidget *parent, const TQString &name) SLIDER_MAXVAL, SLIDER_RANGE/10, getSlider4Volume(v), - Qt::Vertical, this); + TQt::Vertical, this); TQObject::connect(m_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotVolumeChanged(int))); diff --git a/plugins/recording/encoder_mp3.cpp b/plugins/recording/encoder_mp3.cpp index 456850f..eb42e9f 100644 --- a/plugins/recording/encoder_mp3.cpp +++ b/plugins/recording/encoder_mp3.cpp @@ -126,7 +126,7 @@ bool RecordingEncodingMP3::openOutput(const TQString &output) if (!m_error) { id3tag_init(m_LAMEFlags); id3tag_add_v2(m_LAMEFlags); - TQString title = m_RadioStation->name() + TQString().sprintf(" - %s", (TQDateTime::currentDateTime().toString(Qt::ISODate)).ascii()); + TQString title = m_RadioStation->name() + TQString().sprintf(" - %s", (TQDateTime::currentDateTime().toString(TQt::ISODate)).ascii()); TQString comment = i18n("Recorded by TDERadio"); size_t l = title.length() + comment.length() + 10; m_ID3Tags = new char[l]; diff --git a/plugins/recording/encoder_ogg.cpp b/plugins/recording/encoder_ogg.cpp index ca093b9..d1088b1 100644 --- a/plugins/recording/encoder_ogg.cpp +++ b/plugins/recording/encoder_ogg.cpp @@ -176,7 +176,7 @@ bool RecordingEncodingOgg::openOutput(const TQString &output) vorbis_comment_init (&vc); vorbis_comment_add_tag_new(&vc, "creator", "TDERadio" VERSION); vorbis_comment_add_tag_new(&vc, "title", m_RadioStation->longName().utf8()); - vorbis_comment_add_tag_new(&vc, "date", TQDateTime::currentDateTime().toString(Qt::ISODate)); + vorbis_comment_add_tag_new(&vc, "date", TQDateTime::currentDateTime().toString(TQt::ISODate)); vorbis_analysis_headerout(&m_VorbisDSP, &vc, &header_main, &header_comments, &header_codebooks); diff --git a/src/errorlog-interfaces.cpp b/src/errorlog-interfaces.cpp index e71304c..a384275 100644 --- a/src/errorlog-interfaces.cpp +++ b/src/errorlog-interfaces.cpp @@ -41,7 +41,7 @@ IErrorLog::~IErrorLog() int IErrorLogClient::sendLogError(const TQString &s) const { kdDebug() << TQString(i18n("%1 Error: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); IF_SEND_MESSAGE(logError(s)); } @@ -50,7 +50,7 @@ int IErrorLogClient::sendLogError(const TQString &s) const int IErrorLogClient::sendLogWarning(const TQString &s) const { kdDebug() << TQString(i18n("%1 Warning: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); IF_SEND_MESSAGE(logWarning(s)); } @@ -59,7 +59,7 @@ int IErrorLogClient::sendLogWarning(const TQString &s) const int IErrorLogClient::sendLogInfo(const TQString &s) const { kdDebug() << TQString(i18n("%1 Information: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); IF_SEND_MESSAGE(logInfo(s)); } @@ -68,7 +68,7 @@ int IErrorLogClient::sendLogInfo(const TQString &s) const int IErrorLogClient::sendLogDebug(const TQString &s) const { kdDebug() << TQString(i18n("%1 Debug: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); IF_SEND_MESSAGE(logDebug(s)); } @@ -76,7 +76,7 @@ int IErrorLogClient::sendLogDebug(const TQString &s) const void IErrorLogClient::staticLogError (const TQString &s) { kdDebug() << TQString(i18n("%1 Error: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); if (staticLogger) staticLogger->logError(s); @@ -85,7 +85,7 @@ void IErrorLogClient::staticLogError (const TQString &s) void IErrorLogClient::staticLogWarning(const TQString &s) { kdDebug() << TQString(i18n("%1 Warning: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); if (staticLogger) staticLogger->logWarning(s); @@ -94,7 +94,7 @@ void IErrorLogClient::staticLogWarning(const TQString &s) void IErrorLogClient::staticLogInfo (const TQString &s) { kdDebug() << TQString(i18n("%1 Information: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); if (staticLogger) staticLogger->logInfo(s); @@ -103,7 +103,7 @@ void IErrorLogClient::staticLogInfo (const TQString &s) void IErrorLogClient::staticLogDebug (const TQString &s) { kdDebug() << TQString(i18n("%1 Debug: %2\n")) - .arg(TQDateTime::currentDateTime().toString(Qt::ISODate)) + .arg(TQDateTime::currentDateTime().toString(TQt::ISODate)) .arg(s); if (staticLogger) staticLogger->logDebug(s); diff --git a/src/pluginmanager.cpp b/src/pluginmanager.cpp index b4eedf3..89c750a 100644 --- a/src/pluginmanager.cpp +++ b/src/pluginmanager.cpp @@ -153,7 +153,7 @@ void PluginManager::insertPlugin(PluginBase *p) if (p) { BlockProfiler profiler_cfg("PluginManager::insertPlugin - about/config"); - /*kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate) + /*kdDebug() << TQDateTime::currentDateTime().toString(TQt::ISODate) << " Debug: Adding Plugin: " << p->name() << "\n";*/ if (!m_configDialog) @@ -173,7 +173,7 @@ void PluginManager::insertPlugin(PluginBase *p) // connect plugins with each other for (PluginIterator it(m_plugins); it.current(); ++it) { if (it.current() != p) { - /*kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate) + /*kdDebug() << TQDateTime::currentDateTime().toString(TQt::ISODate) << " Debug: connecting with " << it.current()->name() << "\n";*/ p->connectI(it.current()); } diff --git a/src/stationlist.cpp b/src/stationlist.cpp index 391efd9..6f05f9d 100644 --- a/src/stationlist.cpp +++ b/src/stationlist.cpp @@ -415,7 +415,7 @@ TQString StationList::writeXML (const IErrorLogClient &/*logger*/) const tt + xmlOpenTag(StationListInfo) + ttt + xmlTag(StationListInfoCreator, "tderadio-" TDERADIO_VERSION) + ttt + xmlTag(StationListInfoMaintainer, m_metaData.maintainer) + - ttt + xmlTag(StationListInfoChanged, m_metaData.lastChange.toString(Qt::ISODate)) + + ttt + xmlTag(StationListInfoChanged, m_metaData.lastChange.toString(TQt::ISODate)) + ttt + xmlTag(StationListInfoCountry, m_metaData.country) + ttt + xmlTag(StationListInfoCity, m_metaData.city) + ttt + xmlTag(StationListInfoMedia, m_metaData.media) + diff --git a/src/stationlistxmlhandler.cpp b/src/stationlistxmlhandler.cpp index 68bcc69..7c91145 100644 --- a/src/stationlistxmlhandler.cpp +++ b/src/stationlistxmlhandler.cpp @@ -197,7 +197,7 @@ bool StationListXmlHandler::characters (const TQString &ch) } else if (stat == StationListInfoChanged) { - m_metaData.lastChange = TQDateTime::fromString(str, Qt::ISODate); + m_metaData.lastChange = TQDateTime::fromString(str, TQt::ISODate); } else if (stat == StationListInfoCreator) { diff --git a/src/tderadioapp.cpp b/src/tderadioapp.cpp index dfe28e7..83b481f 100644 --- a/src/tderadioapp.cpp +++ b/src/tderadioapp.cpp @@ -266,7 +266,7 @@ KLibrary *TDERadioApp::LoadLibrary (const TQString &library) m_PluginInfos.insert(it.key(), PluginClassInfo (it.key(), *it, libinfo.init_func)); } } else { - kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate) + kdDebug() << TQDateTime::currentDateTime().toString(TQt::ISODate) << " " << i18n("Error: Loading Library %1 failed: %2") .arg(library).arg(KLibLoader::self()->lastErrorMessage()) @@ -317,13 +317,13 @@ PluginBase *TDERadioApp::CreatePlugin (PluginManager *manager, const TQString &c if (m_PluginInfos.contains(class_name)) { retval = m_PluginInfos[class_name].CreateInstance(object_name); if (!retval) { - kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate) + kdDebug() << TQDateTime::currentDateTime().toString(TQt::ISODate) << " " << i18n("Error: Creation of instance \"%1\" of class %2 falied.").arg(object_name).arg(class_name) << endl; } } else { - kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate) + kdDebug() << TQDateTime::currentDateTime().toString(TQt::ISODate) << " " << i18n("Error: Cannot create instance \"%1\" of unknown class %2.").arg(object_name).arg(class_name) << endl; -- cgit v1.2.1