ui: moved recent projects submenu

* moved the menu entry for "recent projects" to be placed close to "open project"
* replaced enum for MaxRecentProjectsCount in AppSettings by a getter function.
This commit is contained in:
malte_langkabel
2016-03-23 14:15:30 +01:00
parent d1a4bc7b08
commit fee1d97604
4 changed files with 30 additions and 24 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ void QtStartScreen::setupStartScreen()
int position = 290;
QIcon cpp_icon((ResourcePaths::getGuiPath() + "icon/project_256_256.png").c_str());
std::vector<FilePath> recentProjects = ApplicationSettings::getInstance()->getRecentProjects();
for (size_t i = 0; i < recentProjects.size() && i < ApplicationSettings::MaximalAmountOfRecentProjects; i++)
for (size_t i = 0; i < recentProjects.size() && i < ApplicationSettings::getInstance()->getMaxRecentProjectsCount(); i++)
{
QtRecentProjectButton* button = new QtRecentProjectButton(recentProjects[i], this);
button->setAttribute(Qt::WA_LayoutUsesWidgetRect); // fixes layouting on Mac