Retrieving model from the core and showing its data in a QTableView.
This commit is contained in:
@ -7,6 +7,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class GenericCore;
|
||||
|
||||
class QAbstractItemModel;
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
@ -36,7 +37,9 @@ class MainWindow : public QMainWindow {
|
||||
private:
|
||||
Ui::MainWindow* ui;
|
||||
|
||||
GenericCore* m_core;
|
||||
// GenericCore* m_core;
|
||||
std::unique_ptr<GenericCore> m_core;
|
||||
std::shared_ptr<QAbstractItemModel> m_tableModel;
|
||||
|
||||
/// Setup functions
|
||||
void createActions();
|
||||
|
||||
Reference in New Issue
Block a user