diff --git a/.gitignore b/.gitignore index 7f4826b..55d0973 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,5 @@ compile_commands.json *creator.user* *_qmlcache.qrc + +build/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index a615213..6015eb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,8 +9,8 @@ set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets Qml Svg Core Sql) -find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Qml Svg Core Sql) +find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets Svg Core Sql) +find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Svg Core Sql) file(GLOB_RECURSE PROJECT_SOURCES src/*.cpp) file(GLOB_RECURSE PROJECT_HEADERS src/*.hpp) @@ -24,7 +24,6 @@ add_executable(EinsatzplanQT target_link_libraries(EinsatzplanQT PRIVATE Qt${QT_VERSION_MAJOR}::Widgets - Qt${QT_VERSION_MAJOR}::Qml Qt${QT_VERSION_MAJOR}::Svg Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Sql diff --git a/src/View/LoginFrame/LoginFrame.cpp b/src/View/LoginFrame/LoginFrame.cpp new file mode 100644 index 0000000..6fc510c --- /dev/null +++ b/src/View/LoginFrame/LoginFrame.cpp @@ -0,0 +1,7 @@ +# include "LoginFrame.hpp" + +LoginFrame::LoginFrame(QWidget* parent) +:QFrame(parent) +{ + +} \ No newline at end of file diff --git a/src/View/LoginFrame/LoginFrame.hpp b/src/View/LoginFrame/LoginFrame.hpp new file mode 100644 index 0000000..d5a64c6 --- /dev/null +++ b/src/View/LoginFrame/LoginFrame.hpp @@ -0,0 +1,14 @@ +# pragma once +# include +# include +# include +# include +# include + +class LoginFrame : public QFrame{ + Q_OBJECT +private: + +public: +LoginFrame(QWidget* parent = nullptr); +}; \ No newline at end of file diff --git a/src/View/LoginWindow/LoginWindow.cpp b/src/View/LoginWindow/LoginWindow.cpp new file mode 100644 index 0000000..cd2381d --- /dev/null +++ b/src/View/LoginWindow/LoginWindow.cpp @@ -0,0 +1,7 @@ +#include "LoginWindow.hpp" + +LoginWindow::LoginWindow(QWidget* parent) +:QMainWindow(parent) +{ + +} \ No newline at end of file diff --git a/src/View/LoginWindow/LoginWindow.hpp b/src/View/LoginWindow/LoginWindow.hpp new file mode 100644 index 0000000..732d5e2 --- /dev/null +++ b/src/View/LoginWindow/LoginWindow.hpp @@ -0,0 +1,11 @@ +# pragma once +#include + +class LoginWindow : public QMainWindow{ + Q_OBJECT +private: + +public: +LoginWindow(QWidget* parent = nullptr); + +}; \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..7e239ab --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,9 @@ +# include +# include "View/LoginWindow/LoginWindow.hpp" + +int main(int argc, char* argv[]){ + QApplication app(argc,argv); + LoginWindow* loginWindow = new LoginWindow(); + loginWindow->show(); + return app.exec(); +} \ No newline at end of file