diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 238b7e5..779ce6d 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -4,8 +4,7 @@ "name": "Linux", "includePath": [ "${workspaceFolder}/**", - "/usr/include/qt", - "/usr/include/qt/QtWidgets" + "/usr/include/qt" ], "defines": [], "compilerPath": "/usr/bin/clang", diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 2c7f713..78113b5 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -3,6 +3,11 @@ find_package(Boost 1.62 COMPONENTS date_time REQUIRED) find_package(SQLite3 REQUIRED) +#set(CORE_HEADERS +# entity.h +# database.h +#) + set(CORE_SOURCES database.cpp entity.cpp @@ -14,5 +19,4 @@ set(CORE_SOURCES add_library(core STATIC ${CORE_SOURCES}) target_link_libraries(core Boost::boost Boost::date_time) -target_link_libraries(core sqlite3) -target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file +target_link_libraries(core sqlite3) \ No newline at end of file diff --git a/src/gui/kima2.cpp b/src/gui/kima2.cpp index cb210ef..372e273 100644 --- a/src/gui/kima2.cpp +++ b/src/gui/kima2.cpp @@ -1,7 +1,5 @@ #include "mainwindow.h" -#include - #include @@ -11,8 +9,8 @@ int main(int argc, char* argv[]) QApplication kimaApp{argc, argv}; - auto mainWin = std::make_unique(); - mainWin->show(); + MainWindow mainWin{}; + mainWin.show(); return kimaApp.exec(); } diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index d352cfe..c94ac19 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -2,10 +2,5 @@ MainWindow::MainWindow() { - ui_.setupUi(this); - - connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit); - - marketplace_ = std::make_unique(); -} - + ui.setupUi(this); +} \ No newline at end of file diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 943382c..2cc3dad 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -1,13 +1,9 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include - #include "ui_mainwindow.h" #include -#include - class MainWindow : public QMainWindow { Q_OBJECT @@ -16,8 +12,7 @@ class MainWindow : public QMainWindow MainWindow(); private: - Ui::MainWindow ui_; - std::unique_ptr marketplace_; + Ui::MainWindow ui; }; #endif \ No newline at end of file diff --git a/src/gui/mainwindow.ui b/src/gui/mainwindow.ui index 79a4517..ca4bfd5 100644 --- a/src/gui/mainwindow.ui +++ b/src/gui/mainwindow.ui @@ -23,36 +23,8 @@ 24 - - - &Datei - - - - - - &Bearbeiten - - - - - - - - - .. - - - &Beenden - - - - - &Verkäufer... - - diff --git a/src/gui/sellerdialog.ui b/src/gui/sellerdialog.ui deleted file mode 100644 index b789849..0000000 --- a/src/gui/sellerdialog.ui +++ /dev/null @@ -1,115 +0,0 @@ - - - sellerDialog - - - Qt::NonModal - - - - 0 - 0 - 400 - 300 - - - - Verkäufer Dialog - - - true - - - - - - - - - - - - - Neu - - - - - - - Bearbeiten - - - - - - - Löschen - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - sellerDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - sellerDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - -