forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user