From a52078504a5a830df6ca2f5487c1b9e6904e11b7 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sun, 25 Dec 2011 17:32:49 +0100 Subject: [PATCH] version info for time zone --- src/main.cpp | 16 +++++++++++----- tzone | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d3da389..69ca6c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,9 @@ #include #include +#include +#include + #include "configdialog.h" #include "debug.h" #include "hmac.h" @@ -104,6 +107,7 @@ void MApplication::versionDlg() QMessageBox mb; mb.setIconPixmap(QPixmap(":/icon.png")); mb.setWindowTitle(tr("MagicSmoke Version Information")); + TimeZoneLib::TZFile tzf=TimeStamp::defaultZoneFile(); mb.setText(tr( "

MagicSmoke Version %3

" "" "" @@ -117,8 +121,8 @@ void MApplication::versionDlg() "" "" "" - "" - "" + "" + "" "
Repository:%1
PACK Library:%9
%10
Qt:%11
ELAM:%12
Time Zone Library:%13
Time Zone Data:%14
Time Zone Default:%13 in %14
version %15
Time Zone Built-In:%16
" ) .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionRootURL))) // %1 @@ -129,12 +133,14 @@ void MApplication::versionDlg() .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionAuthor))) //&6 .arg(htmlize(MSInterface::staticWocVersionInfo(WOb::VersionRootURL))) //%7 .arg(htmlize(MSInterface::staticWocVersionInfo(WOb::VersionNumber))) - .arg(htmlize(WInterface::staticLibraryVersionInfo(WOb::VersionRootURL))) //%0 + .arg(htmlize(WInterface::staticLibraryVersionInfo(WOb::VersionRootURL))) //%9 .arg(htmlize(WInterface::staticLibraryVersionInfo(WOb::VersionNumber))) .arg(htmlize(QT_VERSION_STR)) //%11 .arg(htmlize(ELAM::versionInfo())) //%12 - .arg("??") //%13 - .arg("??") //%14 + .arg(tzf.name()) //%13 + .arg(tzf.dirName()) + .arg(tzf.version()) + .arg(TimeZoneLib::TZFile::builtinVersion()) //%16 ); mb.setStandardButtons(QMessageBox::Ok); mb.exec(); diff --git a/tzone b/tzone index e8f6925..658457d 160000 --- a/tzone +++ b/tzone @@ -1 +1 @@ -Subproject commit e8f692597d177b69b5287d82514126b16a1a44e6 +Subproject commit 658457d56ee98a048b195b5bb5e525c88d368a55 -- 1.7.2.5