ui: Added help menu actions to show log and data folders

This commit is contained in:
Eberhard Graether
2016-08-06 13:14:30 +02:00
parent 3c88998c10
commit 7616e07eeb
3 changed files with 19 additions and 1 deletions
+15
View File
@@ -362,6 +362,16 @@ void QtMainWindow::enterLicense()
enterLicenseWindow->load();
}
void QtMainWindow::showDataFolder()
{
QDesktopServices::openUrl(QUrl(("file:///" + UserPaths::getUserDataPath()).c_str(), QUrl::TolerantMode));
}
void QtMainWindow::showLogFolder()
{
QDesktopServices::openUrl(QUrl(("file:///" + UserPaths::getLogPath()).c_str(), QUrl::TolerantMode));
}
void QtMainWindow::showStartScreen()
{
QtStartScreen* startScreen = createWindow<QtStartScreen>();
@@ -635,6 +645,11 @@ void QtMainWindow::setupHelpMenu()
{
menu->addAction(tr("Enter License..."), this, SLOT(enterLicense()));
}
menu->addSeparator();
menu->addAction(tr("Show Data Folder"), this, SLOT(showDataFolder()));
menu->addAction(tr("Show Log Folder"), this, SLOT(showLogFolder()));
}
QtMainWindow::DockWidget* QtMainWindow::getDockWidgetForView(View* view)