X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d5d710ed0a282089498b9370af6f0ec76f3bdc05..a35af3a0d2022a23c5a1cc30d693141a13673b8f:/src/kitemviews/kfileitemlisttostring.h diff --git a/src/kitemviews/kfileitemlisttostring.h b/src/kitemviews/kfileitemlisttostring.h index 7eee0aec9..1cba1a43c 100644 --- a/src/kitemviews/kfileitemlisttostring.h +++ b/src/kitemviews/kfileitemlisttostring.h @@ -1,6 +1,6 @@ /* This file is part of the KDE project - SPDX-FileCopyrightText: 2022 Felix Ernst + SPDX-FileCopyrightText: 2022 Felix Ernst SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -12,10 +12,7 @@ class KFileItemList; class QFontMetrics; class QString; -enum ItemsState { - None, - Selected -}; +enum ItemsState { None, Selected }; /** * @brief Generates a textual representation of the given list of KFileItems. @@ -51,6 +48,6 @@ enum ItemsState { * Otherwise returns something like "5 Files", "8 Selected Folders" or "60 Items" * while being as specific as possible. */ -QString fileItemListToString(KFileItemList items, int maximumTextWidth, QFontMetrics fontMetrics, ItemsState itemsState = ItemsState::None); +QString fileItemListToString(KFileItemList items, int maximumTextWidth, const QFontMetrics &fontMetrics, ItemsState itemsState = ItemsState::None); #endif // KFILEITEMLISTTOSTRING_H