Add micro version to toolkit version functions
Support micro versions in wxAppTraits::GetToolkitVersion and wxPlatformInfo functions related to toolkit versions.
This commit is contained in:
committed by
Tobias Taschner
parent
ea439c278b
commit
1e78bf639e
@@ -39,12 +39,16 @@ wxTimerImpl *wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
|
||||
|
||||
// #endif
|
||||
|
||||
wxPortId wxGUIAppTraits::GetToolkitVersion(int *majVer, int *minVer) const
|
||||
wxPortId wxGUIAppTraits::GetToolkitVersion(int *majVer,
|
||||
int *minVer,
|
||||
int *microVer) const
|
||||
{
|
||||
if ( majVer )
|
||||
*majVer = QT_VERSION >> 16;
|
||||
if ( minVer )
|
||||
*minVer = (QT_VERSION >> 8) & 0xFF;
|
||||
if ( microVer )
|
||||
*microVer = QT_VERSION & 0xFF;
|
||||
|
||||
return wxPORT_QT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user