Commit 96ca2e57 authored by Friedemann Kleint's avatar Friedemann Kleint

Move declaration of ProjectExplorerSettingsWidget into .cpp file.

Alternative fix to ff8dd50f .

Change-Id: I151b45f73b19309979f1a3a1d6617e45f3205442
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent cbd5f8e9
......@@ -26,6 +26,7 @@
#include "projectexplorersettingspage.h"
#include "projectexplorersettings.h"
#include "projectexplorer.h"
#include "ui_projectexplorersettingspage.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/documentmanager.h>
......@@ -39,6 +40,36 @@ namespace Internal {
enum { UseCurrentDirectory, UseProjectDirectory };
class ProjectExplorerSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit ProjectExplorerSettingsWidget(QWidget *parent = 0);
ProjectExplorerSettings settings() const;
void setSettings(const ProjectExplorerSettings &s);
QString projectsDirectory() const;
void setProjectsDirectory(const QString &pd);
bool useProjectsDirectory();
void setUseProjectsDirectory(bool v);
QString buildDirectory() const;
void setBuildDirectory(const QString &bd);
private:
void slotDirectoryButtonGroupChanged();
void resetDefaultBuildDirectory();
void updateResetButton();
void setJomVisible(bool);
Ui::ProjectExplorerSettingsPageUi m_ui;
QUuid m_environmentId;
};
ProjectExplorerSettingsWidget::ProjectExplorerSettingsWidget(QWidget *parent) :
QWidget(parent)
{
......@@ -192,3 +223,4 @@ void ProjectExplorerSettingsPage::finish()
} // namespace Internal
} // namespace ProjectExplorer
#include "projectexplorersettingspage.moc"
......@@ -36,36 +36,7 @@ namespace ProjectExplorer {
namespace Internal {
class ProjectExplorerSettings;
// Documentation inside.
class ProjectExplorerSettingsWidget : public QWidget {
Q_OBJECT
public:
explicit ProjectExplorerSettingsWidget(QWidget *parent = 0);
ProjectExplorerSettings settings() const;
void setSettings(const ProjectExplorerSettings &s);
QString projectsDirectory() const;
void setProjectsDirectory(const QString &pd);
bool useProjectsDirectory();
void setUseProjectsDirectory(bool v);
QString buildDirectory() const;
void setBuildDirectory(const QString &bd);
private:
void slotDirectoryButtonGroupChanged();
void resetDefaultBuildDirectory();
void updateResetButton();
void setJomVisible(bool);
Ui::ProjectExplorerSettingsPageUi m_ui;
QUuid m_environmentId;
};
class ProjectExplorerSettingsWidget;
class ProjectExplorerSettingsPage : public Core::IOptionsPage
{
......
Markdown is supported
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