summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/utils/ktximage.h
blob: 19b8132d2702d4bfd4b6a62b3ce27638af1509a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once

#include "qmldesignerutils_global.h"

#include <QImage>
#include <QPixmap>
#include <QSize>
#include <QString>

namespace QmlDesigner {

class QMLDESIGNERUTILS_EXPORT KtxImage
{
public:
    KtxImage(const QString &fileName);

    QString fileName() const { return m_fileName; }
    QSize dimensions() const;

private:
    void loadKtx();

    QString m_fileName;
    QSize m_dim;
};

} // namespace QmlDesigner