Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/12/head
Michele Calgaro 1 year ago
parent 61d2386857
commit e470a86df3
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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() );

@ -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();

@ -183,7 +183,7 @@ void ErrorLog::hideEvent(TQHideEvent *e)
bool ErrorLog::logError (const TQString &s)
{
m_teErrors->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
m_teErrors->append("<i>" + TQDateTime::currentDateTime().toString(TQt::ISODate) + "</i> " + 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("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
m_teWarnings->append("<i>" + TQDateTime::currentDateTime().toString(TQt::ISODate) + "</i> " + s + "\n");
return true;
}
bool ErrorLog::logInfo (const TQString &s)
{
m_teInfos->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
m_teInfos->append("<i>" + TQDateTime::currentDateTime().toString(TQt::ISODate) + "</i> " + s + "\n");
return true;
}
bool ErrorLog::logDebug (const TQString &s)
{
m_teDebug->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
m_teDebug->append("<i>" + TQDateTime::currentDateTime().toString(TQt::ISODate) + "</i> " + s + "\n");
return true;
}

@ -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());

@ -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);

@ -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)));

@ -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];

@ -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);

@ -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);

@ -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());
}

@ -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) +

@ -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) {

@ -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;

Loading…
Cancel
Save