From 70961ef0c5e1040f14cd6bceaa726de14936c245 Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Tue, 13 Sep 2022 22:01:03 +0200 Subject: [PATCH] Added first model (Table) --- .gitignore | 2 ++ CMakeLists.txt | 4 +++- include/datamodels.h | 0 src/tablemodel/tablemodel.cpp | 0 src/tablemodel/tablemodel.h | 0 5 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 include/datamodels.h create mode 100644 src/tablemodel/tablemodel.cpp create mode 100644 src/tablemodel/tablemodel.h diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8bf8c42 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.gitmodules +/submodules/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bfef7b..5e92c8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,15 +7,17 @@ find_package(Qt5 "5.15.0" COMPONENTS Core CONFIG REQUIRED ) include_directories( SYSTEM ${Qt5Core_INCLUDE_DIRS} -} +) include(compiler) set( SRC_LIST + ${CMAKE_SOURCE_DIR}/src/tablemodel/tablemodel.cpp ) include(qtmoc) create_mocs( SRC_LIST MOC_LIST + ${CMAKE_SOURCE_DIR}/src/tablemodel/tablemodel.h ) link_directories( diff --git a/include/datamodels.h b/include/datamodels.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/include/datamodels.h diff --git a/src/tablemodel/tablemodel.cpp b/src/tablemodel/tablemodel.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/tablemodel/tablemodel.cpp diff --git a/src/tablemodel/tablemodel.h b/src/tablemodel/tablemodel.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/tablemodel/tablemodel.h -- libgit2 0.21.4