ui: Show Database Version in About and Custom Command Source Group description

This commit is contained in:
Eberhard Graether
2018-12-17 14:49:04 +01:00
parent 95e121159f
commit 86190675a2
2 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -6,9 +6,10 @@
#include <QVBoxLayout>
#include "QtDeviceScaledPixmap.h"
#include "utilityQt.h"
#include "ResourcePaths.h"
#include "SqliteIndexStorage.h"
#include "utility.h"
#include "utilityQt.h"
#include "Version.h"
QtAbout::QtAbout(QWidget *parent)
@@ -52,6 +53,12 @@ void QtAbout::setupAbout()
windowLayout->addWidget(versionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter));
}
{
QLabel* dbVersionLabel = new QLabel(
"Database Version " + QString::number(SqliteIndexStorage::getStorageVersion()), this);
windowLayout->addWidget(dbVersionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter));
}
windowLayout->addStretch();
{
@@ -5,10 +5,11 @@
#include <QLabel>
#include <QPushButton>
#include "LanguageType.h"
#include "QtProjectWizzardWindow.h"
#include "QtFlowLayout.h"
#include "LanguageType.h"
#include "ResourcePaths.h"
#include "SqliteIndexStorage.h"
#include "utilityString.h"
QtProjectWizzardContentSelect::QtProjectWizzardContentSelect(
@@ -82,7 +83,7 @@ void QtProjectWizzardContentSelect::populate(QGridLayout* layout, int& row)
"Create a new Source Group from an existing <a href=\"https://www.hello2morrow.com/products/sonargraph\">Sonargraph</a> project file.";
m_sourceGroupTypeDescriptions[SOURCE_GROUP_CUSTOM_COMMAND] = "Create a new Source Group executing a custom command on each source file. "
"This Source Group type can be used on <a href=\"https://github.com/CoatiSoftware/SourcetrailDB\">SourcetrailDB</a> binaries that add "
"custom language support";
"custom language support to Sourcetrail.<br /><br />Current Database Version: " + std::to_string(SqliteIndexStorage::getStorageVersion());
QVBoxLayout* vlayout = new QVBoxLayout();
vlayout->setContentsMargins(0, 10, 0, 0);