swift
applicationinfolistmodel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 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_MODELS_APPLICATIONINFOLISTMODEL_H
7 #define SWIFT_GUI_MODELS_APPLICATIONINFOLISTMODEL_H
8 
9 #include <QObject>
10 
12 #include "gui/swiftguiexport.h"
14 
15 class QStandardItemModel;
16 
17 namespace swift::gui::models
18 {
20  class SWIFT_GUI_EXPORT CApplicationInfoListModel : public CListModelBase<swift::misc::CApplicationInfoList, true>
21  {
22  Q_OBJECT
23 
24  public:
26  explicit CApplicationInfoListModel(QObject *parent = nullptr);
27 
30 
32  void otherSwiftVersionsFromDataDirectories(bool reinit);
33  };
34 } // namespace swift::gui::models
35 #endif // SWIFT_GUI_MODELS_APPLICATIONINFOLISTMODEL_H
Models to be used with views, mainly QTableView.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.