diff options
author | Timothy Pearson <[email protected]> | 2013-02-04 14:01:21 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-04 14:01:21 -0600 |
commit | b3ff2ac060e73fe76f377c499907003cc7378a51 (patch) | |
tree | 0517ee3513bd9c72cdb0bc872b67695473f1f3a9 /src/gvcore/filethumbnailview.cpp | |
parent | 577ac5a23791dae4503e26ab46a3f7a0ba393c7a (diff) | |
download | gwenview-b3ff2ac060e73fe76f377c499907003cc7378a51.tar.gz gwenview-b3ff2ac060e73fe76f377c499907003cc7378a51.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/gvcore/filethumbnailview.cpp')
-rw-r--r-- | src/gvcore/filethumbnailview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp index 387c497..ddff849 100644 --- a/src/gvcore/filethumbnailview.cpp +++ b/src/gvcore/filethumbnailview.cpp @@ -160,7 +160,7 @@ static FileThumbnailViewItem* viewItem(const FileThumbnailView* view, const KFil FileThumbnailView::FileThumbnailView(TQWidget* parent) -: KIconView(parent), FileViewBase() +: TDEIconView(parent), FileViewBase() { d=new Private; d->mUpdateThumbnailsOnNextShow=false; @@ -183,10 +183,10 @@ FileThumbnailView::FileThumbnailView(TQWidget* parent) setSpacing(0); setAcceptDrops(true); - // We can't use KIconView::Execute mode because in this mode the current - // item is unselected after being clicked, so we use KIconView::Select mode + // We can't use TDEIconView::Execute mode because in this mode the current + // item is unselected after being clicked, so we use TDEIconView::Select mode // and emit the execute() signal with slotClicked() ourself. - setMode(KIconView::Select); + setMode(TDEIconView::Select); connect(this, TQT_SIGNAL(clicked(TQIconViewItem*)), this, TQT_SLOT(slotClicked(TQIconViewItem*)) ); connect(this, TQT_SIGNAL(doubleClicked(TQIconViewItem*)), @@ -565,7 +565,7 @@ void FileThumbnailView::setSorting(TQDir::SortSpec spec) { if (iconItem) setSortingKey(iconItem, item); } - KIconView::sort(! (spec & TQDir::Reversed) ); + TDEIconView::sort(! (spec & TQDir::Reversed) ); } //-------------------------------------------------------------------------- @@ -584,7 +584,7 @@ void FileThumbnailView::slotDropped(TQDropEvent* event) { void FileThumbnailView::showEvent(TQShowEvent* event) { - KIconView::showEvent(event); + TDEIconView::showEvent(event); if (!d->mUpdateThumbnailsOnNextShow) return; d->mUpdateThumbnailsOnNextShow=false; @@ -724,10 +724,10 @@ void FileThumbnailView::keyPressEvent( TQKeyEvent* e ) { if( e->key() != Key_Left && e->key() != Key_Right && e->key() != Key_Up - && e->key() != Key_Down ) return KIconView::keyPressEvent( e ); + && e->key() != Key_Down ) return TDEIconView::keyPressEvent( e ); TQIconViewItem* current = currentItem(); - KIconView::keyPressEvent( e ); + TDEIconView::keyPressEvent( e ); TQIconViewItem* next = NULL; if( current != currentItem() && currentItem() != NULL ) { // it actually moved switch( e->key()) { |