KStatusNotifierItem

macutils.mm
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2023 Hannah von Reth <vonreth@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#import <AppKit/NSApplication.h>
8#import <AppKit/NSDockTile.h>
9
10#include <QString>
11namespace MacUtils
12{
13void setBadgeLabelText(const QString &text)
14{
15 [[[NSApplication sharedApplication] dockTile] setBadgeLabel:text.toNSString()];
16}
17}
NSString * toNSString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.