Allow setting long version field in About dialog.
Long version is constructed by concatenating "Version " with the short version but can be overridden for the platforms which use it (currently MSW and OS X). Closes 11027. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user