forked from qt-creator/qt-creator
Some initialization and removed redundant member variables
Reviewed-by: kh1
This commit is contained in:
@@ -108,18 +108,18 @@ QWidget *GeneralSettingsPage::createPage(QWidget *parent)
|
||||
}
|
||||
m_ui.homePageLineEdit->setText(m_homePage);
|
||||
|
||||
m_startOption = engine.customValue(QLatin1String("StartOption"), 2).toInt();
|
||||
m_ui.helpStartComboBox->setCurrentIndex(m_startOption);
|
||||
int startOption = engine.customValue(QLatin1String("StartOption"), 2).toInt();
|
||||
m_ui.helpStartComboBox->setCurrentIndex(startOption);
|
||||
|
||||
m_helpOption = engine.customValue(QLatin1String("ContextHelpOption"), 0).toInt();
|
||||
m_ui.contextHelpComboBox->setCurrentIndex(m_helpOption);
|
||||
int helpOption = engine.customValue(QLatin1String("ContextHelpOption"), 0).toInt();
|
||||
m_ui.contextHelpComboBox->setCurrentIndex(helpOption);
|
||||
|
||||
connect(m_ui.currentPageButton, SIGNAL(clicked()), this, SLOT(setCurrentPage()));
|
||||
connect(m_ui.blankPageButton, SIGNAL(clicked()), this, SLOT(setBlankPage()));
|
||||
connect(m_ui.defaultPageButton, SIGNAL(clicked()), this, SLOT(setDefaultPage()));
|
||||
|
||||
HelpViewer *viewer = CentralWidget::instance()->currentHelpViewer();
|
||||
if (viewer == 0)
|
||||
if (!viewer)
|
||||
m_ui.currentPageButton->setEnabled(false);
|
||||
|
||||
m_ui.errorLabel->setVisible(false);
|
||||
|
||||
@@ -76,8 +76,6 @@ private:
|
||||
QFont m_font;
|
||||
QFontDatabase m_fontDatabase;
|
||||
|
||||
int m_helpOption;
|
||||
int m_startOption;
|
||||
QString m_homePage;
|
||||
|
||||
QString m_searchKeywords;
|
||||
|
||||
@@ -56,6 +56,7 @@ SearchWidget::SearchWidget()
|
||||
: zoomCount(0)
|
||||
, m_progress(0)
|
||||
, searchEngine(0)
|
||||
, resultWidget(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user