summaryrefslogtreecommitdiff
path: root/src/plugins/help/generalsettingspage.cpp
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2009-07-14 13:20:26 +0200
committermae <qt-info@nokia.com>2009-07-14 13:21:51 +0200
commit35be3a3b027012a062d4bcba2a533a6aaa017e2f (patch)
treee4c347641fa2d8b1385a345cbd45451f39b4805d /src/plugins/help/generalsettingspage.cpp
parentca97bce8debd570f222d1fe2e65ba3e4e37d5072 (diff)
downloadqt-creator-35be3a3b027012a062d4bcba2a533a6aaa017e2f.tar.gz
customize context help. The three modes are:
- show side-by-side if possible - always show side-by-side - always show full help The default is "show side-by-side if possible". It's currently considered possible if the editor is at least 800 pixels wide.
Diffstat (limited to 'src/plugins/help/generalsettingspage.cpp')
-rw-r--r--src/plugins/help/generalsettingspage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/help/generalsettingspage.cpp b/src/plugins/help/generalsettingspage.cpp
index 61a93ba851..fe2630088f 100644
--- a/src/plugins/help/generalsettingspage.cpp
+++ b/src/plugins/help/generalsettingspage.cpp
@@ -110,6 +110,10 @@ QWidget *GeneralSettingsPage::createPage(QWidget *parent)
int index = m_helpEngine->customValue(QLatin1String("StartOption"), 2).toInt();
m_ui.helpStartComboBox->setCurrentIndex(index);
+
+ index = m_helpEngine->customValue(QLatin1String("ContextHelpOption"), 0).toInt();
+ m_ui.contextHelpComboBox->setCurrentIndex(index);
+
connect(m_ui.currentPageButton, SIGNAL(clicked()), this, SLOT(setCurrentPage()));
connect(m_ui.blankPageButton, SIGNAL(clicked()), this, SLOT(setBlankPage()));
@@ -165,6 +169,9 @@ void GeneralSettingsPage::apply()
int startOption = m_ui.helpStartComboBox->currentIndex();
m_helpEngine->setCustomValue(QLatin1String("StartOption"), startOption);
+
+ int contextHelpOption = m_ui.contextHelpComboBox->currentIndex();
+ m_helpEngine->setCustomValue(QLatin1String("ContextHelpOption"), contextHelpOption);
}
void GeneralSettingsPage::finish()