From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: TQt4 port kdeaddons This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/sidebar/delicious/bookmarkListItem.cpp | 6 +++--- konq-plugins/sidebar/delicious/bookmarkListItem.h | 2 +- konq-plugins/sidebar/delicious/mainWidget.cpp | 8 ++++---- konq-plugins/sidebar/delicious/mainWidget.h | 3 ++- konq-plugins/sidebar/delicious/plugin.cpp | 4 ++-- konq-plugins/sidebar/delicious/plugin.h | 3 ++- konq-plugins/sidebar/delicious/tagListItem.cpp | 6 +++--- konq-plugins/sidebar/delicious/tagListItem.h | 5 +++-- konq-plugins/sidebar/delicious/widget.ui | 18 +++++++++--------- 9 files changed, 29 insertions(+), 26 deletions(-) (limited to 'konq-plugins/sidebar/delicious') diff --git a/konq-plugins/sidebar/delicious/bookmarkListItem.cpp b/konq-plugins/sidebar/delicious/bookmarkListItem.cpp index 5e3b0b3..21dbcaf 100644 --- a/konq-plugins/sidebar/delicious/bookmarkListItem.cpp +++ b/konq-plugins/sidebar/delicious/bookmarkListItem.cpp @@ -24,8 +24,8 @@ #include #include -BookmarkListItem::BookmarkListItem( TQListView *parent, const TQString & url, const TQString & desc, time_t time ) - : KListViewItem( parent ), m_desc( desc ) +BookmarkListItem::BookmarkListItem( TQListView *tqparent, const TQString & url, const TQString & desc, time_t time ) + : KListViewItem( tqparent ), m_desc( desc ) { m_url = KURL::fromPathOrURL( url ); m_dateTime.setTime_t( time ); @@ -53,7 +53,7 @@ TQString BookmarkListItem::text( int column ) const else if ( column == 1 ) return KGlobal::locale()->formatDateTime( m_dateTime ); - return TQString::null; + return TQString(); } KURL BookmarkListItem::url() const diff --git a/konq-plugins/sidebar/delicious/bookmarkListItem.h b/konq-plugins/sidebar/delicious/bookmarkListItem.h index 5b4c8c7..3e37ea4 100644 --- a/konq-plugins/sidebar/delicious/bookmarkListItem.h +++ b/konq-plugins/sidebar/delicious/bookmarkListItem.h @@ -34,7 +34,7 @@ class TQString; class BookmarkListItem: public KListViewItem { public: - BookmarkListItem( TQListView *parent, const TQString & url, const TQString & desc, time_t time ); + BookmarkListItem( TQListView *tqparent, const TQString & url, const TQString & desc, time_t time ); KURL url() const; TQDateTime date() const; TQString desc() const; diff --git a/konq-plugins/sidebar/delicious/mainWidget.cpp b/konq-plugins/sidebar/delicious/mainWidget.cpp index 612be03..929ded4 100644 --- a/konq-plugins/sidebar/delicious/mainWidget.cpp +++ b/konq-plugins/sidebar/delicious/mainWidget.cpp @@ -42,8 +42,8 @@ #include #include -MainWidget::MainWidget( KConfig * config, TQWidget * parent ) - : MainWidget_base( parent ), m_config( config ) +MainWidget::MainWidget( KConfig * config, TQWidget * tqparent ) + : MainWidget_base( tqparent ), m_config( config ) { loadTags(); @@ -302,7 +302,7 @@ void MainWidget::slotRenameTag() if ( tag ) { TQString oldName = tag->name(); - TQString newName = KInputDialog::getText( i18n( "Rename Tag" ), i18n( "Provide a new name for tag '%1':" ).arg( oldName ) ); + TQString newName = KInputDialog::getText( i18n( "Rename Tag" ), i18n( "Provide a new name for tag '%1':" ).tqarg( oldName ) ); if ( !newName.isEmpty() ) { KURL url( "http://del.icio.us/api/tags/rename" ); @@ -334,7 +334,7 @@ void MainWidget::slotDeleteBookmark() BookmarkListItem * bookmark = static_cast( lvBookmarks->currentItem() ); if ( bookmark ) { - int result = KMessageBox::warningContinueCancel( this, i18n( "Do you really want to remove the bookmark\n%1?" ).arg( bookmark->desc() ), + int result = KMessageBox::warningContinueCancel( this, i18n( "Do you really want to remove the bookmark\n%1?" ).tqarg( bookmark->desc() ), i18n( "Delete Bookmark" ), KStdGuiItem::del() ); if ( result == KMessageBox::Continue ) diff --git a/konq-plugins/sidebar/delicious/mainWidget.h b/konq-plugins/sidebar/delicious/mainWidget.h index 15920cd..e77cfc5 100644 --- a/konq-plugins/sidebar/delicious/mainWidget.h +++ b/konq-plugins/sidebar/delicious/mainWidget.h @@ -38,8 +38,9 @@ class KConfig; class MainWidget: public MainWidget_base { Q_OBJECT + TQ_OBJECT public: - MainWidget( KConfig * config, TQWidget * parent ); + MainWidget( KConfig * config, TQWidget * tqparent ); ~MainWidget(); /** diff --git a/konq-plugins/sidebar/delicious/plugin.cpp b/konq-plugins/sidebar/delicious/plugin.cpp index 3ed6c09..23244b7 100644 --- a/konq-plugins/sidebar/delicious/plugin.cpp +++ b/konq-plugins/sidebar/delicious/plugin.cpp @@ -27,10 +27,10 @@ #include #include -KonqSidebarDelicious::KonqSidebarDelicious( KInstance *instance, TQObject *parent, +KonqSidebarDelicious::KonqSidebarDelicious( KInstance *instance, TQObject *tqparent, TQWidget *widgetParent, TQString &desktopName_, const char* name ) - : KonqSidebarPlugin( instance, parent, widgetParent, desktopName_, name ), + : KonqSidebarPlugin( instance, tqparent, widgetParent, desktopName_, name ), DCOPObject( "sidebar-delicious" ) { diff --git a/konq-plugins/sidebar/delicious/plugin.h b/konq-plugins/sidebar/delicious/plugin.h index cd9f87a..4e220da 100644 --- a/konq-plugins/sidebar/delicious/plugin.h +++ b/konq-plugins/sidebar/delicious/plugin.h @@ -40,9 +40,10 @@ class TQString; class KonqSidebarDelicious: public KonqSidebarPlugin, DCOPObject { Q_OBJECT +// TQ_OBJECT K_DCOP public: - KonqSidebarDelicious( KInstance * instance, TQObject * parent, TQWidget * widgetParent, + KonqSidebarDelicious( KInstance * instance, TQObject * tqparent, TQWidget * widgetParent, TQString & desktopName_, const char * name = 0 ); ~KonqSidebarDelicious(); virtual void * provides( const TQString & ); diff --git a/konq-plugins/sidebar/delicious/tagListItem.cpp b/konq-plugins/sidebar/delicious/tagListItem.cpp index e7396a6..a8b98cd 100644 --- a/konq-plugins/sidebar/delicious/tagListItem.cpp +++ b/konq-plugins/sidebar/delicious/tagListItem.cpp @@ -21,8 +21,8 @@ #include "tagListItem.h" -TagListItem::TagListItem( TQListView * parent, const TQString & tagName, int count ) - : TQCheckListItem( parent, tagName, TQCheckListItem::CheckBox ), m_name( tagName ), m_count( count ) +TagListItem::TagListItem( TQListView * tqparent, const TQString & tagName, int count ) + : TQCheckListItem( tqparent, tagName, TQCheckListItem::CheckBox ), m_name( tagName ), m_count( count ) { } @@ -62,7 +62,7 @@ TQString TagListItem::text( int column ) const else if ( column == 1 ) return TQString::number( m_count ); else - return TQString::null; + return TQString(); } TQString TagListItem::name() const diff --git a/konq-plugins/sidebar/delicious/tagListItem.h b/konq-plugins/sidebar/delicious/tagListItem.h index fe557de..f60e0b4 100644 --- a/konq-plugins/sidebar/delicious/tagListItem.h +++ b/konq-plugins/sidebar/delicious/tagListItem.h @@ -25,11 +25,12 @@ #include #include -class TagListItem: public TQObject, public QCheckListItem +class TagListItem: public TQObject, public TQCheckListItem { Q_OBJECT + TQ_OBJECT public: - TagListItem( TQListView * parent, const TQString & tagName, int count = 1 ); + TagListItem( TQListView * tqparent, const TQString & tagName, int count = 1 ); int count() const; TQString name() const; void setName( const TQString & name ); diff --git a/konq-plugins/sidebar/delicious/widget.ui b/konq-plugins/sidebar/delicious/widget.ui index daccbe9..e7a82af 100644 --- a/konq-plugins/sidebar/delicious/widget.ui +++ b/konq-plugins/sidebar/delicious/widget.ui @@ -1,7 +1,7 @@ MainWidget_base Lukáš Tinkl <lukas@kde.org> - + Form1 @@ -17,14 +17,14 @@ unnamed - + splitter3 Vertical - + groupBox2 @@ -35,7 +35,7 @@ unnamed - + btnRefreshTags @@ -46,7 +46,7 @@ Refresh the list of tags - + Tag @@ -81,7 +81,7 @@ - + groupBox1 @@ -92,7 +92,7 @@ unnamed - + btnRefreshBookmarks @@ -103,7 +103,7 @@ Refresh the list of bookmarks according to the selected tags - + btnNew @@ -158,7 +158,7 @@ - + klistview.h -- cgit v1.2.1