diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/akregator_view.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/akregator_view.cpp')
-rw-r--r-- | akregator/src/akregator_view.cpp | 290 |
1 files changed, 145 insertions, 145 deletions
diff --git a/akregator/src/akregator_view.cpp b/akregator/src/akregator_view.cpp index f45f784ed..d238307d2 100644 --- a/akregator/src/akregator_view.cpp +++ b/akregator/src/akregator_view.cpp @@ -84,24 +84,24 @@ #include <kxmlguifactory.h> #include <kparts/partmanager.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qdatetime.h> // for startup time measure -#include <qfile.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qmultilineedit.h> -#include <qpopupmenu.h> -#include <qptrlist.h> -#include <qstylesheet.h> -#include <qtextstream.h> -#include <qtimer.h> -#include <qtoolbutton.h> -#include <qtooltip.h> -#include <qvaluevector.h> -#include <qwhatsthis.h> -#include <qclipboard.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqdatetime.h> // for startup time measure +#include <tqfile.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqmultilineedit.h> +#include <tqpopupmenu.h> +#include <tqptrlist.h> +#include <tqstylesheet.h> +#include <tqtextstream.h> +#include <tqtimer.h> +#include <tqtoolbutton.h> +#include <tqtooltip.h> +#include <tqvaluevector.h> +#include <tqwhatsthis.h> +#include <tqclipboard.h> namespace Akregator { @@ -145,13 +145,13 @@ class View::DeleteNodeVisitor : public TreeNodeVisitor virtual bool visitTagNode(TagNode* node) { - QString msg = i18n("<qt>Are you sure you want to delete tag <b>%1</b>? The tag will be removed from all articles.</qt>").arg(node->title()); + TQString msg = i18n("<qt>Are you sure you want to delete tag <b>%1</b>? The tag will be removed from all articles.</qt>").arg(node->title()); if (KMessageBox::warningContinueCancel(0, msg, i18n("Delete Tag"), KStdGuiItem::del()) == KMessageBox::Continue) { Tag tag = node->tag(); - QValueList<Article> articles = m_view->m_feedList->rootNode()->articles(tag.id()); + TQValueList<Article> articles = m_view->m_feedList->rootNode()->articles(tag.id()); node->setNotificationMode(false); - for (QValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) (*it).removeTag(tag.id()); node->setNotificationMode(true); Kernel::self()->tagSet()->remove(tag); @@ -162,7 +162,7 @@ class View::DeleteNodeVisitor : public TreeNodeVisitor virtual bool visitFolder(Folder* node) { - QString msg; + TQString msg; if (node->title().isEmpty()) msg = i18n("<qt>Are you sure you want to delete this folder and its feeds and subfolders?</qt>"); else @@ -178,7 +178,7 @@ class View::DeleteNodeVisitor : public TreeNodeVisitor virtual bool visitFeed(Feed* node) { - QString msg; + TQString msg; if (node->title().isEmpty()) msg = i18n("<qt>Are you sure you want to delete this feed?</qt>"); else @@ -210,38 +210,38 @@ View::~View() kdDebug() << "View::~View(): leaving" << endl; } -View::View( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const char *name) - : QWidget(parent, name), m_viewMode(NormalView), m_actionManager(actionManager) +View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, const char *name) + : TQWidget(parent, name), m_viewMode(NormalView), m_actionManager(actionManager) { m_editNodePropertiesVisitor = new EditNodePropertiesVisitor(this); m_deleteNodeVisitor = new DeleteNodeVisitor(this); - m_keepFlagIcon = QPixmap(locate("data", "akregator/pics/akregator_flag.png")); + m_keepFlagIcon = TQPixmap(locate("data", "akregator/pics/akregator_flag.png")); m_part = part; m_feedList = new FeedList(); m_tagNodeList = new TagNodeList(m_feedList, Kernel::self()->tagSet()); m_shuttingDown = false; m_displayingAboutPage = false; m_currentFrame = 0L; - setFocusPolicy(QWidget::StrongFocus); + setFocusPolicy(TQWidget::StrongFocus); - QVBoxLayout *lt = new QVBoxLayout( this ); + TQVBoxLayout *lt = new TQVBoxLayout( this ); - m_horizontalSplitter = new QSplitter(QSplitter::Horizontal, this); + m_horizontalSplitter = new TQSplitter(TQSplitter::Horizontal, this); m_horizontalSplitter->setOpaqueResize(true); lt->addWidget(m_horizontalSplitter); - connect (Kernel::self()->fetchQueue(), SIGNAL(fetched(Feed*)), this, SLOT(slotFeedFetched(Feed*))); - connect (Kernel::self()->fetchQueue(), SIGNAL(signalStarted()), this, SLOT(slotFetchingStarted())); - connect (Kernel::self()->fetchQueue(), SIGNAL(signalStopped()), this, SLOT(slotFetchingStopped())); + connect (Kernel::self()->fetchQueue(), TQT_SIGNAL(fetched(Feed*)), this, TQT_SLOT(slotFeedFetched(Feed*))); + connect (Kernel::self()->fetchQueue(), TQT_SIGNAL(signalStarted()), this, TQT_SLOT(slotFetchingStarted())); + connect (Kernel::self()->fetchQueue(), TQT_SIGNAL(signalStopped()), this, TQT_SLOT(slotFetchingStopped())); - connect(Kernel::self()->tagSet(), SIGNAL(signalTagAdded(const Tag&)), this, SLOT(slotTagCreated(const Tag&))); - connect(Kernel::self()->tagSet(), SIGNAL(signalTagRemoved(const Tag&)), this, SLOT(slotTagRemoved(const Tag&))); + connect(Kernel::self()->tagSet(), TQT_SIGNAL(signalTagAdded(const Tag&)), this, TQT_SLOT(slotTagCreated(const Tag&))); + connect(Kernel::self()->tagSet(), TQT_SIGNAL(signalTagRemoved(const Tag&)), this, TQT_SLOT(slotTagRemoved(const Tag&))); m_listTabWidget = new ListTabWidget(m_horizontalSplitter); m_actionManager->initListTabWidget(m_listTabWidget); - connect(m_listTabWidget, SIGNAL(signalNodeSelected(TreeNode*)), this, SLOT(slotNodeSelected(TreeNode*))); + connect(m_listTabWidget, TQT_SIGNAL(signalNodeSelected(TreeNode*)), this, TQT_SLOT(slotNodeSelected(TreeNode*))); if (!Settings::showTaggingGUI()) m_listTabWidget->setViewMode(ListTabWidget::single); @@ -249,16 +249,16 @@ View::View( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const m_feedListView = new NodeListView( this, "feedtree" ); m_listTabWidget->addView(m_feedListView, i18n("Feeds"), KGlobal::iconLoader()->loadIcon("folder", KIcon::Small)); - connect(m_feedListView, SIGNAL(signalContextMenu(KListView*, TreeNode*, const QPoint&)), this, SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const QPoint&))); + connect(m_feedListView, TQT_SIGNAL(signalContextMenu(KListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const TQPoint&))); - connect(m_feedListView, SIGNAL(signalDropped (KURL::List &, TreeNode*, - Folder*)), this, SLOT(slotFeedURLDropped (KURL::List &, + connect(m_feedListView, TQT_SIGNAL(signalDropped (KURL::List &, TreeNode*, + Folder*)), this, TQT_SLOT(slotFeedURLDropped (KURL::List &, TreeNode*, Folder*))); m_tagNodeListView = new NodeListView(this); m_listTabWidget->addView(m_tagNodeListView, i18n("Tags"), KGlobal::iconLoader()->loadIcon("rss_tag", KIcon::Small)); - connect(m_tagNodeListView, SIGNAL(signalContextMenu(KListView*, TreeNode*, const QPoint&)), this, SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const QPoint&))); + connect(m_tagNodeListView, TQT_SIGNAL(signalContextMenu(KListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const TQPoint&))); ProgressManager::self()->setFeedList(m_feedList); @@ -266,17 +266,17 @@ View::View( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const m_tabs = new TabWidget(m_horizontalSplitter); m_actionManager->initTabWidget(m_tabs); - connect( m_part, SIGNAL(signalSettingsChanged()), m_tabs, SLOT(slotSettingsChanged())); + connect( m_part, TQT_SIGNAL(signalSettingsChanged()), m_tabs, TQT_SLOT(slotSettingsChanged())); - connect( m_tabs, SIGNAL( currentFrameChanged(Frame *) ), this, - SLOT( slotFrameChanged(Frame *) ) ); + connect( m_tabs, TQT_SIGNAL( currentFrameChanged(Frame *) ), this, + TQT_SLOT( slotFrameChanged(Frame *) ) ); - QWhatsThis::add(m_tabs, i18n("You can view multiple articles in several open tabs.")); + TQWhatsThis::add(m_tabs, i18n("You can view multiple articles in several open tabs.")); - m_mainTab = new QWidget(this, "Article Tab"); - QVBoxLayout *mainTabLayout = new QVBoxLayout( m_mainTab, 0, 2, "mainTabLayout"); + m_mainTab = new TQWidget(this, "Article Tab"); + TQVBoxLayout *mainTabLayout = new TQVBoxLayout( m_mainTab, 0, 2, "mainTabLayout"); - QWhatsThis::add(m_mainTab, i18n("Articles list.")); + TQWhatsThis::add(m_mainTab, i18n("Articles list.")); m_searchBar = new SearchBar(m_mainTab); @@ -285,36 +285,36 @@ View::View( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const mainTabLayout->addWidget(m_searchBar); - m_articleSplitter = new QSplitter(QSplitter::Vertical, m_mainTab, "panner2"); + m_articleSplitter = new TQSplitter(TQSplitter::Vertical, m_mainTab, "panner2"); m_articleList = new ArticleListView( m_articleSplitter, "articles" ); m_actionManager->initArticleListView(m_articleList); - connect( m_articleList, SIGNAL(signalMouseButtonPressed(int, const Article&, const QPoint &, int)), this, SLOT(slotMouseButtonPressed(int, const Article&, const QPoint &, int))); + connect( m_articleList, TQT_SIGNAL(signalMouseButtonPressed(int, const Article&, const TQPoint &, int)), this, TQT_SLOT(slotMouseButtonPressed(int, const Article&, const TQPoint &, int))); // use selectionChanged instead of clicked - connect( m_articleList, SIGNAL(signalArticleChosen(const Article&)), - this, SLOT( slotArticleSelected(const Article&)) ); - connect( m_articleList, SIGNAL(signalDoubleClicked(const Article&, const QPoint&, int)), - this, SLOT( slotOpenArticleExternal(const Article&, const QPoint&, int)) ); + connect( m_articleList, TQT_SIGNAL(signalArticleChosen(const Article&)), + this, TQT_SLOT( slotArticleSelected(const Article&)) ); + connect( m_articleList, TQT_SIGNAL(signalDoubleClicked(const Article&, const TQPoint&, int)), + this, TQT_SLOT( slotOpenArticleExternal(const Article&, const TQPoint&, int)) ); m_articleViewer = new ArticleViewer(m_articleSplitter, "article_viewer"); m_articleViewer->setSafeMode(); // disable JS, Java, etc... m_actionManager->initArticleViewer(m_articleViewer); - connect(m_searchBar, SIGNAL(signalSearch(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)), m_articleList, SLOT(slotSetFilter(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&))); + connect(m_searchBar, TQT_SIGNAL(signalSearch(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)), m_articleList, TQT_SLOT(slotSetFilter(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&))); - connect(m_searchBar, SIGNAL(signalSearch(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)), m_articleViewer, SLOT(slotSetFilter(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&))); + connect(m_searchBar, TQT_SIGNAL(signalSearch(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)), m_articleViewer, TQT_SLOT(slotSetFilter(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&))); - connect( m_articleViewer, SIGNAL(urlClicked(const KURL&, Viewer*, bool, bool)), - this, SLOT(slotUrlClickedInViewer(const KURL&, Viewer*, bool, bool)) ); + connect( m_articleViewer, TQT_SIGNAL(urlClicked(const KURL&, Viewer*, bool, bool)), + this, TQT_SLOT(slotUrlClickedInViewer(const KURL&, Viewer*, bool, bool)) ); - connect( m_articleViewer->browserExtension(), SIGNAL(mouseOverInfo(const KFileItem *)), - this, SLOT(slotMouseOverInfo(const KFileItem *)) ); + connect( m_articleViewer->browserExtension(), TQT_SIGNAL(mouseOverInfo(const KFileItem *)), + this, TQT_SLOT(slotMouseOverInfo(const KFileItem *)) ); - connect( m_part, SIGNAL(signalSettingsChanged()), m_articleViewer, SLOT(slotPaletteOrFontChanged())); - QWhatsThis::add(m_articleViewer->widget(), i18n("Browsing area.")); + connect( m_part, TQT_SIGNAL(signalSettingsChanged()), m_articleViewer, TQT_SLOT(slotPaletteOrFontChanged())); + TQWhatsThis::add(m_articleViewer->widget(), i18n("Browsing area.")); mainTabLayout->addWidget( m_articleSplitter ); m_mainFrame=new Frame(this, m_part, m_mainTab, i18n("Articles"), false); @@ -335,18 +335,18 @@ View::View( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const m_displayingAboutPage = true; } - m_fetchTimer = new QTimer(this); - connect( m_fetchTimer, SIGNAL(timeout()), this, SLOT(slotDoIntervalFetches()) ); + m_fetchTimer = new TQTimer(this); + connect( m_fetchTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDoIntervalFetches()) ); m_fetchTimer->start(1000*60); // delete expired articles once per hour - m_expiryTimer = new QTimer(this); - connect(m_expiryTimer, SIGNAL(timeout()), this, - SLOT(slotDeleteExpiredArticles()) ); + m_expiryTimer = new TQTimer(this); + connect(m_expiryTimer, TQT_SIGNAL(timeout()), this, + TQT_SLOT(slotDeleteExpiredArticles()) ); m_expiryTimer->start(3600*1000); - m_markReadTimer = new QTimer(this); - connect(m_markReadTimer, SIGNAL(timeout()), this, SLOT(slotSetCurrentArticleReadDelayed()) ); + m_markReadTimer = new TQTimer(this); + connect(m_markReadTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSetCurrentArticleReadDelayed()) ); switch (Settings::viewMode()) { @@ -366,7 +366,7 @@ View::View( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const m_searchBar->slotSetText(Settings::textFilter()); } - QTimer::singleShot(1000, this, SLOT(slotDeleteExpiredArticles()) ); + TQTimer::singleShot(1000, this, TQT_SLOT(slotDeleteExpiredArticles()) ); m_part->mergePart(m_articleViewer); } @@ -416,17 +416,17 @@ void View::slotOpenNewTab(const KURL& url, bool background) { PageViewer* page = new PageViewer(this, "page"); - connect( m_part, SIGNAL(signalSettingsChanged()), page, SLOT(slotPaletteOrFontChanged())); + connect( m_part, TQT_SIGNAL(signalSettingsChanged()), page, TQT_SLOT(slotPaletteOrFontChanged())); - connect( page, SIGNAL(setTabIcon(const QPixmap&)), - this, SLOT(setTabIcon(const QPixmap&))); - connect( page, SIGNAL(urlClicked(const KURL &, Viewer*, bool, bool)), - this, SLOT(slotUrlClickedInViewer(const KURL &, Viewer*, bool, bool)) ); + connect( page, TQT_SIGNAL(setTabIcon(const TQPixmap&)), + this, TQT_SLOT(setTabIcon(const TQPixmap&))); + connect( page, TQT_SIGNAL(urlClicked(const KURL &, Viewer*, bool, bool)), + this, TQT_SLOT(slotUrlClickedInViewer(const KURL &, Viewer*, bool, bool)) ); Frame* frame = new Frame(this, page, page->widget(), i18n("Untitled")); frame->setAutoDeletePart(true); // delete page viewer when removing the tab - connect(page, SIGNAL(setWindowCaption (const QString &)), frame, SLOT(setTitle (const QString &))); + connect(page, TQT_SIGNAL(setWindowCaption (const TQString &)), frame, TQT_SLOT(setTitle (const TQString &))); connectFrame(frame); m_tabs->addFrame(frame); @@ -439,7 +439,7 @@ void View::slotOpenNewTab(const KURL& url, bool background) } -void View::setTabIcon(const QPixmap& icon) +void View::setTabIcon(const TQPixmap& icon) { const PageViewer *s = dynamic_cast<const PageViewer*>(sender()); if (s) { @@ -449,21 +449,21 @@ void View::setTabIcon(const QPixmap& icon) void View::connectFrame(Frame *f) { - connect(f, SIGNAL(statusText(const QString &)), this, SLOT(slotStatusText(const QString&))); - connect(f, SIGNAL(captionChanged (const QString &)), this, SLOT(slotCaptionChanged (const QString &))); - connect(f, SIGNAL(loadingProgress(int)), this, SLOT(slotLoadingProgress(int)) ); - connect(f, SIGNAL(started()), this, SLOT(slotStarted())); - connect(f, SIGNAL(completed()), this, SLOT(slotCompleted())); - connect(f, SIGNAL(canceled(const QString &)), this, SLOT(slotCanceled(const QString&))); + connect(f, TQT_SIGNAL(statusText(const TQString &)), this, TQT_SLOT(slotStatusText(const TQString&))); + connect(f, TQT_SIGNAL(captionChanged (const TQString &)), this, TQT_SLOT(slotCaptionChanged (const TQString &))); + connect(f, TQT_SIGNAL(loadingProgress(int)), this, TQT_SLOT(slotLoadingProgress(int)) ); + connect(f, TQT_SIGNAL(started()), this, TQT_SLOT(slotStarted())); + connect(f, TQT_SIGNAL(completed()), this, TQT_SLOT(slotCompleted())); + connect(f, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotCanceled(const TQString&))); } -void View::slotStatusText(const QString &c) +void View::slotStatusText(const TQString &c) { if (sender() == m_currentFrame) emit setStatusBarText(c); } -void View::slotCaptionChanged(const QString &c) +void View::slotCaptionChanged(const TQString &c) { if (sender() == m_currentFrame) emit setWindowCaption(c); @@ -475,7 +475,7 @@ void View::slotStarted() emit signalStarted(0); } -void View::slotCanceled(const QString &s) +void View::slotCanceled(const TQString &s) { if (sender() == m_currentFrame) emit signalCanceled(s); @@ -493,7 +493,7 @@ void View::slotLoadingProgress(int percent) emit setProgress(percent); } -bool View::importFeeds(const QDomDocument& doc) +bool View::importFeeds(const TQDomDocument& doc) { FeedList* feedList = new FeedList(); bool parsed = feedList->readFromXML(doc); @@ -504,7 +504,7 @@ bool View::importFeeds(const QDomDocument& doc) delete feedList; return false; } - QString title = feedList->title(); + TQString title = feedList->title(); if (title.isEmpty()) title = i18n("Imported Folder"); @@ -525,7 +525,7 @@ bool View::importFeeds(const QDomDocument& doc) return true; } -bool View::loadFeeds(const QDomDocument& doc, Folder* parent) +bool View::loadFeeds(const TQDomDocument& doc, Folder* parent) { FeedList* feedList = new FeedList(); bool parsed = feedList->readFromXML(doc); @@ -554,9 +554,9 @@ bool View::loadFeeds(const QDomDocument& doc, Folder* parent) m_feedListView->setNodeList(m_feedList); m_tagNodeListView->setNodeList(m_tagNodeList); - QStringList tagIDs = m_feedList->rootNode()->tags(); - QStringList::ConstIterator end = tagIDs.end(); - for (QStringList::ConstIterator it = tagIDs.begin(); it != end; ++it) + TQStringList tagIDs = m_feedList->rootNode()->tags(); + TQStringList::ConstIterator end = tagIDs.end(); + for (TQStringList::ConstIterator it = tagIDs.begin(); it != end; ++it) { kdDebug() << *it << endl; // create a tag for every tag ID in the archive that is not part of the tagset @@ -586,12 +586,12 @@ void View::slotDeleteExpiredArticles() rootNode->slotDeleteExpiredArticles(); } -QDomDocument View::feedListToOPML() +TQDomDocument View::feedListToOPML() { return m_feedList->toXML(); } -void View::addFeedToGroup(const QString& url, const QString& groupName) +void View::addFeedToGroup(const TQString& url, const TQString& groupName) { // Locate the group. @@ -630,7 +630,7 @@ void View::slotNormalView() m_articleViewer->slotShowSummary(m_listTabWidget->activeView()->selectedNode()); } - m_articleSplitter->setOrientation(QSplitter::Vertical); + m_articleSplitter->setOrientation(TQSplitter::Vertical); m_viewMode = NormalView; Settings::setViewMode( m_viewMode ); @@ -654,7 +654,7 @@ void View::slotWidescreenView() m_articleViewer->slotShowSummary(m_listTabWidget->activeView()->selectedNode()); } - m_articleSplitter->setOrientation(QSplitter::Horizontal); + m_articleSplitter->setOrientation(TQSplitter::Horizontal); m_viewMode = WidescreenView; Settings::setViewMode( m_viewMode ); @@ -697,7 +697,7 @@ void View::slotFrameChanged(Frame *f) emit signalStarted(0); break; case Frame::Canceled: - emit signalCanceled(QString::null); + emit signalCanceled(TQString::null); break; case Frame::Idle: case Frame::Completed: @@ -706,7 +706,7 @@ void View::slotFrameChanged(Frame *f) } } -void View::slotFeedTreeContextMenu(KListView*, TreeNode* /*node*/, const QPoint& /*p*/) +void View::slotFeedTreeContextMenu(KListView*, TreeNode* /*node*/, const TQPoint& /*p*/) { m_tabs->showPage(m_mainTab); } @@ -824,8 +824,8 @@ void View::slotOpenURL(const KURL& url, Viewer* currentViewer, BrowserRun::Openi KParts::URLArgs args = currentViewer ? currentViewer->browserExtension()->urlArgs() : KParts::URLArgs(); BrowserRun* r = new BrowserRun(this, currentViewer, url, args, mode); - connect(r, SIGNAL(signalOpenInViewer(const KURL&, Akregator::Viewer*, Akregator::BrowserRun::OpeningMode)), - this, SLOT(slotOpenURLReply(const KURL&, Akregator::Viewer*, Akregator::BrowserRun::OpeningMode))); + connect(r, TQT_SIGNAL(signalOpenInViewer(const KURL&, Akregator::Viewer*, Akregator::BrowserRun::OpeningMode)), + this, TQT_SLOT(slotOpenURLReply(const KURL&, Akregator::Viewer*, Akregator::BrowserRun::OpeningMode))); } } @@ -878,10 +878,10 @@ void View::slotFeedAdd() TreeNode* lastChild = group->children().last(); - addFeed(QString::null, lastChild, group, false); + addFeed(TQString::null, lastChild, group, false); } -void View::addFeed(const QString& url, TreeNode *after, Folder* parent, bool autoExec) +void View::addFeed(const TQString& url, TreeNode *after, Folder* parent, bool autoExec) { AddFeedDialog *afd = new AddFeedDialog( 0, "add_feed" ); @@ -892,7 +892,7 @@ void View::addFeed(const QString& url, TreeNode *after, Folder* parent, bool aut afd->slotOk(); else { - if (afd->exec() != QDialog::Accepted) + if (afd->exec() != TQDialog::Accepted) { delete afd; return; @@ -908,7 +908,7 @@ void View::addFeed(const QString& url, TreeNode *after, Folder* parent, bool aut dlg->selectFeedName(); if (!autoExec) - if (dlg->exec() != QDialog::Accepted) + if (dlg->exec() != TQDialog::Accepted) { delete feed; delete dlg; @@ -946,7 +946,7 @@ void View::slotFeedAddGroup() bool Ok; - QString text = KInputDialog::getText(i18n("Add Folder"), i18n("Folder name:"), "", &Ok); + TQString text = KInputDialog::getText(i18n("Add Folder"), i18n("Folder name:"), "", &Ok); if (Ok) { @@ -1069,7 +1069,7 @@ void View::slotFetchingStopped() { m_mainFrame->setState(Frame::Completed); m_actionManager->action("feed_stop")->setEnabled(false); - m_mainFrame->setStatusText(QString::null); + m_mainFrame->setStatusText(TQString::null); } void View::slotFeedFetched(Feed *feed) @@ -1077,9 +1077,9 @@ void View::slotFeedFetched(Feed *feed) // iterate through the articles (once again) to do notifications properly if (feed->articles().count() > 0) { - QValueList<Article> articles = feed->articles(); - QValueList<Article>::ConstIterator it; - QValueList<Article>::ConstIterator end = articles.end(); + TQValueList<Article> articles = feed->articles(); + TQValueList<Article>::ConstIterator it; + TQValueList<Article>::ConstIterator end = articles.end(); for (it = articles.begin(); it != end; ++it) { if ((*it).status()==Article::New && ((*it).feed()->useNotification() || Settings::useNotifications())) @@ -1090,7 +1090,7 @@ void View::slotFeedFetched(Feed *feed) } } -void View::slotMouseButtonPressed(int button, const Article& article, const QPoint &, int) +void View::slotMouseButtonPressed(int button, const Article& article, const TQPoint &, int) { if (button == Qt::MidButton) { @@ -1112,8 +1112,8 @@ void View::slotMouseButtonPressed(int button, const Article& article, const QPoi void View::slotAssignTag(const Tag& tag, bool assign) { kdDebug() << (assign ? "assigned" : "removed") << " tag \"" << tag.id() << "\"" << endl; - QValueList<Article> selectedArticles = m_articleList->selectedArticles(); - for (QValueList<Article>::Iterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it) + TQValueList<Article> selectedArticles = m_articleList->selectedArticles(); + for (TQValueList<Article>::Iterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it) { if (assign) (*it).addTag(tag.id()); @@ -1126,8 +1126,8 @@ void View::slotAssignTag(const Tag& tag, bool assign) void View::slotRemoveTag(const Tag& tag) { kdDebug() << "remove tag \"" << tag.id() << "\" from selected articles" << endl; - QValueList<Article> selectedArticles = m_articleList->selectedArticles(); - for (QValueList<Article>::Iterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it) + TQValueList<Article> selectedArticles = m_articleList->selectedArticles(); + for (TQValueList<Article>::Iterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it) (*it).removeTag(tag.id()); updateTagActions(); @@ -1192,7 +1192,7 @@ void View::slotArticleSelected(const Article& article) m_articleViewer->slotShowArticle(a); } -void View::slotOpenArticleExternal(const Article& article, const QPoint&, int) +void View::slotOpenArticleExternal(const Article& article, const TQPoint&, int) { if (!article.isNull()) Viewer::displayInExternalBrowser(article.link()); @@ -1220,7 +1220,7 @@ void View::slotOpenCurrentArticle() void View::slotOpenCurrentArticleExternal() { - slotOpenArticleExternal(m_articleList->currentArticle(), QPoint(), 0); + slotOpenArticleExternal(m_articleList->currentArticle(), TQPoint(), 0); } void View::slotOpenCurrentArticleBackgroundTab() @@ -1250,7 +1250,7 @@ void View::slotCopyLinkAddress() if(article.isNull()) return; - QString link; + TQString link; if (article.link().isValid() || (article.guidIsPermaLink() && KURL(article.guid()).isValid())) { // in case link isn't valid, fall back to the guid permaLink. @@ -1258,7 +1258,7 @@ void View::slotCopyLinkAddress() link = article.link().url(); else link = article.guid(); - QClipboard *cb = QApplication::clipboard(); + QClipboard *cb = TQApplication::clipboard(); cb->setText(link, QClipboard::Clipboard); cb->setText(link, QClipboard::Selection); } @@ -1296,15 +1296,15 @@ void View::slotArticleDelete() if ( m_viewMode == CombinedView ) return; - QValueList<Article> articles = m_articleList->selectedArticles(); + TQValueList<Article> articles = m_articleList->selectedArticles(); - QString msg; + TQString msg; switch (articles.count()) { case 0: return; case 1: - msg = i18n("<qt>Are you sure you want to delete article <b>%1</b>?</qt>").arg(QStyleSheet::escape(articles.first().title())); + msg = i18n("<qt>Are you sure you want to delete article <b>%1</b>?</qt>").arg(TQStyleSheet::escape(articles.first().title())); break; default: msg = i18n("<qt>Are you sure you want to delete the selected article?</qt>", @@ -1317,8 +1317,8 @@ void View::slotArticleDelete() if (m_listTabWidget->activeView()->selectedNode()) m_listTabWidget->activeView()->selectedNode()->setNotificationMode(false); - QValueList<Feed*> feeds; - for (QValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) + TQValueList<Feed*> feeds; + for (TQValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) { Feed* feed = (*it).feed(); if (!feeds.contains(feed)) @@ -1327,7 +1327,7 @@ void View::slotArticleDelete() (*it).setDeleted(); } - for (QValueList<Feed*>::Iterator it = feeds.begin(); it != feeds.end(); ++it) + for (TQValueList<Feed*>::Iterator it = feeds.begin(); it != feeds.end(); ++it) { (*it)->setNotificationMode(true); } @@ -1340,28 +1340,28 @@ void View::slotArticleDelete() void View::slotArticleToggleKeepFlag(bool /*enabled*/) { - QValueList<Article> articles = m_articleList->selectedArticles(); + TQValueList<Article> articles = m_articleList->selectedArticles(); if (articles.isEmpty()) return; bool allFlagsSet = true; - for (QValueList<Article>::Iterator it = articles.begin(); allFlagsSet && it != articles.end(); ++it) + for (TQValueList<Article>::Iterator it = articles.begin(); allFlagsSet && it != articles.end(); ++it) if (!(*it).keep()) allFlagsSet = false; - for (QValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) (*it).setKeep(!allFlagsSet); } void View::slotSetSelectedArticleRead() { - QValueList<Article> articles = m_articleList->selectedArticles(); + TQValueList<Article> articles = m_articleList->selectedArticles(); if (articles.isEmpty()) return; - for (QValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) (*it).setStatus(Article::Read); } @@ -1385,7 +1385,7 @@ void View::slotTextToSpeechRequest() } else { - QString selectedText = static_cast<PageViewer *>(m_currentFrame->part())->selectedText(); + TQString selectedText = static_cast<PageViewer *>(m_currentFrame->part())->selectedText(); if (!selectedText.isEmpty()) SpeechClient::self()->slotSpeak(selectedText, "en"); @@ -1394,23 +1394,23 @@ void View::slotTextToSpeechRequest() void View::slotSetSelectedArticleUnread() { - QValueList<Article> articles = m_articleList->selectedArticles(); + TQValueList<Article> articles = m_articleList->selectedArticles(); if (articles.isEmpty()) return; - for (QValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) (*it).setStatus(Article::Unread); } void View::slotSetSelectedArticleNew() { - QValueList<Article> articles = m_articleList->selectedArticles(); + TQValueList<Article> articles = m_articleList->selectedArticles(); if (articles.isEmpty()) return; - for (QValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList<Article>::Iterator it = articles.begin(); it != articles.end(); ++it) (*it).setStatus(Article::New); } @@ -1433,7 +1433,7 @@ void View::slotMouseOverInfo(const KFileItem *kifi) } else { - m_mainFrame->setStatusText(QString::null); + m_mainFrame->setStatusText(TQString::null); } } @@ -1456,8 +1456,8 @@ void View::readProperties(KConfig* config) m_listTabWidget->activeView()->setSelectedNode(selNode); } - QStringList urls = config->readListEntry("FeedBrowserURLs"); - QStringList::ConstIterator it = urls.begin(); + TQStringList urls = config->readListEntry("FeedBrowserURLs"); + TQStringList::ConstIterator it = urls.begin(); for (; it != urls.end(); ++it) { KURL url = KURL::fromPathOrURL(*it); @@ -1480,9 +1480,9 @@ void View::saveProperties(KConfig* config) } // save browser URLs - QStringList urls; - QPtrList<Frame> frames = m_tabs->frames(); - QPtrList<Frame>::ConstIterator it = frames.begin(); + TQStringList urls; + TQPtrList<Frame> frames = m_tabs->frames(); + TQPtrList<Frame>::ConstIterator it = frames.begin(); for (; it != frames.end(); ++it) { Frame *frame = *it; @@ -1501,25 +1501,25 @@ void View::saveProperties(KConfig* config) void View::connectToFeedList(FeedList* feedList) { - connect(feedList->rootNode(), SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotSetTotalUnread())); + connect(feedList->rootNode(), TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotSetTotalUnread())); slotSetTotalUnread(); } void View::disconnectFromFeedList(FeedList* feedList) { - disconnect(feedList->rootNode(), SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotSetTotalUnread())); + disconnect(feedList->rootNode(), TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotSetTotalUnread())); } void View::updateTagActions() { - QStringList tags; + TQStringList tags; - QValueList<Article> selectedArticles = m_articleList->selectedArticles(); + TQValueList<Article> selectedArticles = m_articleList->selectedArticles(); - for (QValueList<Article>::ConstIterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it) + for (TQValueList<Article>::ConstIterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it) { - QStringList atags = (*it).tags(); - for (QStringList::ConstIterator it2 = atags.begin(); it2 != atags.end(); ++it2) + TQStringList atags = (*it).tags(); + for (TQStringList::ConstIterator it2 = atags.begin(); it2 != atags.end(); ++it2) { if (!tags.contains(*it2)) tags += *it2; |