ui: Show Database Version in About and Custom Command Source Group description
This commit is contained in:
@@ -6,9 +6,10 @@
|
|||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
#include "QtDeviceScaledPixmap.h"
|
#include "QtDeviceScaledPixmap.h"
|
||||||
#include "utilityQt.h"
|
|
||||||
#include "ResourcePaths.h"
|
#include "ResourcePaths.h"
|
||||||
|
#include "SqliteIndexStorage.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
#include "utilityQt.h"
|
||||||
#include "Version.h"
|
#include "Version.h"
|
||||||
|
|
||||||
QtAbout::QtAbout(QWidget *parent)
|
QtAbout::QtAbout(QWidget *parent)
|
||||||
@@ -52,6 +53,12 @@ void QtAbout::setupAbout()
|
|||||||
windowLayout->addWidget(versionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter));
|
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();
|
windowLayout->addStretch();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,10 +5,11 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
|
#include "LanguageType.h"
|
||||||
#include "QtProjectWizzardWindow.h"
|
#include "QtProjectWizzardWindow.h"
|
||||||
#include "QtFlowLayout.h"
|
#include "QtFlowLayout.h"
|
||||||
#include "LanguageType.h"
|
|
||||||
#include "ResourcePaths.h"
|
#include "ResourcePaths.h"
|
||||||
|
#include "SqliteIndexStorage.h"
|
||||||
#include "utilityString.h"
|
#include "utilityString.h"
|
||||||
|
|
||||||
QtProjectWizzardContentSelect::QtProjectWizzardContentSelect(
|
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.";
|
"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. "
|
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 "
|
"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();
|
QVBoxLayout* vlayout = new QVBoxLayout();
|
||||||
vlayout->setContentsMargins(0, 10, 0, 0);
|
vlayout->setContentsMargins(0, 10, 0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user