swift
Loading...
Searching...
No Matches
liverylistmodel.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_GUI_LIVERYLISTMODEL_H
7#define SWIFT_GUI_LIVERYLISTMODEL_H
8
10#include "gui/swiftguiexport.h"
12
13class QObject;
14
15namespace swift::misc::aviation
16{
17 class CLivery;
18} // namespace swift::misc::aviation
19
20namespace swift::gui::models
21{
23 class SWIFT_GUI_EXPORT CLiveryListModel : public CListModelDbObjects<swift::misc::aviation::CLiveryList, int, true>
24 {
26
27 public:
29 explicit CLiveryListModel(QObject *parent = nullptr);
30
32 ~CLiveryListModel() override = default;
33 };
34} // namespace swift::gui::models
35
36#endif // SWIFT_GUI_LIVERYLISTMODEL_H
QModelIndex parent(const QModelIndex &child) const final
CListModelDbObjects(const QString &translationContext, QObject *parent=nullptr)
CLiveryListModel(QObject *parent=nullptr)
Constructor.
~CLiveryListModel()=default
Destructor.
Value object encapsulating information about an airpot.
Definition livery.h:29
Models to be used with views, mainly QTableView.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
#define SWIFT_GUI_EXPORT
Export a class or function from the library.