From 3d2ed40f54089e9d8de6be0e78645f48a41ce3e5 Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Fri, 29 Apr 2016 16:13:32 +0300 Subject: [PATCH] add profiler gui --- CMakeLists.txt | 1 + profiler_gui/CMakeLists.txt | 10 ++++++++++ profiler_gui/main.cpp | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 profiler_gui/CMakeLists.txt create mode 100644 profiler_gui/main.cpp 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