]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kfileitemlisttostring.h
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / src / kitemviews / kfileitemlisttostring.h
index 7eee0aec995ab192d61b64faa0900447c925f4c2..1cba1a43c9130a38aa86f11750c4ba718a84b546 100644 (file)
@@ -1,6 +1,6 @@
 /*
     This file is part of the KDE project
-    SPDX-FileCopyrightText: 2022 Felix Ernst <felixernst@zohomail.eu>
+    SPDX-FileCopyrightText: 2022 Felix Ernst <felixernst@kde.org>
 
     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