Commit 9fe97068 authored by hjk's avatar hjk
Browse files

ProjectExplorer: Clean up remaining SessionManager uses



Change-Id: I170edc81cc2bcb4de4168c5ec38d3897c2e7c7e8
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 01266723
...@@ -46,34 +46,28 @@ ...@@ -46,34 +46,28 @@
namespace ProjectExplorer { namespace ProjectExplorer {
namespace Internal { namespace Internal {
DependenciesModel::DependenciesModel(SessionManager *session, DependenciesModel::DependenciesModel(Project *project, QObject *parent)
Project *project,
QObject *parent)
: QAbstractListModel(parent) : QAbstractListModel(parent)
, m_session(session)
, m_project(project) , m_project(project)
, m_projects(session->projects()) , m_projects(SessionManager::projects())
{ {
// We can't select ourselves as a dependency // We can't select ourselves as a dependency
m_projects.removeAll(m_project); m_projects.removeAll(m_project);
connect(session, SIGNAL(projectRemoved(ProjectExplorer::Project*)),
QObject *sessionManager = SessionManager::instance();
connect(sessionManager, SIGNAL(projectRemoved(ProjectExplorer::Project*)),
this, SLOT(resetModel())); this, SLOT(resetModel()));
connect(session, SIGNAL(projectAdded(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(projectAdded(ProjectExplorer::Project*)),
this, SLOT(resetModel())); this, SLOT(resetModel()));
connect(session, SIGNAL(sessionLoaded(QString)), connect(sessionManager, SIGNAL(sessionLoaded(QString)),
this, SLOT(resetModel())); this, SLOT(resetModel()));
// qDebug()<<"Dependencies Model"<<this<<"for project"<<project<<"("<<project->file()->fileName()<<")"; // qDebug()<<"Dependencies Model"<<this<<"for project"<<project<<"("<<project->file()->fileName()<<")";
} }
DependenciesModel::~DependenciesModel()
{
// qDebug()<<"~DependenciesModel"<<this;
}
void DependenciesModel::resetModel() void DependenciesModel::resetModel()
{ {
beginResetModel(); beginResetModel();
m_projects = m_session->projects(); m_projects = SessionManager::projects();
m_projects.removeAll(m_project); m_projects.removeAll(m_project);
endResetModel(); endResetModel();
} }
...@@ -101,7 +95,7 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const ...@@ -101,7 +95,7 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole: case Qt::DisplayRole:
return p->displayName(); return p->displayName();
case Qt::CheckStateRole: case Qt::CheckStateRole:
return m_session->hasDependency(m_project, p) ? Qt::Checked : Qt::Unchecked; return SessionManager::hasDependency(m_project, p) ? Qt::Checked : Qt::Unchecked;
case Qt::DecorationRole: case Qt::DecorationRole:
return Core::FileIconProvider::instance()->icon(QFileInfo(p->projectFilePath())); return Core::FileIconProvider::instance()->icon(QFileInfo(p->projectFilePath()));
default: default:
...@@ -116,7 +110,7 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value, ...@@ -116,7 +110,7 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value,
const Qt::CheckState c = static_cast<Qt::CheckState>(value.toInt()); const Qt::CheckState c = static_cast<Qt::CheckState>(value.toInt());
if (c == Qt::Checked) { if (c == Qt::Checked) {
if (m_session->addDependency(m_project, p)) { if (SessionManager::addDependency(m_project, p)) {
emit dataChanged(index, index); emit dataChanged(index, index);
return true; return true;
} else { } else {
...@@ -124,8 +118,8 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value, ...@@ -124,8 +118,8 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value,
QCoreApplication::translate("DependenciesModel", "This would create a circular dependency.")); QCoreApplication::translate("DependenciesModel", "This would create a circular dependency."));
} }
} else if (c == Qt::Unchecked) { } else if (c == Qt::Unchecked) {
if (m_session->hasDependency(m_project, p)) { if (SessionManager::hasDependency(m_project, p)) {
m_session->removeDependency(m_project, p); SessionManager::removeDependency(m_project, p);
emit dataChanged(index, index); emit dataChanged(index, index);
return true; return true;
} }
...@@ -157,11 +151,6 @@ DependenciesView::DependenciesView(QWidget *parent) ...@@ -157,11 +151,6 @@ DependenciesView::DependenciesView(QWidget *parent)
setRootIsDecorated(false); setRootIsDecorated(false);
} }
DependenciesView::~DependenciesView()
{
}
QSize DependenciesView::sizeHint() const QSize DependenciesView::sizeHint() const
{ {
return m_sizeHint; return m_sizeHint;
...@@ -219,13 +208,10 @@ void DependenciesView::updateSizeHint() ...@@ -219,13 +208,10 @@ void DependenciesView::updateSizeHint()
// DependenciesWidget // DependenciesWidget
// //
DependenciesWidget::DependenciesWidget(SessionManager *session, DependenciesWidget::DependenciesWidget(Project *project, QWidget *parent)
Project *project,
QWidget *parent)
: QWidget(parent) : QWidget(parent)
, m_session(session)
, m_project(project) , m_project(project)
, m_model(new DependenciesModel(session, project, this)) , m_model(new DependenciesModel(project, this))
{ {
QVBoxLayout *vbox = new QVBoxLayout(this); QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setContentsMargins(0, 0, 0, 0); vbox->setContentsMargins(0, 0, 0, 0);
...@@ -248,14 +234,9 @@ DependenciesWidget::DependenciesWidget(SessionManager *session, ...@@ -248,14 +234,9 @@ DependenciesWidget::DependenciesWidget(SessionManager *session,
// DependenciesPanelFactory // DependenciesPanelFactory
// //
DependenciesPanelFactory::DependenciesPanelFactory(SessionManager *session)
: m_session(session)
{
}
QString DependenciesPanelFactory::id() const QString DependenciesPanelFactory::id() const
{ {
return QLatin1String(DEPENDENCIES_PANEL_ID); return QLatin1String("ProjectExplorer.DependenciesPanel");
} }
QString DependenciesPanelFactory::displayName() const QString DependenciesPanelFactory::displayName() const
...@@ -277,7 +258,7 @@ bool DependenciesPanelFactory::supports(Project *project) ...@@ -277,7 +258,7 @@ bool DependenciesPanelFactory::supports(Project *project)
PropertiesPanel *DependenciesPanelFactory::createPanel(Project *project) PropertiesPanel *DependenciesPanelFactory::createPanel(Project *project)
{ {
PropertiesPanel *panel = new PropertiesPanel; PropertiesPanel *panel = new PropertiesPanel;
panel->setWidget(new DependenciesWidget(m_session, project)); panel->setWidget(new DependenciesWidget(project));
panel->setIcon(QIcon(QLatin1String(":/projectexplorer/images/ProjectDependencies.png"))); panel->setIcon(QIcon(QLatin1String(":/projectexplorer/images/ProjectDependencies.png")));
panel->setDisplayName(QCoreApplication::translate("DependenciesPanel", "Dependencies")); panel->setDisplayName(QCoreApplication::translate("DependenciesPanel", "Dependencies"));
return panel; return panel;
......
...@@ -36,33 +36,24 @@ ...@@ -36,33 +36,24 @@
#include <QTreeView> #include <QTreeView>
namespace Utils { namespace Utils { class DetailsWidget; }
class DetailsWidget;
}
namespace ProjectExplorer { namespace ProjectExplorer {
class Project; class Project;
class SessionManager;
namespace Internal { namespace Internal {
const char DEPENDENCIES_PANEL_ID[] = "ProjectExplorer.DependenciesPanel";
class DependenciesWidget;
class DependenciesPanelFactory : public IProjectPanelFactory class DependenciesPanelFactory : public IProjectPanelFactory
{ {
public: public:
DependenciesPanelFactory(SessionManager *session); DependenciesPanelFactory() {}
QString id() const; QString id() const;
QString displayName() const; QString displayName() const;
int priority() const; int priority() const;
bool supports(Project *project); bool supports(Project *project);
PropertiesPanel *createPanel(Project *project); PropertiesPanel *createPanel(Project *project);
private:
SessionManager *m_session;
}; };
...@@ -73,9 +64,9 @@ private: ...@@ -73,9 +64,9 @@ private:
class DependenciesModel : public QAbstractListModel class DependenciesModel : public QAbstractListModel
{ {
Q_OBJECT Q_OBJECT
public: public:
DependenciesModel(SessionManager *session, Project *project, QObject *parent = 0); explicit DependenciesModel(Project *project, QObject *parent = 0);
~DependenciesModel();
int rowCount(const QModelIndex &index) const; int rowCount(const QModelIndex &index) const;
int columnCount(const QModelIndex &index) const; int columnCount(const QModelIndex &index) const;
...@@ -87,7 +78,6 @@ public slots: ...@@ -87,7 +78,6 @@ public slots:
void resetModel(); void resetModel();
private: private:
SessionManager *m_session;
Project *m_project; Project *m_project;
QList<Project *> m_projects; QList<Project *> m_projects;
}; };
...@@ -95,13 +85,16 @@ private: ...@@ -95,13 +85,16 @@ private:
class DependenciesView : public QTreeView class DependenciesView : public QTreeView
{ {
Q_OBJECT Q_OBJECT
public: public:
DependenciesView(QWidget *parent); DependenciesView(QWidget *parent);
~DependenciesView();
virtual QSize sizeHint() const; QSize sizeHint() const;
virtual void setModel(QAbstractItemModel *model); void setModel(QAbstractItemModel *model);
private slots: private slots:
void updateSizeHint(); void updateSizeHint();
private: private:
QSize m_sizeHint; QSize m_sizeHint;
}; };
...@@ -109,11 +102,11 @@ private: ...@@ -109,11 +102,11 @@ private:
class DependenciesWidget : public QWidget class DependenciesWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
DependenciesWidget(SessionManager *session, Project *project, explicit DependenciesWidget(Project *project, QWidget *parent = 0);
QWidget *parent = 0);
private: private:
SessionManager *m_session;
Project *m_project; Project *m_project;
DependenciesModel *m_model; DependenciesModel *m_model;
Utils::DetailsWidget *m_detailsContainer; Utils::DetailsWidget *m_detailsContainer;
......
...@@ -209,16 +209,17 @@ int ListWidget::padding() ...@@ -209,16 +209,17 @@ int ListWidget::padding()
//////// ////////
// ProjectListWidget // ProjectListWidget
//////// ////////
ProjectListWidget::ProjectListWidget(SessionManager *sessionManager, QWidget *parent) ProjectListWidget::ProjectListWidget(QWidget *parent)
: ListWidget(parent), m_sessionManager(sessionManager), m_ignoreIndexChange(false) : ListWidget(parent), m_ignoreIndexChange(false)
{ {
connect(m_sessionManager, SIGNAL(projectAdded(ProjectExplorer::Project*)), QObject *sessionManager = SessionManager::instance();
connect(sessionManager, SIGNAL(projectAdded(ProjectExplorer::Project*)),
this, SLOT(addProject(ProjectExplorer::Project*))); this, SLOT(addProject(ProjectExplorer::Project*)));
connect(m_sessionManager, SIGNAL(aboutToRemoveProject(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(aboutToRemoveProject(ProjectExplorer::Project*)),
this, SLOT(removeProject(ProjectExplorer::Project*))); this, SLOT(removeProject(ProjectExplorer::Project*)));
connect(m_sessionManager, SIGNAL(startupProjectChanged(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
this, SLOT(changeStartupProject(ProjectExplorer::Project*))); this, SLOT(changeStartupProject(ProjectExplorer::Project*)));
connect(m_sessionManager, SIGNAL(projectDisplayNameChanged(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(projectDisplayNameChanged(ProjectExplorer::Project*)),
this, SLOT(projectDisplayNameChanged(ProjectExplorer::Project*))); this, SLOT(projectDisplayNameChanged(ProjectExplorer::Project*)));
connect(this, SIGNAL(currentRowChanged(int)), connect(this, SIGNAL(currentRowChanged(int)),
this, SLOT(setProject(int))); this, SLOT(setProject(int)));
...@@ -363,7 +364,7 @@ void ProjectListWidget::setProject(int index) ...@@ -363,7 +364,7 @@ void ProjectListWidget::setProject(int index)
if (index < 0) if (index < 0)
return; return;
Project *p = item(index)->data(Qt::UserRole).value<Project *>(); Project *p = item(index)->data(Qt::UserRole).value<Project *>();
m_sessionManager->setStartupProject(p); SessionManager::setStartupProject(p);
} }
void ProjectListWidget::changeStartupProject(Project *project) void ProjectListWidget::changeStartupProject(Project *project)
...@@ -539,8 +540,8 @@ QWidget *MiniProjectTargetSelector::createTitleLabel(const QString &text) ...@@ -539,8 +540,8 @@ QWidget *MiniProjectTargetSelector::createTitleLabel(const QString &text)
return bar; return bar;
} }
MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorAction, SessionManager *sessionManager, QWidget *parent) : MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorAction, QWidget *parent) :
QWidget(parent), m_projectAction(targetSelectorAction), m_sessionManager(sessionManager), QWidget(parent), m_projectAction(targetSelectorAction),
m_project(0), m_project(0),
m_target(0), m_target(0),
m_buildConfiguration(0), m_buildConfiguration(0),
...@@ -570,7 +571,7 @@ MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorActi ...@@ -570,7 +571,7 @@ MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorActi
m_listWidgets[PROJECT] = 0; //project is not a generic list widget m_listWidgets[PROJECT] = 0; //project is not a generic list widget
m_titleWidgets[PROJECT] = createTitleLabel(tr("Project")); m_titleWidgets[PROJECT] = createTitleLabel(tr("Project"));
m_projectListWidget = new ProjectListWidget(m_sessionManager, this); m_projectListWidget = new ProjectListWidget(this);
QStringList titles; QStringList titles;
titles << tr("Kit") << tr("Build") titles << tr("Kit") << tr("Build")
...@@ -581,21 +582,23 @@ MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorActi ...@@ -581,21 +582,23 @@ MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorActi
m_listWidgets[i] = new GenericListWidget(this); m_listWidgets[i] = new GenericListWidget(this);
} }
changeStartupProject(m_sessionManager->startupProject()); Project *startup = SessionManager::startupProject();
if (m_sessionManager->startupProject()) changeStartupProject(startup);
activeTargetChanged(m_sessionManager->startupProject()->activeTarget()); if (startup)
activeTargetChanged(startup->activeTarget());
connect(m_summaryLabel, SIGNAL(linkActivated(QString)), connect(m_summaryLabel, SIGNAL(linkActivated(QString)),
this, SLOT(switchToProjectsMode())); this, SLOT(switchToProjectsMode()));
connect(m_sessionManager, SIGNAL(startupProjectChanged(ProjectExplorer::Project*)), QObject *sessionManager = SessionManager::instance();
connect(sessionManager, SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
this, SLOT(changeStartupProject(ProjectExplorer::Project*))); this, SLOT(changeStartupProject(ProjectExplorer::Project*)));
connect(m_sessionManager, SIGNAL(projectAdded(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(projectAdded(ProjectExplorer::Project*)),
this, SLOT(projectAdded(ProjectExplorer::Project*))); this, SLOT(projectAdded(ProjectExplorer::Project*)));
connect(m_sessionManager, SIGNAL(projectRemoved(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(projectRemoved(ProjectExplorer::Project*)),
this, SLOT(projectRemoved(ProjectExplorer::Project*))); this, SLOT(projectRemoved(ProjectExplorer::Project*)));
connect(m_sessionManager, SIGNAL(projectDisplayNameChanged(ProjectExplorer::Project*)), connect(sessionManager, SIGNAL(projectDisplayNameChanged(ProjectExplorer::Project*)),
this, SLOT(updateActionAndSummary())); this, SLOT(updateActionAndSummary()));
// for icon changes: // for icon changes:
...@@ -760,7 +763,7 @@ void MiniProjectTargetSelector::doLayout(bool keepSize) ...@@ -760,7 +763,7 @@ void MiniProjectTargetSelector::doLayout(bool keepSize)
onlySummary = true; onlySummary = true;
} else { } else {
if (visibleLineCount < 3) { if (visibleLineCount < 3) {
foreach (Project *p, m_sessionManager->projects()) { foreach (Project *p, SessionManager::projects()) {
if (p->needsConfiguration()) { if (p->needsConfiguration()) {
visibleLineCount = 3; visibleLineCount = 3;
break; break;
...@@ -1063,10 +1066,11 @@ void MiniProjectTargetSelector::slotRemovedRunConfiguration(ProjectExplorer::Run ...@@ -1063,10 +1066,11 @@ void MiniProjectTargetSelector::slotRemovedRunConfiguration(ProjectExplorer::Run
void MiniProjectTargetSelector::updateProjectListVisible() void MiniProjectTargetSelector::updateProjectListVisible()
{ {
bool visible = m_sessionManager->projects().size() > 1; int count = SessionManager::projects().size();
bool visible = count > 1;
m_projectListWidget->setVisible(visible); m_projectListWidget->setVisible(visible);
m_projectListWidget->setMaxCount(m_sessionManager->projects().size()); m_projectListWidget->setMaxCount(count);
m_titleWidgets[PROJECT]->setVisible(visible); m_titleWidgets[PROJECT]->setVisible(visible);
updateSummary(); updateSummary();
...@@ -1075,7 +1079,7 @@ void MiniProjectTargetSelector::updateProjectListVisible() ...@@ -1075,7 +1079,7 @@ void MiniProjectTargetSelector::updateProjectListVisible()
void MiniProjectTargetSelector::updateTargetListVisible() void MiniProjectTargetSelector::updateTargetListVisible()
{ {
int maxCount = 0; int maxCount = 0;
foreach (Project *p, m_sessionManager->projects()) foreach (Project *p, SessionManager::projects())
maxCount = qMax(p->targets().size(), maxCount); maxCount = qMax(p->targets().size(), maxCount);
bool visible = maxCount > 1; bool visible = maxCount > 1;
...@@ -1088,7 +1092,7 @@ void MiniProjectTargetSelector::updateTargetListVisible() ...@@ -1088,7 +1092,7 @@ void MiniProjectTargetSelector::updateTargetListVisible()
void MiniProjectTargetSelector::updateBuildListVisible() void MiniProjectTargetSelector::updateBuildListVisible()
{ {
int maxCount = 0; int maxCount = 0;
foreach (Project *p, m_sessionManager->projects()) foreach (Project *p, SessionManager::projects())
foreach (Target *t, p->targets()) foreach (Target *t, p->targets())
maxCount = qMax(t->buildConfigurations().size(), maxCount); maxCount = qMax(t->buildConfigurations().size(), maxCount);
...@@ -1102,7 +1106,7 @@ void MiniProjectTargetSelector::updateBuildListVisible() ...@@ -1102,7 +1106,7 @@ void MiniProjectTargetSelector::updateBuildListVisible()
void MiniProjectTargetSelector::updateDeployListVisible() void MiniProjectTargetSelector::updateDeployListVisible()
{ {
int maxCount = 0; int maxCount = 0;
foreach (Project *p, m_sessionManager->projects()) foreach (Project *p, SessionManager::projects())
foreach (Target *t, p->targets()) foreach (Target *t, p->targets())
maxCount = qMax(t->deployConfigurations().size(), maxCount); maxCount = qMax(t->deployConfigurations().size(), maxCount);
...@@ -1116,7 +1120,7 @@ void MiniProjectTargetSelector::updateDeployListVisible() ...@@ -1116,7 +1120,7 @@ void MiniProjectTargetSelector::updateDeployListVisible()
void MiniProjectTargetSelector::updateRunListVisible() void MiniProjectTargetSelector::updateRunListVisible()
{ {
int maxCount = 0; int maxCount = 0;
foreach (Project *p, m_sessionManager->projects()) foreach (Project *p, SessionManager::projects())
foreach (Target *t, p->targets()) foreach (Target *t, p->targets())
maxCount = qMax(t->runConfigurations().size(), maxCount); maxCount = qMax(t->runConfigurations().size(), maxCount);
...@@ -1444,10 +1448,10 @@ void MiniProjectTargetSelector::updateActionAndSummary() ...@@ -1444,10 +1448,10 @@ void MiniProjectTargetSelector::updateActionAndSummary()
void MiniProjectTargetSelector::updateSummary() void MiniProjectTargetSelector::updateSummary()
{ {
QString summary; QString summary;
if (Project *startupProject = m_sessionManager->startupProject()) { if (Project *startupProject = SessionManager::startupProject()) {
if (!m_projectListWidget->isVisibleTo(this)) if (!m_projectListWidget->isVisibleTo(this))
summary.append(tr("Project: <b>%1</b><br/>").arg(startupProject->displayName())); summary.append(tr("Project: <b>%1</b><br/>").arg(startupProject->displayName()));
if (Target *activeTarget = m_sessionManager->startupProject()->activeTarget()) { if (Target *activeTarget = startupProject->activeTarget()) {
if (!m_listWidgets[TARGET]->isVisibleTo(this)) if (!m_listWidgets[TARGET]->isVisibleTo(this))
summary.append(tr("Kit: <b>%1</b><br/>").arg( activeTarget->displayName())); summary.append(tr("Kit: <b>%1</b><br/>").arg( activeTarget->displayName()));
if (!m_listWidgets[BUILD]->isVisibleTo(this) && activeTarget->activeBuildConfiguration()) if (!m_listWidgets[BUILD]->isVisibleTo(this) && activeTarget->activeBuildConfiguration())
......
...@@ -47,7 +47,6 @@ class BuildConfiguration; ...@@ -47,7 +47,6 @@ class BuildConfiguration;
class DeployConfiguration; class DeployConfiguration;
class ProjectConfiguration; class ProjectConfiguration;
class RunConfiguration; class RunConfiguration;
class SessionManager;
namespace Internal { namespace Internal {
...@@ -75,7 +74,7 @@ class ProjectListWidget : public ListWidget ...@@ -75,7 +74,7 @@ class ProjectListWidget : public ListWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit ProjectListWidget(SessionManager *sessionManager, QWidget *parent = 0); explicit ProjectListWidget(QWidget *parent = 0);
private slots: private slots:
void addProject(ProjectExplorer::Project *project); void addProject(ProjectExplorer::Project *project);
void removeProject(ProjectExplorer::Project *project); void removeProject(ProjectExplorer::Project *project);
...@@ -85,7 +84,6 @@ private slots: ...@@ -85,7 +84,6 @@ private slots:
private: private:
QListWidgetItem *itemForProject(Project *project); QListWidgetItem *itemForProject(Project *project);
QString fullName(ProjectExplorer::Project *project); QString fullName(ProjectExplorer::Project *project);
SessionManager *m_sessionManager;
bool m_ignoreIndexChange; bool m_ignoreIndexChange;
}; };
...@@ -114,7 +112,7 @@ class MiniProjectTargetSelector : public QWidget ...@@ -114,7 +112,7 @@ class MiniProjectTargetSelector : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit MiniProjectTargetSelector(QAction *projectAction, SessionManager *sessionManager, QWidget *parent = 0); explicit MiniProjectTargetSelector(QAction *projectAction, QWidget *parent = 0);
void setVisible(bool visible); void setVisible(bool visible);
void keyPressEvent(QKeyEvent *ke); void keyPressEvent(QKeyEvent *ke);
...@@ -175,7 +173,6 @@ private: ...@@ -175,7 +173,6 @@ private:
QWidget *createTitleLabel(const QString &text); QWidget *createTitleLabel(const QString &text);
QAction *m_projectAction; QAction *m_projectAction;
SessionManager *m_sessionManager;
enum TYPES { PROJECT = 0, TARGET = 1, BUILD = 2, DEPLOY = 3, RUN = 4, LAST = 5 }; enum TYPES { PROJECT = 0, TARGET = 1, BUILD = 2, DEPLOY = 3, RUN = 4, LAST = 5 };
ProjectListWidget *m_projectListWidget;