1 // Copyright 2005-2019 The Mumble Developers. All rights reserved. 2 // Use of this source code is governed by a BSD-style license 3 // that can be found in the LICENSE file at the root of the 4 // Mumble source tree or at <https://www.mumble.info/LICENSE>. 5 6 #ifndef MUMBLE_MUMBLE_SVGICON_H 7 #define MUMBLE_MUMBLE_SVGICON_H 8 9 #include <QIcon> 10 #include <QString> 11 12 class SvgIcon 13 { 14 public: 15 /// addSvgPixmapsToIcon renders the SVG file at |fn| in various 16 /// common sizes from 8x8 up to 256x256 and adds the resulting 17 /// rasterized pixmaps to |icon|. 18 /// 19 /// This method is only needed due to an odd interaction between 20 /// Qt and Plasma/KStatusNotifierItem. See 21 /// https://github.com/mumble-voip/mumble/issues/3374 22 /// for more information. 23 static void addSvgPixmapsToIcon(QIcon &icon, QString fn); 24 }; 25 26 #endif 27