1 | /* |
2 | * This file is part of the KDE project, module kdecore. |
3 | * Copyright (C) 2006 Oswald Buddenhagen <ossi@kde.org> |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public License |
16 | * along with this library; see the file COPYING.LIB. If not, write to |
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | */ |
19 | |
20 | #ifndef KSVGRENDERER_H |
21 | #define KSVGRENDERER_H |
22 | |
23 | #include <kdeui_export.h> |
24 | |
25 | #include <QtSvg/QSvgRenderer> |
26 | |
27 | /** |
28 | * Thin wrapper around QSvgRenderer with SVGZ support. |
29 | * |
30 | * @deprecated At least since Qt 4.6, QSvgRenderer has built-in SVGZ support, |
31 | * so you can use QSvgRenderer instead of KSvgRenderer in new code, and |
32 | * replace KSvgRenderer by QSvgRenderer in old code without any regressions. |
33 | */ |
34 | class KDEUI_EXPORT_DEPRECATED KSvgRenderer : public QSvgRenderer |
35 | { |
36 | Q_OBJECT |
37 | |
38 | public: |
39 | KSvgRenderer(QObject *parent = 0); |
40 | explicit KSvgRenderer(const QString &filename, QObject *parent = 0); |
41 | explicit KSvgRenderer(const QByteArray &contents, QObject *parent = 0); |
42 | |
43 | public Q_SLOTS: |
44 | bool load(const QString &filename); |
45 | bool load(const QByteArray &contents); |
46 | }; |
47 | |
48 | |
49 | #endif // KSVGRENDERER_H |
50 | |