Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove some dox details which are likely to go out of date quickly
  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent 857bbe1 commit 1118f4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsgui.sip.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsgui.cpp
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/gui/qgsgui.h
Expand Up @@ -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
{
Expand All @@ -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();
Expand Down

0 comments on commit 1118f4a

Please sign in to comment.