diff --git a/CMakeLists.txt b/CMakeLists.txt index ad19708..4cbfedf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,3 +38,4 @@ endif(UNIX) add_subdirectory(src) add_subdirectory(sample) add_subdirectory(reader) +add_subdirectory(profiler_gui) diff --git a/profiler_gui/CMakeLists.txt b/profiler_gui/CMakeLists.txt new file mode 100644 index 0000000..d1d2114 --- /dev/null +++ b/profiler_gui/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) + +project(profiler_gui) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +find_package(Qt5Widgets REQUIRED) +add_executable(${PROJECT_NAME} main.cpp) +target_link_libraries(${PROJECT_NAME} Qt5::Widgets) \ No newline at end of file diff --git a/profiler_gui/main.cpp b/profiler_gui/main.cpp new file mode 100644 index 0000000..3699b9a --- /dev/null +++ b/profiler_gui/main.cpp @@ -0,0 +1,18 @@ +#include +#include +#include + +int main(int argc, char **argv) +{ + QApplication app(argc, argv); + + + QFileSystemModel *model = new QFileSystemModel; + model->setRootPath(QDir::currentPath()); + QTreeView *tree = new QTreeView(); + tree->setModel(model); + + tree->show(); + + return app.exec(); +} \ No newline at end of file