qbolt: show makefile-based version number in help dialog

This commit is contained in:
mappu 2024-10-05 16:37:15 +13:00
parent 96c05641bd
commit f9b4cb71a5
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ import (
"github.com/mappu/miqt/qt"
)
var Version string = "v0.0.0-devel"
func main() {
_ = qt.NewQApplication(os.Args)

View File

@ -181,7 +181,7 @@ func (this *MainWindow) on_actionAbout_qbolt_triggered() {
qt.QMessageBox_About(
this.Widget(),
qt.QGuiApplication_ApplicationDisplayName(),
"<b>QBolt</b><br>Graphical interface for managing Bolt databases<br><br>"+
"<b>QBolt "+Version+"</b><br>Graphical interface for managing Bolt databases<br><br>"+
"- <a href='https://github.com/boltdb/bolt'>About BoltDB</a><br>"+
"- <a href='http://www.famfamfam.com/lab/icons/silk/'>FamFamFam &quot;Silk&quot; icon set</a><br>"+
"- <a href='https://code.ivysaur.me/qbolt'>QBolt homepage</a><br>",