X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/49f881f5ec01014e7b6b0c7fa14abd7e99f605fc..862ceee323ad3b474ce9de11eefbddd99c528fac:/src/dolphincontroller.cpp diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp index 288083533..378c1b4ba 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) { @@ -43,8 +44,8 @@ void DolphinController::triggerActivation() } void DolphinController::indicateDroppedUrls(const KUrl::List& urls, - const QModelIndex& index, - QWidget* source) + const QModelIndex& index, + QWidget* source) { emit urlsDropped(urls, index, source); } @@ -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); } } @@ -83,9 +92,14 @@ void DolphinController::triggerItem(const QModelIndex& index) emit itemTriggered(index); } -void DolphinController::indicateSelectionChange() +void DolphinController::emitItemEntered(const QModelIndex& index) +{ + emit itemEntered(index); +} + +void DolphinController::emitViewportEntered() { - emit selectionChanged(); + emit viewportEntered(); } #include "dolphincontroller.moc"