Beginnings
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -52,3 +52,5 @@ compile_commands.json
|
|||||||
*creator.user*
|
*creator.user*
|
||||||
|
|
||||||
*_qmlcache.qrc
|
*_qmlcache.qrc
|
||||||
|
|
||||||
|
build/
|
||||||
@@ -9,8 +9,8 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
find_package(QT NAMES Qt6 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 Qml 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_SOURCES src/*.cpp)
|
||||||
file(GLOB_RECURSE PROJECT_HEADERS src/*.hpp)
|
file(GLOB_RECURSE PROJECT_HEADERS src/*.hpp)
|
||||||
@@ -24,7 +24,6 @@ add_executable(EinsatzplanQT
|
|||||||
|
|
||||||
target_link_libraries(EinsatzplanQT PRIVATE
|
target_link_libraries(EinsatzplanQT PRIVATE
|
||||||
Qt${QT_VERSION_MAJOR}::Widgets
|
Qt${QT_VERSION_MAJOR}::Widgets
|
||||||
Qt${QT_VERSION_MAJOR}::Qml
|
|
||||||
Qt${QT_VERSION_MAJOR}::Svg
|
Qt${QT_VERSION_MAJOR}::Svg
|
||||||
Qt${QT_VERSION_MAJOR}::Core
|
Qt${QT_VERSION_MAJOR}::Core
|
||||||
Qt${QT_VERSION_MAJOR}::Sql
|
Qt${QT_VERSION_MAJOR}::Sql
|
||||||
|
|||||||
7
src/View/LoginFrame/LoginFrame.cpp
Normal file
7
src/View/LoginFrame/LoginFrame.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# include "LoginFrame.hpp"
|
||||||
|
|
||||||
|
LoginFrame::LoginFrame(QWidget* parent)
|
||||||
|
:QFrame(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
14
src/View/LoginFrame/LoginFrame.hpp
Normal file
14
src/View/LoginFrame/LoginFrame.hpp
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# pragma once
|
||||||
|
# include <QFrame>
|
||||||
|
# include <QWidget>
|
||||||
|
# include <QPushButton>
|
||||||
|
# include <QInputDialog>
|
||||||
|
# include <QLabel>
|
||||||
|
|
||||||
|
class LoginFrame : public QFrame{
|
||||||
|
Q_OBJECT
|
||||||
|
private:
|
||||||
|
|
||||||
|
public:
|
||||||
|
LoginFrame(QWidget* parent = nullptr);
|
||||||
|
};
|
||||||
7
src/View/LoginWindow/LoginWindow.cpp
Normal file
7
src/View/LoginWindow/LoginWindow.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#include "LoginWindow.hpp"
|
||||||
|
|
||||||
|
LoginWindow::LoginWindow(QWidget* parent)
|
||||||
|
:QMainWindow(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
11
src/View/LoginWindow/LoginWindow.hpp
Normal file
11
src/View/LoginWindow/LoginWindow.hpp
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# pragma once
|
||||||
|
#include <QMainWindow>
|
||||||
|
|
||||||
|
class LoginWindow : public QMainWindow{
|
||||||
|
Q_OBJECT
|
||||||
|
private:
|
||||||
|
|
||||||
|
public:
|
||||||
|
LoginWindow(QWidget* parent = nullptr);
|
||||||
|
|
||||||
|
};
|
||||||
9
src/main.cpp
Normal file
9
src/main.cpp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# include <QApplication>
|
||||||
|
# include "View/LoginWindow/LoginWindow.hpp"
|
||||||
|
|
||||||
|
int main(int argc, char* argv[]){
|
||||||
|
QApplication app(argc,argv);
|
||||||
|
LoginWindow* loginWindow = new LoginWindow();
|
||||||
|
loginWindow->show();
|
||||||
|
return app.exec();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user