MuseScore  3.4
Music composition and notation
miconengine.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2011 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENSE.GPL
11 //=============================================================================
12 
13 // this is a modified version of qt QSvgIconEngine
14 
15 #ifndef __MICONENGINE_H__
16 #define __MICONENGINE_H__
17 
18 #include <QtGui/qiconengine.h>
19 #include <QtCore/qshareddata.h>
20 
21 class MIconEnginePrivate;
22 
23 //---------------------------------------------------------
24 // MIconEngine
25 //---------------------------------------------------------
26 
27 class MIconEngine : public QIconEngine
28  {
29  public:
30  MIconEngine();
31  MIconEngine(const MIconEngine &other);
32  ~MIconEngine();
33  void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state);
34  QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state);
35  QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state);
36 
37  void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state);
38  void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state);
39 
40  QString key() const;
41  QIconEngine *clone() const;
42 
43  private:
44  QSharedDataPointer<MIconEnginePrivate> d;
45  };
46 
47 #endif
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)
Definition: miconengine.cpp:276
~MIconEngine()
Definition: miconengine.cpp:77
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
Definition: miconengine.cpp:248
Definition: miconengine.cpp:22
Definition: miconengine.h:27
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state)
Definition: miconengine.cpp:85
QSharedDataPointer< MIconEnginePrivate > d
Definition: miconengine.h:44
MIconEngine()
Definition: miconengine.cpp:62
QIconEngine * clone() const
Definition: miconengine.cpp:297
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state)
Definition: miconengine.cpp:192
void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state)
Definition: miconengine.cpp:236
QString key() const
Definition: miconengine.cpp:288