Changeset View
Changeset View
Standalone View
Standalone View
src/QuickEditor/QuickEditor.cpp
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "QuickEditor.h" | 20 | #include "QuickEditor.h" | ||
21 | 21 | | |||
22 | #include <QSize> | 22 | #include "SpectacleConfig.h" | ||
23 | #include <QPixmap> | | |||
24 | #include <QSharedPointer> | | |||
25 | #include <QMetaObject> | | |||
26 | 23 | | |||
24 | #include <KDeclarative/KDeclarative> | ||||
25 | | ||||
26 | #include <QPixmap> | ||||
27 | #include <QQuickImageProvider> | 27 | #include <QQuickImageProvider> | ||
28 | #include <QQuickItem> | 28 | #include <QQuickItem> | ||
29 | #include <QQuickItemGrabResult> | 29 | #include <QQuickItemGrabResult> | ||
30 | #include <QQuickView> | 30 | #include <QQuickView> | ||
31 | #include <QQmlEngine> | 31 | #include <QSize> | ||
32 | | ||||
33 | #include <KLocalizedString> | | |||
34 | #include <KDeclarative/KDeclarative> | | |||
35 | | ||||
36 | #include "SpectacleConfig.h" | | |||
37 | 32 | | |||
38 | struct QuickEditor::ImageStore : public QQuickImageProvider | 33 | struct QuickEditor::ImageStore : public QQuickImageProvider | ||
39 | { | 34 | { | ||
40 | ImageStore(const QPixmap &pixmap) : | 35 | ImageStore(const QPixmap &pixmap) : | ||
41 | QQuickImageProvider(QQuickImageProvider::Pixmap), | 36 | QQuickImageProvider(QQuickImageProvider::Pixmap), | ||
42 | mPixmap(pixmap) | 37 | mPixmap(pixmap) | ||
43 | {} | 38 | {} | ||
44 | 39 | | |||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |