diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 14:59:02 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 14:59:02 -0600 |
commit | 5920e96087707ba892650898521dac63152274f9 (patch) | |
tree | f8c9eba82d742338798e31b9edb7d90aa9c55ce9 /src/gvcore/filedetailview.cpp | |
parent | 50ccc22eb9b1f32c842956f0207baaf7da8f0f6f (diff) | |
download | gwenview-5920e96087707ba892650898521dac63152274f9.tar.gz gwenview-5920e96087707ba892650898521dac63152274f9.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/gvcore/filedetailview.cpp')
-rw-r--r-- | src/gvcore/filedetailview.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gvcore/filedetailview.cpp b/src/gvcore/filedetailview.cpp index 1328100..6d2dbb1 100644 --- a/src/gvcore/filedetailview.cpp +++ b/src/gvcore/filedetailview.cpp @@ -74,7 +74,7 @@ static TQPixmap createShownItemPixmap(int size, const TQColor& color) { FileDetailView::FileDetailView(TQWidget *parent, const char *name) - : KListView(parent, name), FileViewBase() + : TDEListView(parent, name), FileViewBase() { mSortingCol = COL_NAME; mBlockSortingSignal = false; @@ -140,14 +140,14 @@ void FileDetailView::setSelected( const KFileItem *info, bool enable ) { if (!info) return; FileDetailViewItem *item = viewItem(info); - if (item) KListView::setSelected(item, enable); + if (item) TDEListView::setSelected(item, enable); } void FileDetailView::setCurrentItem( const KFileItem *item ) { if (!item) return; FileDetailViewItem *listItem = viewItem(item); - if (listItem) KListView::setCurrentItem(listItem); + if (listItem) TDEListView::setCurrentItem(listItem); } KFileItem * FileDetailView::currentFileItem() const @@ -160,17 +160,17 @@ KFileItem * FileDetailView::currentFileItem() const void FileDetailView::clearSelection() { - KListView::clearSelection(); + TDEListView::clearSelection(); } void FileDetailView::selectAll() { - KListView::selectAll( true ); + TDEListView::selectAll( true ); } void FileDetailView::invertSelection() { - KListView::invertSelection(); + TDEListView::invertSelection(); } void FileDetailView::slotActivateMenu (TQListViewItem *item,const TQPoint& pos ) @@ -187,7 +187,7 @@ void FileDetailView::clearView() { mResolver->m_lstPendingMimeIconItems.clear(); mShownFileItem=0L; - KListView::clear(); + TDEListView::clear(); } void FileDetailView::insertItem( KFileItem *i ) @@ -349,8 +349,8 @@ void FileDetailView::slotSortingChanged( int col ) if (thumbItem) setSortingKey(thumbItem,item); } - KListView::setSorting( mSortingCol, !reversed ); - KListView::sort(); + TDEListView::setSorting( mSortingCol, !reversed ); + TDEListView::sort(); if (!mBlockSortingSignal) sig->changeSorting( static_cast<TQDir::SortSpec>( sortSpec ) ); } @@ -390,7 +390,7 @@ void FileDetailView::ensureItemVisible( const KFileItem *i ) FileDetailViewItem *item = viewItem(i); - if ( item ) KListView::ensureItemVisible( item ); + if ( item ) TDEListView::ensureItemVisible( item ); } // we're in multiselection mode @@ -434,7 +434,7 @@ KFileItem * FileDetailView::prevItem( const KFileItem *fileItem ) const void FileDetailView::keyPressEvent( TQKeyEvent *e ) { - KListView::keyPressEvent( e ); + TDEListView::keyPressEvent( e ); if ( e->key() == Key_Return || e->key() == Key_Enter ) { if ( e->state() & ControlButton ) |