diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/sidebar/newsticker/nspanel.cpp | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/sidebar/newsticker/nspanel.cpp')
-rw-r--r-- | konq-plugins/sidebar/newsticker/nspanel.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/konq-plugins/sidebar/newsticker/nspanel.cpp b/konq-plugins/sidebar/newsticker/nspanel.cpp index 8086b35..a5c1261 100644 --- a/konq-plugins/sidebar/newsticker/nspanel.cpp +++ b/konq-plugins/sidebar/newsticker/nspanel.cpp @@ -22,9 +22,9 @@ Boston, MA 02110-1301, USA. */ -#include <qlistview.h> -#include <qfontmetrics.h> -#include <qtimer.h> +#include <tqlistview.h> +#include <tqfontmetrics.h> +#include <tqtimer.h> #include <kdebug.h> #include <klistbox.h> #include "nspanel.h" @@ -35,22 +35,22 @@ namespace KSB_News { //////////////////////////////////////////////////////////////// // ListBox including ToolTip for item //////////////////////////////////////////////////////////////// - TTListBox::TTListBox(QWidget *parent, const char *name, WFlags f) + TTListBox::TTListBox(TQWidget *parent, const char *name, WFlags f) : KListBox(parent, name, f), - QToolTip(this) { + TQToolTip(this) { } void TTListBox::clear() { KListBox::clear(); } - void TTListBox::maybeTip(const QPoint &point) { - QListBoxItem *item = itemAt(point); + void TTListBox::maybeTip(const TQPoint &point) { + TQListBoxItem *item = itemAt(point); if (item) { - QString text = item->text(); + TQString text = item->text(); if (!text.isEmpty()) { // Show ToolTip only if necessary - QFontMetrics fm(fontMetrics()); + TQFontMetrics fm(fontMetrics()); int textWidth = fm.width(text); int widgetSpace = visibleWidth(); if ((textWidth > widgetSpace) || (contentsX() > 0)) @@ -61,10 +61,10 @@ namespace KSB_News { - NSPanel::NSPanel(QObject *parent, const char *name, const QString &key, + NSPanel::NSPanel(TQObject *parent, const char *name, const TQString &key, DCOPRef *rssservice) - :QObject(parent, name) - ,DCOPObject(QString(QString("sidebar-newsticker-")+key).latin1()) + :TQObject(parent, name) + ,DCOPObject(TQString(TQString("sidebar-newsticker-")+key).latin1()) ,m_listbox() ,m_pixmap() { @@ -72,7 +72,7 @@ namespace KSB_News { m_rssservice = rssservice; m_key = key; - m_rssdocument = m_rssservice->call("document(QString)", m_key); + m_rssdocument = m_rssservice->call("document(TQString)", m_key); m_isValid = false; connectDCOPSignal("rssservice", m_rssdocument.obj(), @@ -87,8 +87,8 @@ namespace KSB_News { // updating of RSS documents m_timeoutinterval = 10 * 60 * 1000; // 10 mins - m_timer = new QTimer(this); - connect(m_timer, SIGNAL(timeout()), this, SLOT(refresh())); + m_timer = new TQTimer(this); + connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(refresh())); m_timer->start(m_timeoutinterval); refresh(); } @@ -103,7 +103,7 @@ namespace KSB_News { } - void NSPanel::setTitle(const QString &tit) { + void NSPanel::setTitle(const TQString &tit) { m_title = tit; } @@ -113,7 +113,7 @@ namespace KSB_News { } - void NSPanel::setPixmap(const QPixmap &pm) { + void NSPanel::setPixmap(const TQPixmap &pm) { m_pixmap = pm; } @@ -123,24 +123,24 @@ namespace KSB_News { } - QPixmap NSPanel::pixmap() { + TQPixmap NSPanel::pixmap() { return m_pixmap; } - QString NSPanel::key() const { + TQString NSPanel::key() const { return m_key; } - QString NSPanel::title() const { + TQString NSPanel::title() const { return m_title; } - QStringList NSPanel::articles() { + TQStringList NSPanel::articles() { return m_articles; } - QStringList NSPanel::articleLinks() { + TQStringList NSPanel::articleLinks() { return m_articlelinks; } @@ -155,7 +155,7 @@ namespace KSB_News { m_articles.clear(); m_articlelinks.clear(); m_count = m_rssdocument.call("count()"); - QString temp = m_rssdocument.call("title()"); + TQString temp = m_rssdocument.call("title()"); m_title = temp; m_isValid = true; for (int idx = 0; idx < m_count; ++idx) { @@ -169,7 +169,7 @@ namespace KSB_News { void NSPanel::emitPixmapUpdated(DCOPRef /*dcopref*/) { if (m_rssdocument.call("pixmapValid()")) { - QPixmap tmp = m_rssdocument.call("pixmap()"); + TQPixmap tmp = m_rssdocument.call("pixmap()"); m_pixmap = tmp; emit pixmapUpdated(this); |