diff options
| author | Ahmad Samir <[email protected]> | 2022-06-11 19:16:13 +0200 |
|---|---|---|
| committer | Ahmad Samir <[email protected]> | 2022-06-15 11:28:42 +0200 |
| commit | 28a74d178071c89dbdc53a193c1db68e0d10ddcb (patch) | |
| tree | 5fca06ac39652546c0eb3b289c65fbc1903626d0 /src/views | |
| parent | 8a0003bfbcc87068737ab1e2b94ae7b2ba73eca1 (diff) | |
Use cmakedefine01
This way we get a build time warning if the var isn't defined at all, e.g.
a missing check_include_files() CMake call.
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 10 | ||||
| -rw-r--r-- | src/views/dolphinviewactionhandler.cpp | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 4f5b0e83a..168e282b5 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -25,7 +25,7 @@ #include "views/tooltips/tooltipmanager.h" #include "zoomlevelinfo.h" -#ifdef HAVE_BALOO +#if HAVE_BALOO #include <Baloo/IndexerConfig> #endif #include <KColorScheme> @@ -209,7 +209,7 @@ DolphinView::DolphinView(const QUrl& url, QWidget* parent) : connect(selectionManager, &KItemListSelectionManager::selectionChanged, this, &DolphinView::slotSelectionChanged); -#ifdef HAVE_BALOO +#if HAVE_BALOO m_toolTipManager = new ToolTipManager(this); connect(m_toolTipManager, &ToolTipManager::urlActivated, this, &DolphinView::urlActivated); #endif @@ -1076,7 +1076,7 @@ void DolphinView::slotHeaderContextMenuRequested(const QPointF& pos) const QList<QByteArray> visibleRolesSet = view->visibleRoles(); bool indexingEnabled = false; -#ifdef HAVE_BALOO +#if HAVE_BALOO Baloo::IndexerConfig config; indexingEnabled = config.fileIndexingEnabled(); #endif @@ -1224,7 +1224,7 @@ void DolphinView::slotItemHovered(int index) const QPoint pos = m_container->mapToGlobal(itemRect.topLeft().toPoint()); itemRect.moveTo(pos); -#ifdef HAVE_BALOO +#if HAVE_BALOO auto nativeParent = nativeParentWidget(); if (nativeParent) { m_toolTipManager->showToolTip(item, itemRect, nativeParent->windowHandle()); @@ -1666,7 +1666,7 @@ void DolphinView::updateViewState() void DolphinView::hideToolTip(const ToolTipManager::HideBehavior behavior) { if (GeneralSettings::showToolTips()) { -#ifdef HAVE_BALOO +#if HAVE_BALOO m_toolTipManager->hideToolTip(behavior); #else Q_UNUSED(behavior) diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index 1c5298703..f59daab42 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -14,7 +14,7 @@ #include "views/zoomlevelinfo.h" #include "kconfig_version.h" -#ifdef HAVE_BALOO +#if HAVE_BALOO #include <Baloo/IndexerConfig> #endif #include <KActionCollection> @@ -355,7 +355,7 @@ QActionGroup* DolphinViewActionHandler::createFileItemRolesActionGroup(const QSt QActionGroup* groupMenuGroup = nullptr; bool indexingEnabled = false; -#ifdef HAVE_BALOO +#if HAVE_BALOO Baloo::IndexerConfig config; indexingEnabled = config.fileIndexingEnabled(); #endif |
