From 5e2d8102aafb925a28e758aaca95085e30d7c414 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 13 May 2014 18:14:04 +0400 Subject: [PATCH] [CEA 1160] Help icon missing in the Preferences --- src/LightApp/LightApp_PreferencesDlg.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_PreferencesDlg.cxx b/src/LightApp/LightApp_PreferencesDlg.cxx index d95a79332..e2d29ec6f 100644 --- a/src/LightApp/LightApp_PreferencesDlg.cxx +++ b/src/LightApp/LightApp_PreferencesDlg.cxx @@ -28,6 +28,8 @@ #include "QtxResourceMgr.h" +#include +#include #include #include @@ -39,7 +41,7 @@ Constructor. */ LightApp_PreferencesDlg::LightApp_PreferencesDlg( LightApp_Preferences* prefs, QWidget* parent ) -: QtxDialog( parent, true, true, OK | Close | Apply ), +: QtxDialog( parent, true, true, OK | Close | Apply | Help ), myPrefs( prefs ), mySaved ( false ) { setWindowTitle( tr( "CAPTION" ) ); @@ -115,6 +117,9 @@ void LightApp_PreferencesDlg::reject() /*!Do nothing.*/ void LightApp_PreferencesDlg::onHelp() { + SUIT_Application* app = SUIT_Session::session()->activeApplication(); + if ( app ) + app->onHelpContextModule( "GUI", "setting_preferences_page.html" ); } /*!Store preferences on apply.*/ -- 2.39.2