Remove some dox details which are likely to go out of date quickly

This commit is contained in:
Nyall Dawson 2018-10-26 07:19:50 +10:00
parent 857bbe1e66
commit 1118f4ac91
3 changed files with 5 additions and 5 deletions

View File

@ -110,7 +110,7 @@ Sets the global window ``manager``. Ownership is transferred to the QgsGui insta
static QgsGui::HigFlags higFlags();
%Docstring
Returns HIG flags. Currently indicates whether titles should be title case depending on the current locale.
Returns the platform's HIG flags.
.. versionadded:: 3.4
%End

View File

@ -117,7 +117,7 @@ void QgsGui::setWindowManager( QgsWindowManagerInterface *manager )
QgsGui::HigFlags QgsGui::higFlags()
{
QgsSettings settings;
if ( settings.value( QStringLiteral( "locale/userLocale" ), "" ).toString().startsWith( "en" ) )
if ( settings.value( QStringLiteral( "locale/userLocale" ), QString() ).toString().startsWith( QLatin1String( "en" ) ) )
{
return HigMenuTextIsTitleCase | HigDialogTitleIsTitleCase;
}

View File

@ -126,8 +126,8 @@ class GUI_EXPORT QgsGui
static void setWindowManager( QgsWindowManagerInterface *manager SIP_TRANSFER );
/**
* HIG flags. Currently indicate whether titles should be title case depending on the current locale.
* \since QGIS 3.4
* HIG flags, which indicate the Human Interface Guidelines for the current platform.
* \since QGIS 3.4
*/
enum HigFlag
{
@ -137,7 +137,7 @@ class GUI_EXPORT QgsGui
Q_DECLARE_FLAGS( HigFlags, HigFlag )
/**
* Returns HIG flags. Currently indicates whether titles should be title case depending on the current locale.
* Returns the platform's HIG flags.
* \since QGIS 3.4
*/
static QgsGui::HigFlags higFlags();