diff options
| author | David Faure <[email protected]> | 2008-01-22 01:38:45 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-01-22 01:38:45 +0000 |
| commit | 494f522b91972e5431ee9e2b1eb391d8ebc15ed6 (patch) | |
| tree | a17080c466209f4c1f291af145a278b0d6df4651 /src/dolphiniconsview.cpp | |
| parent | 7432eb75c21303bdc854872a82f8b5dccba1c128 (diff) | |
svn merge -r764536:HEAD from 4.0 branch: refactor "additional info" actions and provide them in the part
svn path=/trunk/KDE/kdebase/apps/; revision=764550
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 21debe745..8f5992219 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -79,8 +79,8 @@ DolphinIconsView::DolphinIconsView(QWidget* parent, DolphinController* controlle const DolphinView* view = controller->dolphinView(); connect(view, SIGNAL(showPreviewChanged()), this, SLOT(slotShowPreviewChanged())); - connect(view, SIGNAL(additionalInfoChanged(const KFileItemDelegate::InformationList&)), - this, SLOT(slotAdditionalInfoChanged(const KFileItemDelegate::InformationList&))); + connect(view, SIGNAL(additionalInfoChanged()), + this, SLOT(slotAdditionalInfoChanged())); connect(this, SIGNAL(entered(const QModelIndex&)), this, SLOT(slotEntered(const QModelIndex&))); @@ -321,10 +321,11 @@ void DolphinIconsView::slotShowPreviewChanged() updateGridSize(view->showPreview(), additionalInfoCount()); } -void DolphinIconsView::slotAdditionalInfoChanged(const KFileItemDelegate::InformationList& info) +void DolphinIconsView::slotAdditionalInfoChanged() { - const bool showPreview = m_controller->dolphinView()->showPreview(); - updateGridSize(showPreview, info.count()); + const DolphinView* view = m_controller->dolphinView(); + const bool showPreview = view->showPreview(); + updateGridSize(showPreview, view->additionalInfo().count()); } void DolphinIconsView::zoomIn() |
