Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
50ccecee
Commit
50ccecee
authored
Jun 02, 2010
by
Thorbjørn Lindeijer
Browse files
Some initialization and removed redundant member variables
Reviewed-by: kh1
parent
86bd6d9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/help/generalsettingspage.cpp
View file @
50ccecee
...
...
@@ -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
);
...
...
src/plugins/help/generalsettingspage.h
View file @
50ccecee
...
...
@@ -76,8 +76,6 @@ private:
QFont
m_font
;
QFontDatabase
m_fontDatabase
;
int
m_helpOption
;
int
m_startOption
;
QString
m_homePage
;
QString
m_searchKeywords
;
...
...
src/plugins/help/searchwidget.cpp
View file @
50ccecee
...
...
@@ -56,6 +56,7 @@ SearchWidget::SearchWidget()
:
zoomCount
(
0
)
,
m_progress
(
0
)
,
searchEngine
(
0
)
,
resultWidget
(
0
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment