Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinview.cpp
Context not available. | |||||
176 | connect(selectionManager, &KItemListSelectionManager::selectionChanged, | 176 | connect(selectionManager, &KItemListSelectionManager::selectionChanged, | ||
---|---|---|---|---|---|
177 | this, &DolphinView::slotSelectionChanged); | 177 | this, &DolphinView::slotSelectionChanged); | ||
178 | 178 | | |||
179 | #ifdef HAVE_BALOO | | |||
180 | m_toolTipManager = new ToolTipManager(this); | 179 | m_toolTipManager = new ToolTipManager(this); | ||
181 | connect(m_toolTipManager, &ToolTipManager::urlActivated, this, &DolphinView::urlActivated); | 180 | connect(m_toolTipManager, &ToolTipManager::urlActivated, this, &DolphinView::urlActivated); | ||
182 | #endif | | |||
183 | 181 | | |||
184 | m_versionControlObserver = new VersionControlObserver(this); | 182 | m_versionControlObserver = new VersionControlObserver(this); | ||
185 | m_versionControlObserver->setView(this); | 183 | m_versionControlObserver->setView(this); | ||
Context not available. | |||||
1039 | const QPoint pos = m_container->mapToGlobal(itemRect.topLeft().toPoint()); | 1037 | const QPoint pos = m_container->mapToGlobal(itemRect.topLeft().toPoint()); | ||
1040 | itemRect.moveTo(pos); | 1038 | itemRect.moveTo(pos); | ||
1041 | 1039 | | |||
1042 | #ifdef HAVE_BALOO | | |||
1043 | m_toolTipManager->showToolTip(item, itemRect, nativeParentWidget()->windowHandle()); | 1040 | m_toolTipManager->showToolTip(item, itemRect, nativeParentWidget()->windowHandle()); | ||
1044 | #endif | | |||
1045 | } | 1041 | } | ||
1046 | 1042 | | |||
1047 | emit requestItemInfo(item); | 1043 | emit requestItemInfo(item); | ||
Context not available. | |||||
1418 | 1414 | | |||
1419 | void DolphinView::hideToolTip() | 1415 | void DolphinView::hideToolTip() | ||
1420 | { | 1416 | { | ||
1421 | #ifdef HAVE_BALOO | | |||
1422 | if (GeneralSettings::showToolTips()) { | 1417 | if (GeneralSettings::showToolTips()) { | ||
1423 | m_toolTipManager->hideToolTip(); | 1418 | m_toolTipManager->hideToolTip(); | ||
1424 | } | 1419 | } | ||
1425 | #endif | | |||
1426 | } | 1420 | } | ||
1427 | 1421 | | |||
1428 | void DolphinView::calculateItemCount(int& fileCount, | 1422 | void DolphinView::calculateItemCount(int& fileCount, | ||
Context not available. |