summaryrefslogtreecommitdiffstats
path: root/akregator/src/frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/frame.cpp')
-rw-r--r--akregator/src/frame.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/akregator/src/frame.cpp b/akregator/src/frame.cpp
index faa8e371c..c8780462f 100644
--- a/akregator/src/frame.cpp
+++ b/akregator/src/frame.cpp
@@ -22,8 +22,8 @@
without including the source code for Qt in the source distribution.
*/
-#include <qregexp.h>
-#include <qstylesheet.h>
+#include <tqregexp.h>
+#include <tqstylesheet.h>
#include <kactioncollection.h>
#include <kdebug.h>
@@ -37,8 +37,8 @@
namespace Akregator {
-Frame::Frame(QObject * parent, KParts::ReadOnlyPart *p, QWidget *visWidget, const QString& tit, bool watchSignals)
- :QObject(parent, "aKregatorFrame")
+Frame::Frame(TQObject * parent, KParts::ReadOnlyPart *p, TQWidget *visWidget, const TQString& tit, bool watchSignals)
+ :TQObject(parent, "aKregatorFrame")
{
m_autoDeletePart = false;
m_part=p;
@@ -50,25 +50,25 @@ Frame::Frame(QObject * parent, KParts::ReadOnlyPart *p, QWidget *visWidget, cons
if (watchSignals) // e.g, articles tab has no part
{
- connect(m_part, SIGNAL(setWindowCaption (const QString &)), this, SLOT(setCaption (const QString &)));
- connect(m_part, SIGNAL(setStatusBarText (const QString &)), this, SLOT(setStatusText (const QString &)));
+ connect(m_part, TQT_SIGNAL(setWindowCaption (const TQString &)), this, TQT_SLOT(setCaption (const TQString &)));
+ connect(m_part, TQT_SIGNAL(setStatusBarText (const TQString &)), this, TQT_SLOT(setStatusText (const TQString &)));
KParts::BrowserExtension *ext=KParts::BrowserExtension::childObject( p );
if (ext)
- connect( ext, SIGNAL(loadingProgress(int)), this, SLOT(setProgress(int)) );
+ connect( ext, TQT_SIGNAL(loadingProgress(int)), this, TQT_SLOT(setProgress(int)) );
- connect(p, SIGNAL(started(KIO::Job*)), this, SLOT(setStarted()));
- connect(p, SIGNAL(completed()), this, SLOT(setCompleted()));
- connect(p, SIGNAL(canceled(const QString &)), this, SLOT(setCanceled(const QString&)));
- connect(p, SIGNAL(completed(bool)), this, SLOT(setCompleted()));
+ connect(p, TQT_SIGNAL(started(KIO::Job*)), this, TQT_SLOT(setStarted()));
+ connect(p, TQT_SIGNAL(completed()), this, TQT_SLOT(setCompleted()));
+ connect(p, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(setCanceled(const TQString&)));
+ connect(p, TQT_SIGNAL(completed(bool)), this, TQT_SLOT(setCompleted()));
/* KActionCollection *coll=p->actionCollection();
if (coll)
{
- connect( coll, SIGNAL( actionStatusText( const QString & ) ),
- this, SLOT( slotActionStatusText( const QString & ) ) );
- connect( coll, SIGNAL( clearStatusText() ),
- this, SLOT( slotClearStatusText() ) );
+ connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ),
+ this, TQT_SLOT( slotActionStatusText( const TQString & ) ) );
+ connect( coll, TQT_SIGNAL( clearStatusText() ),
+ this, TQT_SLOT( slotClearStatusText() ) );
}
*/
}
@@ -99,12 +99,12 @@ KParts::ReadOnlyPart *Frame::part() const
return m_part;
}
-QWidget *Frame::widget() const
+TQWidget *Frame::widget() const
{
return m_widget;
}
-void Frame::setTitle(const QString &s)
+void Frame::setTitle(const TQString &s)
{
if (m_title != s)
{
@@ -113,17 +113,17 @@ void Frame::setTitle(const QString &s)
}
}
-void Frame::setCaption(const QString &s)
+void Frame::setCaption(const TQString &s)
{
if(m_progressItem) m_progressItem->setLabel(s);
m_caption=s;
emit captionChanged(s);
}
-void Frame::setStatusText(const QString &s)
+void Frame::setStatusText(const TQString &s)
{
m_statusText=s;
- m_statusText.replace(QRegExp("<[^>]*>"), "");
+ m_statusText.replace(TQRegExp("<[^>]*>"), "");
emit statusText(m_statusText);
}
@@ -146,7 +146,7 @@ void Frame::setState(int a)
emit started();
break;
case Frame::Canceled:
- emit canceled(QString::null);
+ emit canceled(TQString::null);
break;
case Frame::Idle:
case Frame::Completed:
@@ -156,17 +156,17 @@ void Frame::setState(int a)
-const QString& Frame::title() const
+const TQString& Frame::title() const
{
return m_title;
}
-const QString& Frame::caption() const
+const TQString& Frame::caption() const
{
return m_caption;
}
-const QString& Frame::statusText() const
+const TQString& Frame::statusText() const
{
return m_statusText;
}
@@ -174,14 +174,14 @@ const QString& Frame::statusText() const
void Frame::setStarted()
{
if(m_progressId.isNull() || m_progressId.isEmpty()) m_progressId = KPIM::ProgressManager::getUniqueID();
- m_progressItem = KPIM::ProgressManager::createProgressItem(m_progressId, QStyleSheet::escape( title() ), QString::null, false);
+ m_progressItem = KPIM::ProgressManager::createProgressItem(m_progressId, TQStyleSheet::escape( title() ), TQString::null, false);
m_progressItem->setStatus(i18n("Loading..."));
- //connect(m_progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), SLOT(slotAbortFetch()));
+ //connect(m_progressItem, TQT_SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), TQT_SLOT(slotAbortFetch()));
m_state=Started;
emit started();
}
-void Frame::setCanceled(const QString &s)
+void Frame::setCanceled(const TQString &s)
{
if(m_progressItem) {
m_progressItem->setStatus(i18n("Loading canceled"));