src/platform/qt/AssetInfo.h (view raw)
1/* Copyright (c) 2013-2019 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#pragma once
7
8#include <QGroupBox>
9#include <QHash>
10#include <QLabel>
11#include <QVariant>
12
13namespace QGBA {
14
15class CoreController;
16
17class AssetInfo : public QGroupBox {
18Q_OBJECT
19
20public:
21 AssetInfo(QWidget* parent = nullptr);
22 void addCustomProperty(const QString& id, const QString& visibleName);
23
24public slots:
25 void setCustomProperty(const QString& id, const QVariant& value);
26
27protected:
28 virtual int customLocation(const QString& id = {});
29
30private:
31 QHash<QString, QLabel*> m_customProperties;
32};
33
34}