Commit 723754d2 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Allow F1 on projects mode

Reviewed-By: Leena Miettinen
Reviewed-By: kh1
parent 3f715252
...@@ -59,12 +59,14 @@ public: ...@@ -59,12 +59,14 @@ public:
QWidget *widget() { return m_widget; } QWidget *widget() { return m_widget; }
QString id() const { return m_id; } QString id() const { return m_id; }
QList<int> context() const { return m_context; } QList<int> context() const { return m_context; }
QString contextHelpId() const { return m_helpId; }
void setDisplayName(const QString &name) { m_displayName = name; } void setDisplayName(const QString &name) { m_displayName = name; }
void setIcon(const QIcon &icon) { m_icon = icon; } void setIcon(const QIcon &icon) { m_icon = icon; }
void setPriority(int priority) { m_priority = priority; } void setPriority(int priority) { m_priority = priority; }
void setWidget(QWidget *widget) { m_widget = widget; } void setWidget(QWidget *widget) { m_widget = widget; }
void setId(const QString &id) { m_id = id; } 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; } void setContext(const QList<int> &context) { m_context = context; }
private: private:
...@@ -73,6 +75,7 @@ private: ...@@ -73,6 +75,7 @@ private:
int m_priority; int m_priority;
QWidget *m_widget; QWidget *m_widget;
QString m_id; QString m_id;
QString m_helpId;
QList<int> m_context; QList<int> m_context;
}; };
......
...@@ -275,6 +275,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er ...@@ -275,6 +275,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
d->m_projectsMode->setWidget(d->m_proWindow); d->m_projectsMode->setWidget(d->m_proWindow);
d->m_projectsMode->setContext(QList<int>() << pecontext); d->m_projectsMode->setContext(QList<int>() << pecontext);
d->m_projectsMode->setEnabled(session()->startupProject()); d->m_projectsMode->setEnabled(session()->startupProject());
d->m_projectsMode->setContextHelpId(QLatin1String("Managing Projects"));
addAutoReleasedObject(d->m_projectsMode); addAutoReleasedObject(d->m_projectsMode);
d->m_proWindow->layout()->addWidget(new Core::FindToolBarPlaceHolder(d->m_proWindow)); d->m_proWindow->layout()->addWidget(new Core::FindToolBarPlaceHolder(d->m_proWindow));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment