summaryrefslogtreecommitdiffstats
path: root/dcoprss/feedbrowser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /dcoprss/feedbrowser.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcoprss/feedbrowser.cpp')
-rw-r--r--dcoprss/feedbrowser.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/dcoprss/feedbrowser.cpp b/dcoprss/feedbrowser.cpp
index 59a55040..eae10f63 100644
--- a/dcoprss/feedbrowser.cpp
+++ b/dcoprss/feedbrowser.cpp
@@ -9,18 +9,18 @@
#include <klocale.h>
#include <dcopclient.h>
-#include <qcstring.h>
-#include <qdatastream.h>
-#include <qvbox.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqvbox.h>
-CategoryItem::CategoryItem( KListView *parent, const QString &category )
+CategoryItem::CategoryItem( KListView *parent, const TQString &category )
: KListViewItem( parent ),
m_category( category )
{
init();
}
-CategoryItem::CategoryItem( KListViewItem *parent, const QString &category )
+CategoryItem::CategoryItem( KListViewItem *parent, const TQString &category )
: KListViewItem( parent ),
m_category( category )
{
@@ -47,18 +47,18 @@ void CategoryItem::setOpen( bool open )
void CategoryItem::populate()
{
m_dcopIface = new DCOPRSSIface( this, "m_dcopIface" );
- connect( m_dcopIface, SIGNAL( gotCategories( const QStringList & ) ),
- this, SLOT( gotCategories( const QStringList & ) ) );
+ connect( m_dcopIface, TQT_SIGNAL( gotCategories( const TQStringList & ) ),
+ this, TQT_SLOT( gotCategories( const TQStringList & ) ) );
m_dcopIface->getCategories( m_category );
}
-void CategoryItem::gotCategories( const QStringList &categories )
+void CategoryItem::gotCategories( const TQStringList &categories )
{
delete m_dcopIface;
m_dcopIface = 0;
- QStringList::ConstIterator it = categories.begin();
- QStringList::ConstIterator end = categories.end();
+ TQStringList::ConstIterator it = categories.begin();
+ TQStringList::ConstIterator end = categories.end();
for ( ; it != end; ++it )
new CategoryItem( this, *it );
@@ -66,45 +66,45 @@ void CategoryItem::gotCategories( const QStringList &categories )
KListViewItem::setOpen( true );
}
-DCOPRSSIface::DCOPRSSIface( QObject *parent, const char *name ) :
- QObject( parent, name ), DCOPObject( "FeedBrowser" )
+DCOPRSSIface::DCOPRSSIface( TQObject *parent, const char *name ) :
+ TQObject( parent, name ), DCOPObject( "FeedBrowser" )
{
- connectDCOPSignal( "rssservice", "RSSQuery", "gotCategories(QStringList)",
- "slotGotCategories(QStringList)", false );
+ connectDCOPSignal( "rssservice", "RSSQuery", "gotCategories(TQStringList)",
+ "slotGotCategories(TQStringList)", false );
}
-void DCOPRSSIface::getCategories( const QString &cat )
+void DCOPRSSIface::getCategories( const TQString &cat )
{
- QByteArray data;
- QDataStream stream( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream stream( data, IO_WriteOnly );
stream << cat;
kapp->dcopClient()->send( "rssservice", "RSSQuery",
- "getCategories(QString)", data );
+ "getCategories(TQString)", data );
}
-void DCOPRSSIface::slotGotCategories( const QStringList &categories )
+void DCOPRSSIface::slotGotCategories( const TQStringList &categories )
{
emit gotCategories( categories );
}
-FeedBrowserDlg::FeedBrowserDlg( QWidget *parent, const char *name )
+FeedBrowserDlg::FeedBrowserDlg( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n( "DCOPRSS Feed Browser" ),
Close, Close, true )
{
m_dcopIface = new DCOPRSSIface( this, "m_dcopIface" );
- connect( m_dcopIface, SIGNAL( gotCategories( const QStringList & ) ),
- this, SLOT( gotTopCategories( const QStringList & ) ) );
+ connect( m_dcopIface, TQT_SIGNAL( gotCategories( const TQStringList & ) ),
+ this, TQT_SLOT( gotTopCategories( const TQStringList & ) ) );
- QVBox *mainWidget = makeVBoxMainWidget();
+ TQVBox *mainWidget = makeVBoxMainWidget();
m_feedList = new KListView( mainWidget, "m_feedList" );
m_feedList->setAllColumnsShowFocus( true );
m_feedList->setRootIsDecorated( true );
m_feedList->addColumn( i18n( "Name" ) );
- connect( m_feedList, SIGNAL( executed( QListViewItem * ) ),
- this, SLOT( itemSelected( QListViewItem * ) ) );
- connect( m_feedList, SIGNAL( returnPressed( QListViewItem * ) ),
- this, SLOT( itemSelected( QListViewItem * ) ) );
+ connect( m_feedList, TQT_SIGNAL( executed( TQListViewItem * ) ),
+ this, TQT_SLOT( itemSelected( TQListViewItem * ) ) );
+ connect( m_feedList, TQT_SIGNAL( returnPressed( TQListViewItem * ) ),
+ this, TQT_SLOT( itemSelected( TQListViewItem * ) ) );
resize( 500, 400 );
@@ -116,15 +116,15 @@ void FeedBrowserDlg::getTopCategories()
m_dcopIface->getCategories( "Top" );
}
-void FeedBrowserDlg::gotTopCategories( const QStringList &categories )
+void FeedBrowserDlg::gotTopCategories( const TQStringList &categories )
{
- QStringList::ConstIterator it = categories.begin();
- QStringList::ConstIterator end = categories.end();
+ TQStringList::ConstIterator it = categories.begin();
+ TQStringList::ConstIterator end = categories.end();
for ( ; it != end; ++it )
new CategoryItem( m_feedList, *it );
}
-void FeedBrowserDlg::itemSelected( QListViewItem *item )
+void FeedBrowserDlg::itemSelected( TQListViewItem *item )
{
item->setOpen( !item->isOpen() );
}