Skip to content
GitLab
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
407fa3c3
Commit
407fa3c3
authored
Apr 15, 2010
by
Thorbjørn Lindeijer
Browse files
Added theme icon to the help contents action
Also put it at the top, since it looks better there with the icon.
parent
2cebfd00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/help/helpplugin.cpp
View file @
407fa3c3
...
...
@@ -190,17 +190,17 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
cmd
->
setDefaultKeySequence
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_M
));
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
addBookmark
()));
// Add Index, Contents, and Context menu items and a separator to the Help menu
// Add Contents, Index, and Context menu items and a separator to the Help menu
action
=
new
QAction
(
QIcon
::
fromTheme
(
QLatin1String
(
"help-contents"
)),
tr
(
"Contents"
),
this
);
cmd
=
am
->
registerAction
(
action
,
QLatin1String
(
"Help.Contents"
),
globalcontext
);
am
->
actionContainer
(
M_HELP
)
->
addAction
(
cmd
,
Core
::
Constants
::
G_HELP_HELP
);
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
activateContents
()));
action
=
new
QAction
(
tr
(
"Index"
),
this
);
cmd
=
am
->
registerAction
(
action
,
QLatin1String
(
"Help.Index"
),
globalcontext
);
am
->
actionContainer
(
M_HELP
)
->
addAction
(
cmd
,
Core
::
Constants
::
G_HELP_HELP
);
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
activateIndex
()));
action
=
new
QAction
(
tr
(
"Contents"
),
this
);
cmd
=
am
->
registerAction
(
action
,
QLatin1String
(
"Help.Contents"
),
globalcontext
);
am
->
actionContainer
(
M_HELP
)
->
addAction
(
cmd
,
Core
::
Constants
::
G_HELP_HELP
);
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
activateContents
()));
action
=
new
QAction
(
tr
(
"Context Help"
),
this
);
cmd
=
am
->
registerAction
(
action
,
QLatin1String
(
"Help.Context"
),
globalcontext
);
am
->
actionContainer
(
M_HELP
)
->
addAction
(
cmd
,
Core
::
Constants
::
G_HELP_HELP
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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