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(); static QgsGui::HigFlags higFlags();
%Docstring %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 .. versionadded:: 3.4
%End %End

View File

@ -117,7 +117,7 @@ void QgsGui::setWindowManager( QgsWindowManagerInterface *manager )
QgsGui::HigFlags QgsGui::higFlags() QgsGui::HigFlags QgsGui::higFlags()
{ {
QgsSettings settings; 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; return HigMenuTextIsTitleCase | HigDialogTitleIsTitleCase;
} }

View File

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