diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2017-04-24 17:01:10 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2017-04-24 18:36:28 +0000 |
commit | 3624a663d8e94c57cdabca774962a2995c8f79f3 (patch) | |
tree | 0fef1f9ed7d5ec3da5faafb81fd92ae6c300fe66 /src/plugins/glsleditor | |
parent | 07884645af8fb449d6b1343d33b734925588768a (diff) |
Reduce usage of qApp in favor of static function calls
Q*Application classes have unusually many static functions. In many
cases in our code, these functions are unnecessarily called as instance
functions, using the qApp helper.
This patch replaces many occurencies of qApp with the according
Q*Application classname.
Change-Id: I6099a419fa7bf969891269c37ed7a9e817ef5124
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r-- | src/plugins/glsleditor/glsleditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp index a0871bd1b1..47cf9e2a49 100644 --- a/src/plugins/glsleditor/glsleditor.cpp +++ b/src/plugins/glsleditor/glsleditor.cpp @@ -312,7 +312,7 @@ AssistInterface *GlslEditorWidget::createAssistInterface( GlslEditorFactory::GlslEditorFactory() { setId(Constants::C_GLSLEDITOR_ID); - setDisplayName(qApp->translate("OpenWith::Editors", Constants::C_GLSLEDITOR_DISPLAY_NAME)); + setDisplayName(QCoreApplication::translate("OpenWith::Editors", Constants::C_GLSLEDITOR_DISPLAY_NAME)); addMimeType(Constants::GLSL_MIMETYPE); addMimeType(Constants::GLSL_MIMETYPE_VERT); addMimeType(Constants::GLSL_MIMETYPE_FRAG); |