From d03b27f28850e25d087f946e3a5c99b21c76f359 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 10 May 2007 20:29:10 +0000 Subject: layout improvements in the icons view: * do a text wrapping if the number of lines is > 1 (TODO: bugfix of KFileItemDelegate necessary, currently the text might overlap with the icon) * increase the height for the text area if an additional information like type, date, ... is shown svn path=/trunk/KDE/kdebase/apps/; revision=663320 --- src/dolphincontroller.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/dolphincontroller.cpp') diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp index 545d365bd..762526b3c 100644 --- a/src/dolphincontroller.cpp +++ b/src/dolphincontroller.cpp @@ -22,6 +22,7 @@ DolphinController::DolphinController(QObject* parent) : QObject(parent), m_showPreview(false), + m_showAdditionalInfo(false), m_zoomInPossible(false), m_zoomOutPossible(false) { @@ -60,11 +61,19 @@ void DolphinController::indicateSortOrderChange(Qt::SortOrder order) emit sortOrderChanged(order); } -void DolphinController::setShowPreview(bool showPreview) +void DolphinController::setShowPreview(bool show) { - if (m_showPreview != showPreview) { - m_showPreview = showPreview; - emit showPreviewChanged(showPreview); + if (m_showPreview != show) { + m_showPreview = show; + emit showPreviewChanged(show); + } +} + +void DolphinController::setShowAdditionalInfo(bool show) +{ + if (m_showAdditionalInfo != show) { + m_showAdditionalInfo = show; + emit showAdditionalInfoChanged(show); } } -- cgit v1.3