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/delicious | |
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/delicious')
-rw-r--r-- | konq-plugins/sidebar/delicious/bookmarkListItem.cpp | 16 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/bookmarkListItem.h | 16 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/mainWidget.cpp | 120 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/mainWidget.h | 20 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/plugin.cpp | 28 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/plugin.h | 12 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/tagListItem.cpp | 20 | ||||
-rw-r--r-- | konq-plugins/sidebar/delicious/tagListItem.h | 18 |
8 files changed, 125 insertions, 125 deletions
diff --git a/konq-plugins/sidebar/delicious/bookmarkListItem.cpp b/konq-plugins/sidebar/delicious/bookmarkListItem.cpp index 64e626d..5e3b0b3 100644 --- a/konq-plugins/sidebar/delicious/bookmarkListItem.cpp +++ b/konq-plugins/sidebar/delicious/bookmarkListItem.cpp @@ -24,18 +24,18 @@ #include <kglobal.h> #include <klocale.h> -BookmarkListItem::BookmarkListItem( QListView *parent, const QString & url, const QString & desc, time_t time ) +BookmarkListItem::BookmarkListItem( TQListView *parent, const TQString & url, const TQString & desc, time_t time ) : KListViewItem( parent ), m_desc( desc ) { m_url = KURL::fromPathOrURL( url ); m_dateTime.setTime_t( time ); } -int BookmarkListItem::compare( QListViewItem * i, int col, bool ascending ) const +int BookmarkListItem::compare( TQListViewItem * i, int col, bool ascending ) const { if ( col == 1 ) { - QDateTime them = static_cast<BookmarkListItem *>( i )->date(); + TQDateTime them = static_cast<BookmarkListItem *>( i )->date(); if ( m_dateTime < them ) return -1; else if ( m_dateTime > them ) @@ -43,17 +43,17 @@ int BookmarkListItem::compare( QListViewItem * i, int col, bool ascending ) cons else return 0; } - return QListViewItem::compare( i, col, ascending ); + return TQListViewItem::compare( i, col, ascending ); } -QString BookmarkListItem::text( int column ) const +TQString BookmarkListItem::text( int column ) const { if ( column == 0 ) return m_desc; else if ( column == 1 ) return KGlobal::locale()->formatDateTime( m_dateTime ); - return QString::null; + return TQString::null; } KURL BookmarkListItem::url() const @@ -61,12 +61,12 @@ KURL BookmarkListItem::url() const return m_url; } -QDateTime BookmarkListItem::date() const +TQDateTime BookmarkListItem::date() const { return m_dateTime; } -QString BookmarkListItem::desc() const +TQString BookmarkListItem::desc() const { return m_desc; } diff --git a/konq-plugins/sidebar/delicious/bookmarkListItem.h b/konq-plugins/sidebar/delicious/bookmarkListItem.h index 5e60022..392eab8 100644 --- a/konq-plugins/sidebar/delicious/bookmarkListItem.h +++ b/konq-plugins/sidebar/delicious/bookmarkListItem.h @@ -22,7 +22,7 @@ #ifndef _BOOKMARKLISTITEM_H_ #define _BOOKMARKLISTITEM_H_ -#include <qdatetime.h> +#include <tqdatetime.h> #include <klistview.h> #include <kurl.h> @@ -34,18 +34,18 @@ class QString; class BookmarkListItem: public KListViewItem { public: - BookmarkListItem( QListView *parent, const QString & url, const QString & desc, time_t time ); + BookmarkListItem( TQListView *parent, const TQString & url, const TQString & desc, time_t time ); KURL url() const; - QDateTime date() const; - QString desc() const; + TQDateTime date() const; + TQString desc() const; protected: - virtual int compare( QListViewItem * i, int col, bool ascending ) const; - virtual QString text( int column ) const; + virtual int compare( TQListViewItem * i, int col, bool ascending ) const; + virtual TQString text( int column ) const; KURL m_url; - QString m_desc; - QDateTime m_dateTime; + TQString m_desc; + TQDateTime m_dateTime; }; #endif diff --git a/konq-plugins/sidebar/delicious/mainWidget.cpp b/konq-plugins/sidebar/delicious/mainWidget.cpp index 1b76c94..612be03 100644 --- a/konq-plugins/sidebar/delicious/mainWidget.cpp +++ b/konq-plugins/sidebar/delicious/mainWidget.cpp @@ -24,12 +24,12 @@ #include "tagListItem.h" #include "bookmarkListItem.h" -#include <qlistview.h> -#include <qdom.h> -#include <qpopupmenu.h> -#include <qpushbutton.h> -#include <qtimer.h> -#include <qdatetime.h> +#include <tqlistview.h> +#include <tqdom.h> +#include <tqpopupmenu.h> +#include <tqpushbutton.h> +#include <tqtimer.h> +#include <tqdatetime.h> #include <kdebug.h> #include <kio/job.h> @@ -42,7 +42,7 @@ #include <kconfig.h> #include <kinputdialog.h> -MainWidget::MainWidget( KConfig * config, QWidget * parent ) +MainWidget::MainWidget( KConfig * config, TQWidget * parent ) : MainWidget_base( parent ), m_config( config ) { loadTags(); @@ -53,28 +53,28 @@ MainWidget::MainWidget( KConfig * config, QWidget * parent ) btnRefreshBookmarks->setIconSet( il->loadIconSet( "reload", KIcon::Small ) ); btnNew->setIconSet( il->loadIconSet( "bookmark_add", KIcon::Small ) ); - connect( ( QWidget * ) btnRefreshTags, SIGNAL( clicked() ), - this, SLOT( slotGetTags() ) ); + connect( ( TQWidget * ) btnRefreshTags, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotGetTags() ) ); - connect( ( QWidget * ) btnRefreshBookmarks, SIGNAL( clicked() ), - this, SLOT( slotGetBookmarks() ) ); + connect( ( TQWidget * ) btnRefreshBookmarks, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotGetBookmarks() ) ); - connect( ( QWidget * ) btnNew, SIGNAL( clicked() ), - this, SLOT( slotNewBookmark() ) ); + connect( ( TQWidget * ) btnNew, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotNewBookmark() ) ); - connect( lvBookmarks, SIGNAL( executed( QListViewItem * ) ), - this, SLOT( slotBookmarkExecuted( QListViewItem * ) ) ); - connect( lvBookmarks, SIGNAL( mouseButtonClicked ( int, QListViewItem *, const QPoint &, int ) ), - this, SLOT( slotBookmarkClicked( int, QListViewItem *, const QPoint &, int ) ) ); + connect( lvBookmarks, TQT_SIGNAL( executed( TQListViewItem * ) ), + this, TQT_SLOT( slotBookmarkExecuted( TQListViewItem * ) ) ); + connect( lvBookmarks, TQT_SIGNAL( mouseButtonClicked ( int, TQListViewItem *, const TQPoint &, int ) ), + this, TQT_SLOT( slotBookmarkClicked( int, TQListViewItem *, const TQPoint &, int ) ) ); - connect( lvTags, SIGNAL( contextMenuRequested( QListViewItem *, const QPoint &, int ) ), - this, SLOT( slotTagsContextMenu( QListViewItem *, const QPoint &, int ) ) ); + connect( lvTags, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ), + this, TQT_SLOT( slotTagsContextMenu( TQListViewItem *, const TQPoint &, int ) ) ); - connect( lvBookmarks, SIGNAL( contextMenuRequested( QListViewItem *, const QPoint &, int ) ), - this, SLOT( slotBookmarksContextMenu( QListViewItem *, const QPoint &, int ) ) ); + connect( lvBookmarks, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ), + this, TQT_SLOT( slotBookmarksContextMenu( TQListViewItem *, const TQPoint &, int ) ) ); - m_updateTimer = new QTimer( this ); - connect( m_updateTimer, SIGNAL( timeout() ), SLOT( slotGetBookmarks() ) ); + m_updateTimer = new TQTimer( this ); + connect( m_updateTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotGetBookmarks() ) ); slotGetTags(); } @@ -94,8 +94,8 @@ void MainWidget::slotGetTags() kdDebug() << k_funcinfo << endl; KIO::StoredTransferJob * job = KIO::storedGet( "http://del.icio.us/api/tags/get" ); - connect( job, SIGNAL( result( KIO::Job * ) ), - this, SLOT( slotFillTags( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job * ) ), + this, TQT_SLOT( slotFillTags( KIO::Job * ) ) ); } void MainWidget::slotFillTags( KIO::Job * job ) @@ -112,17 +112,17 @@ void MainWidget::slotFillTags( KIO::Job * job ) m_tags.clear(); // fill lvTags with job->data() - QDomDocument doc; + TQDomDocument doc; doc.setContent( static_cast<KIO::StoredTransferJob *>( job )->data() ); - QDomNodeList tags = doc.elementsByTagName( "tag" ); + TQDomNodeList tags = doc.elementsByTagName( "tag" ); for ( uint i = 0; i < tags.length(); ++i ) { - QDomElement tag = tags.item( i ).toElement(); + TQDomElement tag = tags.item( i ).toElement(); if ( !tag.isNull() ) { TagListItem *item = new TagListItem( lvTags, tag.attribute( "tag" ), tag.attribute( "count" ).toInt() ); m_tags.append( tag.attribute( "tag" ) ); - connect( item, SIGNAL( signalItemChecked( TagListItem * ) ), SLOT( itemToggled() ) ); + connect( item, TQT_SIGNAL( signalItemChecked( TagListItem * ) ), TQT_SLOT( itemToggled() ) ); } } } @@ -135,8 +135,8 @@ void MainWidget::slotGetBookmarks() kdDebug() << k_funcinfo << url.url() << endl; KIO::StoredTransferJob * job = KIO::storedGet( url ); - connect( job, SIGNAL( result( KIO::Job * ) ), - this, SLOT( slotFillBookmarks( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job * ) ), + this, TQT_SLOT( slotFillBookmarks( KIO::Job * ) ) ); } void MainWidget::slotFillBookmarks( KIO::Job * job ) @@ -152,13 +152,13 @@ void MainWidget::slotFillBookmarks( KIO::Job * job ) lvBookmarks->clear(); // fill lvBookmarks with job->data() - QDomDocument doc; + TQDomDocument doc; doc.setContent( static_cast<KIO::StoredTransferJob *>( job )->data() ); - QDomNodeList posts = doc.elementsByTagName( "post" ); + TQDomNodeList posts = doc.elementsByTagName( "post" ); for ( uint i = 0; i < posts.length(); ++i ) { - QDomElement post = posts.item( i ).toElement(); + TQDomElement post = posts.item( i ).toElement(); if ( !post.isNull() ) { new BookmarkListItem( lvBookmarks, post.attribute( "href" ), post.attribute( "description" ), @@ -167,11 +167,11 @@ void MainWidget::slotFillBookmarks( KIO::Job * job ) } } -QStringList MainWidget::checkedTags() const +TQStringList MainWidget::checkedTags() const { - QListViewItemIterator it( lvTags, QListViewItemIterator::Visible | QListViewItemIterator::Checked ); + TQListViewItemIterator it( lvTags, TQListViewItemIterator::Visible | TQListViewItemIterator::Checked ); - QStringList tmp; + TQStringList tmp; while ( it.current() ) { @@ -182,7 +182,7 @@ QStringList MainWidget::checkedTags() const return tmp; } -void MainWidget::slotBookmarkExecuted( QListViewItem * item ) +void MainWidget::slotBookmarkExecuted( TQListViewItem * item ) { BookmarkListItem * bookmark = static_cast<BookmarkListItem *>( item ); if ( bookmark ) @@ -192,7 +192,7 @@ void MainWidget::slotBookmarkExecuted( QListViewItem * item ) } } -void MainWidget::slotBookmarkClicked( int button, QListViewItem * item, const QPoint &, int ) +void MainWidget::slotBookmarkClicked( int button, TQListViewItem * item, const TQPoint &, int ) { BookmarkListItem * bookmark = static_cast<BookmarkListItem *>( item ); if ( bookmark && button == Qt::MidButton ) // handle middle click @@ -202,16 +202,16 @@ void MainWidget::slotBookmarkClicked( int button, QListViewItem * item, const QP } } -QStringList MainWidget::tags() const +TQStringList MainWidget::tags() const { return m_tags; } -QStringList MainWidget::bookmarks() const +TQStringList MainWidget::bookmarks() const { - QListViewItemIterator it( lvBookmarks ); + TQListViewItemIterator it( lvBookmarks ); - QStringList tmp; + TQStringList tmp; while ( it.current() ) { @@ -222,30 +222,30 @@ QStringList MainWidget::bookmarks() const return tmp; } -void MainWidget::slotTagsContextMenu( QListViewItem *, const QPoint & pos, int ) +void MainWidget::slotTagsContextMenu( TQListViewItem *, const TQPoint & pos, int ) { if ( lvTags->childCount() == 0 ) return; - QPopupMenu * tagMenu = new QPopupMenu( this ); + TQPopupMenu * tagMenu = new TQPopupMenu( this ); Q_CHECK_PTR( tagMenu ); - tagMenu->insertItem( i18n( "Check All" ), this, SLOT( slotCheckAllTags() ) ); - tagMenu->insertItem( i18n( "Uncheck All" ), this, SLOT( slotUncheckAllTags() ) ); - tagMenu->insertItem( i18n( "Toggle All" ), this, SLOT( slotToggleTags() ) ); + tagMenu->insertItem( i18n( "Check All" ), this, TQT_SLOT( slotCheckAllTags() ) ); + tagMenu->insertItem( i18n( "Uncheck All" ), this, TQT_SLOT( slotUncheckAllTags() ) ); + tagMenu->insertItem( i18n( "Toggle All" ), this, TQT_SLOT( slotToggleTags() ) ); tagMenu->insertSeparator(); tagMenu->insertItem( KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small ), - i18n( "Rename Tag..." ), this, SLOT( slotRenameTag() ) ); + i18n( "Rename Tag..." ), this, TQT_SLOT( slotRenameTag() ) ); tagMenu->exec( pos ); } void MainWidget::slotCheckAllTags() { - QListViewItemIterator it( lvTags ); + TQListViewItemIterator it( lvTags ); while ( it.current() ) { - QCheckListItem * item = static_cast<QCheckListItem *>( *it ); + TQCheckListItem * item = static_cast<TQCheckListItem *>( *it ); if ( item ) item->setOn( true ); ++it; @@ -254,10 +254,10 @@ void MainWidget::slotCheckAllTags() void MainWidget::slotUncheckAllTags() { - QListViewItemIterator it( lvTags ); + TQListViewItemIterator it( lvTags ); while ( it.current() ) { - QCheckListItem * item = static_cast<QCheckListItem *>( *it ); + TQCheckListItem * item = static_cast<TQCheckListItem *>( *it ); if ( item ) item->setOn( false ); ++it; @@ -266,10 +266,10 @@ void MainWidget::slotUncheckAllTags() void MainWidget::slotToggleTags() { - QListViewItemIterator it( lvTags ); + TQListViewItemIterator it( lvTags ); while ( it.current() ) { - QCheckListItem * item = static_cast<QCheckListItem *>( *it ); + TQCheckListItem * item = static_cast<TQCheckListItem *>( *it ); if ( item ) item->setOn( !item->isOn() ); ++it; @@ -301,8 +301,8 @@ void MainWidget::slotRenameTag() TagListItem * tag = static_cast<TagListItem *>( lvTags->currentItem() ); if ( tag ) { - QString oldName = tag->name(); - QString newName = KInputDialog::getText( i18n( "Rename Tag" ), i18n( "Provide a new name for tag '%1':" ).arg( oldName ) ); + TQString oldName = tag->name(); + TQString newName = KInputDialog::getText( i18n( "Rename Tag" ), i18n( "Provide a new name for tag '%1':" ).arg( oldName ) ); if ( !newName.isEmpty() ) { KURL url( "http://del.icio.us/api/tags/rename" ); @@ -315,16 +315,16 @@ void MainWidget::slotRenameTag() } } -void MainWidget::slotBookmarksContextMenu( QListViewItem *, const QPoint & pos, int ) +void MainWidget::slotBookmarksContextMenu( TQListViewItem *, const TQPoint & pos, int ) { if ( lvBookmarks->childCount() == 0 ) return; - QPopupMenu * menu = new QPopupMenu( this ); + TQPopupMenu * menu = new TQPopupMenu( this ); Q_CHECK_PTR( menu ); menu->insertItem( KGlobal::iconLoader()->loadIconSet( "editdelete", KIcon::Small ), - i18n( "Delete Bookmark" ), this, SLOT( slotDeleteBookmark() ) ); + i18n( "Delete Bookmark" ), this, TQT_SLOT( slotDeleteBookmark() ) ); menu->exec( pos ); } diff --git a/konq-plugins/sidebar/delicious/mainWidget.h b/konq-plugins/sidebar/delicious/mainWidget.h index fdaa9ea..59be8d6 100644 --- a/konq-plugins/sidebar/delicious/mainWidget.h +++ b/konq-plugins/sidebar/delicious/mainWidget.h @@ -39,20 +39,20 @@ class MainWidget: public MainWidget_base { Q_OBJECT public: - MainWidget( KConfig * config, QWidget * parent ); + MainWidget( KConfig * config, TQWidget * parent ); ~MainWidget(); /** * @return all the tags user has * (used in the DCOP iface) */ - QStringList tags() const; + TQStringList tags() const; /** * @return all the (currently visible) bookmark (URLs) * (used in the DCOP iface) */ - QStringList bookmarks() const; + TQStringList bookmarks() const; /** * Set the internal URL to @p url @@ -92,22 +92,22 @@ private slots: /** * Handle clicking on a bookmark (KDE mode) */ - void slotBookmarkExecuted( QListViewItem * item ); + void slotBookmarkExecuted( TQListViewItem * item ); /** * Handle middle clicking a bookmark */ - void slotBookmarkClicked( int button, QListViewItem * item, const QPoint & pnt, int col ); + void slotBookmarkClicked( int button, TQListViewItem * item, const TQPoint & pnt, int col ); /** * Popup a tag context menu over @p item and position @pos */ - void slotTagsContextMenu( QListViewItem * item, const QPoint & pos, int col ); + void slotTagsContextMenu( TQListViewItem * item, const TQPoint & pos, int col ); /** * Popup a bookmark context menu over @p item and position @pos */ - void slotBookmarksContextMenu( QListViewItem * item, const QPoint & pos, int col ); + void slotBookmarksContextMenu( TQListViewItem * item, const TQPoint & pos, int col ); /** * Put a checkmark before all tags @@ -154,7 +154,7 @@ private: /** * @return list of checked tags */ - QStringList checkedTags() const; + TQStringList checkedTags() const; /** * Save the tag list to the config file @@ -166,9 +166,9 @@ private: */ void loadTags(); - QTimer *m_updateTimer; + TQTimer *m_updateTimer; KURL m_currentURL; - QStringList m_tags; + TQStringList m_tags; KConfig * m_config; }; diff --git a/konq-plugins/sidebar/delicious/plugin.cpp b/konq-plugins/sidebar/delicious/plugin.cpp index cc5759f..3ed6c09 100644 --- a/konq-plugins/sidebar/delicious/plugin.cpp +++ b/konq-plugins/sidebar/delicious/plugin.cpp @@ -21,24 +21,24 @@ #include "plugin.h" -#include <qstring.h> +#include <tqstring.h> #include <kapplication.h> #include <klocale.h> #include <kglobal.h> -KonqSidebarDelicious::KonqSidebarDelicious( KInstance *instance, QObject *parent, - QWidget *widgetParent, QString &desktopName_, +KonqSidebarDelicious::KonqSidebarDelicious( KInstance *instance, TQObject *parent, + TQWidget *widgetParent, TQString &desktopName_, const char* name ) : KonqSidebarPlugin( instance, parent, widgetParent, desktopName_, name ), DCOPObject( "sidebar-delicious" ) { m_widget = new MainWidget( instance->config(), widgetParent ); - connect( m_widget, SIGNAL( signalURLClicked( const KURL &, const KParts::URLArgs & ) ), - this, SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ) ); - connect( m_widget, SIGNAL( signalURLMidClicked( const KURL &, const KParts::URLArgs & ) ), - this, SIGNAL( createNewWindow( const KURL &, const KParts::URLArgs & ) ) ); + connect( m_widget, TQT_SIGNAL( signalURLClicked( const KURL &, const KParts::URLArgs & ) ), + this, TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ) ); + connect( m_widget, TQT_SIGNAL( signalURLMidClicked( const KURL &, const KParts::URLArgs & ) ), + this, TQT_SIGNAL( createNewWindow( const KURL &, const KParts::URLArgs & ) ) ); } KonqSidebarDelicious::~KonqSidebarDelicious() @@ -46,12 +46,12 @@ KonqSidebarDelicious::~KonqSidebarDelicious() } -void * KonqSidebarDelicious::provides( const QString & ) +void * KonqSidebarDelicious::provides( const TQString & ) { return 0; } -QWidget * KonqSidebarDelicious::getWidget() +TQWidget * KonqSidebarDelicious::getWidget() { return m_widget; } @@ -68,8 +68,8 @@ bool KonqSidebarDelicious::universalMode() extern "C" { - KDE_EXPORT void* create_konqsidebar_delicious( KInstance *instance, QObject *par, QWidget *widp, - QString &desktopname, const char *name ) + KDE_EXPORT void* create_konqsidebar_delicious( KInstance *instance, TQObject *par, TQWidget *widp, + TQString &desktopname, const char *name ) { KGlobal::locale()->insertCatalogue( "konqsidebar_delicious" ); return new KonqSidebarDelicious( instance, par, widp, desktopname, name ); @@ -78,7 +78,7 @@ extern "C" extern "C" { - KDE_EXPORT bool add_konqsidebar_delicious( QString* fn, QString* /*param*/, QMap<QString,QString> *map ) + KDE_EXPORT bool add_konqsidebar_delicious( TQString* fn, TQString* /*param*/, TQMap<TQString,TQString> *map ) { map->insert("Type", "Link"); map->insert("Icon", "konqsidebar_delicious"); @@ -90,12 +90,12 @@ extern "C" } } -QStringList KonqSidebarDelicious::tags() const +TQStringList KonqSidebarDelicious::tags() const { return m_widget->tags(); } -QStringList KonqSidebarDelicious::bookmarks() const +TQStringList KonqSidebarDelicious::bookmarks() const { return m_widget->bookmarks(); } diff --git a/konq-plugins/sidebar/delicious/plugin.h b/konq-plugins/sidebar/delicious/plugin.h index cc1479c..34d740f 100644 --- a/konq-plugins/sidebar/delicious/plugin.h +++ b/konq-plugins/sidebar/delicious/plugin.h @@ -42,18 +42,18 @@ class KonqSidebarDelicious: public KonqSidebarPlugin, DCOPObject Q_OBJECT K_DCOP public: - KonqSidebarDelicious( KInstance * instance, QObject * parent, QWidget * widgetParent, - QString & desktopName_, const char * name = 0 ); + KonqSidebarDelicious( KInstance * instance, TQObject * parent, TQWidget * widgetParent, + TQString & desktopName_, const char * name = 0 ); ~KonqSidebarDelicious(); - virtual void * provides( const QString & ); + virtual void * provides( const TQString & ); /** * @return the main widget */ - virtual QWidget * getWidget(); + virtual TQWidget * getWidget(); k_dcop: - QStringList tags() const; - QStringList bookmarks() const; + TQStringList tags() const; + TQStringList bookmarks() const; void newBookmark(); protected: diff --git a/konq-plugins/sidebar/delicious/tagListItem.cpp b/konq-plugins/sidebar/delicious/tagListItem.cpp index fcafca7..e7396a6 100644 --- a/konq-plugins/sidebar/delicious/tagListItem.cpp +++ b/konq-plugins/sidebar/delicious/tagListItem.cpp @@ -21,20 +21,20 @@ #include "tagListItem.h" -TagListItem::TagListItem( QListView * parent, const QString & tagName, int count ) - : QCheckListItem( parent, tagName, QCheckListItem::CheckBox ), m_name( tagName ), m_count( count ) +TagListItem::TagListItem( TQListView * parent, const TQString & tagName, int count ) + : TQCheckListItem( parent, tagName, TQCheckListItem::CheckBox ), m_name( tagName ), m_count( count ) { } // virtual void TagListItem::stateChange( bool state ) { - QCheckListItem::stateChange( state ); + TQCheckListItem::stateChange( state ); emit signalItemChecked( this ); } // virtual -int TagListItem::compare( QListViewItem * i, int col, bool ascending ) const +int TagListItem::compare( TQListViewItem * i, int col, bool ascending ) const { if ( col == 1 ) { @@ -46,7 +46,7 @@ int TagListItem::compare( QListViewItem * i, int col, bool ascending ) const else return 0; } - return QCheckListItem::compare( i, col, ascending ); + return TQCheckListItem::compare( i, col, ascending ); } int TagListItem::count() const @@ -55,22 +55,22 @@ int TagListItem::count() const } // virtual -QString TagListItem::text( int column ) const +TQString TagListItem::text( int column ) const { if ( column == 0 ) return m_name; else if ( column == 1 ) - return QString::number( m_count ); + return TQString::number( m_count ); else - return QString::null; + return TQString::null; } -QString TagListItem::name() const +TQString TagListItem::name() const { return m_name; } -void TagListItem::setName( const QString & name ) +void TagListItem::setName( const TQString & name ) { m_name = name; } diff --git a/konq-plugins/sidebar/delicious/tagListItem.h b/konq-plugins/sidebar/delicious/tagListItem.h index 40e4c31..fe557de 100644 --- a/konq-plugins/sidebar/delicious/tagListItem.h +++ b/konq-plugins/sidebar/delicious/tagListItem.h @@ -22,28 +22,28 @@ #ifndef _TAGLISTITEM_H_ #define _TAGLISTITEM_H_ -#include <qobject.h> -#include <qlistview.h> +#include <tqobject.h> +#include <tqlistview.h> -class TagListItem: public QObject, public QCheckListItem +class TagListItem: public TQObject, public QCheckListItem { Q_OBJECT public: - TagListItem( QListView * parent, const QString & tagName, int count = 1 ); + TagListItem( TQListView * parent, const TQString & tagName, int count = 1 ); int count() const; - QString name() const; - void setName( const QString & name ); + TQString name() const; + void setName( const TQString & name ); protected: virtual void stateChange( bool state ); - virtual int compare( QListViewItem * i, int col, bool ascending ) const; - virtual QString text( int column ) const; + virtual int compare( TQListViewItem * i, int col, bool ascending ) const; + virtual TQString text( int column ) const; signals: void signalItemChecked( TagListItem * ); private: - QString m_name; + TQString m_name; int m_count; }; |