From b97ee238f88e9578da228388210cd8cab5360778 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 4 Feb 2013 14:18:14 -0600 Subject: Rename KIcon to enhance compatibility with KDE4 --- kontact/plugins/knotes/knotes_part_p.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kontact/plugins/knotes/knotes_part_p.h') diff --git a/kontact/plugins/knotes/knotes_part_p.h b/kontact/plugins/knotes/knotes_part_p.h index 8e11e4f15..ab386d1a9 100644 --- a/kontact/plugins/knotes/knotes_part_p.h +++ b/kontact/plugins/knotes/knotes_part_p.h @@ -57,19 +57,19 @@ #include "knotes/knoteedit.h" -class KNotesIconViewItem : public KIconViewItem +class KNotesIconViewItem : public TDEIconViewItem { public: - KNotesIconViewItem( KIconView *parent, KCal::Journal *journal ) - : KIconViewItem( parent ), + KNotesIconViewItem( TDEIconView *parent, KCal::Journal *journal ) + : TDEIconViewItem( parent ), mJournal( journal ) { setRenameEnabled( true ); - KIconEffect effect; + TDEIconEffect effect; TQColor color( journal->customProperty( "KNotes", "BgColor" ) ); - TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "knotes", KIcon::Desktop ); - icon = effect.apply( icon, KIconEffect::Colorize, 1, color, false ); + TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "knotes", TDEIcon::Desktop ); + icon = effect.apply( icon, TDEIconEffect::Colorize, 1, color, false ); setPixmap( icon ); setText( journal->summary() ); } @@ -81,7 +81,7 @@ class KNotesIconViewItem : public KIconViewItem virtual void setText( const TQString& text ) { - KIconViewItem::setText( text ); + TDEIconViewItem::setText( text ); mJournal->setSummary( text ); } @@ -90,7 +90,7 @@ class KNotesIconViewItem : public KIconViewItem }; -class KNotesIconView : public KIconView +class KNotesIconView : public TDEIconView { protected: TQDragObject* dragObject() @@ -101,7 +101,7 @@ class KNotesIconView : public KIconView selectedItems.append( static_cast( it ) ); } if ( selectedItems.count() != 1 ) - return KIconView::dragObject(); + return TDEIconView::dragObject(); KCal::CalendarLocal cal( KPimPrefs::timezone() ); KCal::Incidence *i = selectedItems.first()->journal()->clone(); -- cgit v1.2.1