diff options
author | Mavridis Philippe <[email protected]> | 2021-01-13 19:30:17 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-01-13 19:30:17 +0200 |
commit | 357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (patch) | |
tree | dc3ef0e6fedd64f5fb177c114f72e1515a07cd1b /src/frame.cpp | |
parent | c6cbd71bc169ac0e927e52325dbbbcb506abbc73 (diff) | |
download | klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.tar.gz klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.zip |
Conversion Qt3->TQt
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/frame.cpp')
-rw-r--r-- | src/frame.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/frame.cpp b/src/frame.cpp index 6d2c9e9..eabb217 100644 --- a/src/frame.cpp +++ b/src/frame.cpp @@ -13,8 +13,8 @@ using namespace KlamAV; -Frame::Frame(QObject * parent, KParts::ReadOnlyPart *p, QWidget *visWidget, const QString& tit, bool watchSignals) - :QObject(parent, "KlamAVFrame") +Frame::Frame(TQObject * parent, KParts::ReadOnlyPart *p, TQWidget *visWidget, const TQString& tit, bool watchSignals) + :TQObject(parent, "KlamAVFrame") { m_part=p; m_widget=visWidget; @@ -25,8 +25,8 @@ 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, SIGNAL(setWindowCaption (const TQString &)), this, SLOT(setCaption (const TQString &))); + connect(m_part, SIGNAL(setStatusBarText (const TQString &)), this, SLOT(setStatusText (const TQString &))); KParts::BrowserExtension *ext=KParts::BrowserExtension::childObject( p ); if (ext) @@ -34,14 +34,14 @@ Frame::Frame(QObject * parent, KParts::ReadOnlyPart *p, QWidget *visWidget, cons 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(canceled(const TQString &)), this, SLOT(setCanceled(const TQString&))); connect(p, SIGNAL(completed(bool)), this, SLOT(setCompleted())); /* KActionCollection *coll=p->actionCollection(); if (coll) { - connect( coll, SIGNAL( actionStatusText( const QString & ) ), - this, SLOT( slotActionStatusText( const QString & ) ) ); + connect( coll, SIGNAL( actionStatusText( const TQString & ) ), + this, SLOT( slotActionStatusText( const TQString & ) ) ); connect( coll, SIGNAL( clearStatusText() ), this, SLOT( slotClearStatusText() ) ); } @@ -66,24 +66,24 @@ 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) { m_title=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; emit statusText(s); @@ -108,7 +108,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: @@ -118,17 +118,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; } @@ -136,14 +136,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, title(), QString::null, false); + //m_progressItem = KPIM::ProgressManager::createProgressItem(m_progressId, title(), TQString::null, false); //m_progressItem->setStatus(i18n("Loading...")); //connect(m_progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), 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")); |