diff --git a/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.cpp b/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.cpp index 4a60c851..d4f43477 100755 --- a/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.cpp +++ b/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.cpp @@ -6,9 +6,11 @@ #include #include +#include #include "ui_NoggitProjectSelectionWindow.h" + using namespace Noggit::Ui::Windows; NoggitProjectSelectionWindow::NoggitProjectSelectionWindow(Noggit::Application::NoggitApplication* noggit_app, @@ -31,8 +33,17 @@ NoggitProjectSelectionWindow::NoggitProjectSelectionWindow(Noggit::Application:: _load_project_component = std::make_unique(); + _ui->settings_button->setIcon(Noggit::Ui::FontAwesomeIcon(Noggit::Ui::FontAwesome::Icons::cog)); + _ui->settings_button->setIconSize(QSize(20,20)); + Component::RecentProjectsComponent::buildRecentProjectsList(this); + QObject::connect(_ui->settings_button, &QToolButton::clicked, [&] + { + _settings->show(); + } + ); + QObject::connect(_ui->button_create_new_project, &QPushButton::clicked, [=, this] { ProjectInformation project_reference; diff --git a/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.hpp b/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.hpp index cfcb2ae6..14e56da2 100755 --- a/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.hpp +++ b/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.hpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include diff --git a/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.ui b/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.ui index 138bfd23..bcda6344 100755 --- a/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.ui +++ b/src/noggit/ui/windows/projectSelection/NoggitProjectSelectionWindow.ui @@ -69,12 +69,18 @@ - - - 0 - 0 - - + + + 0 + 0 + + + + + 380 + 0 + + @@ -235,6 +241,33 @@ + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 40 + 20 + + + + + + + + ... + + + + +