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
723754d2
Commit
723754d2
authored
Jun 07, 2010
by
Daniel Molkentin
Browse files
Allow F1 on projects mode
Reviewed-By: Leena Miettinen Reviewed-By: kh1
parent
3f715252
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/basemode.h
View file @
723754d2
...
...
@@ -59,12 +59,14 @@ public:
QWidget
*
widget
()
{
return
m_widget
;
}
QString
id
()
const
{
return
m_id
;
}
QList
<
int
>
context
()
const
{
return
m_context
;
}
QString
contextHelpId
()
const
{
return
m_helpId
;
}
void
setDisplayName
(
const
QString
&
name
)
{
m_displayName
=
name
;
}
void
setIcon
(
const
QIcon
&
icon
)
{
m_icon
=
icon
;
}
void
setPriority
(
int
priority
)
{
m_priority
=
priority
;
}
void
setWidget
(
QWidget
*
widget
)
{
m_widget
=
widget
;
}
void
setId
(
const
QString
&
id
)
{
m_id
=
id
;
}
void
setContextHelpId
(
const
QString
&
helpId
)
{
m_helpId
=
helpId
;
}
void
setContext
(
const
QList
<
int
>
&
context
)
{
m_context
=
context
;
}
private:
...
...
@@ -73,6 +75,7 @@ private:
int
m_priority
;
QWidget
*
m_widget
;
QString
m_id
;
QString
m_helpId
;
QList
<
int
>
m_context
;
};
...
...
src/plugins/projectexplorer/projectexplorer.cpp
View file @
723754d2
...
...
@@ -275,6 +275,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
d
->
m_projectsMode
->
setWidget
(
d
->
m_proWindow
);
d
->
m_projectsMode
->
setContext
(
QList
<
int
>
()
<<
pecontext
);
d
->
m_projectsMode
->
setEnabled
(
session
()
->
startupProject
());
d
->
m_projectsMode
->
setContextHelpId
(
QLatin1String
(
"Managing Projects"
));
addAutoReleasedObject
(
d
->
m_projectsMode
);
d
->
m_proWindow
->
layout
()
->
addWidget
(
new
Core
::
FindToolBarPlaceHolder
(
d
->
m_proWindow
));
...
...
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