X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..424da8bdb9f05243d8888d78a56ab0cc3f615a6c:/src/generic/aboutdlgg.cpp?ds=inline diff --git a/src/generic/aboutdlgg.cpp b/src/generic/aboutdlgg.cpp index 60f799b428..117dddf817 100644 --- a/src/generic/aboutdlgg.cpp +++ b/src/generic/aboutdlgg.cpp @@ -109,6 +109,29 @@ wxString wxAboutDialogInfo::GetCopyrightToDisplay() const return ret; } +void wxAboutDialogInfo::SetVersion(const wxString& version, + const wxString& longVersion) +{ + if ( version.empty() ) + { + m_version.clear(); + + wxASSERT_MSG( longVersion.empty(), + "long version should be empty if version is"); + + m_longVersion.clear(); + } + else // setting valid version + { + m_version = version; + + if ( longVersion.empty() ) + m_longVersion = _("Version ") + m_version; + else + m_longVersion = longVersion; + } +} + // ---------------------------------------------------------------------------- // wxGenericAboutDialog // ----------------------------------------------------------------------------