Commit 0b5639f7 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

KitInformationConfigWidget: Make id of KitInformation accessible



Make the id of the kitinformation the config widget is configuring
accessible from the widget.

Change-Id: I15af2cfc18ab2ba012d43c3c6b71ee0011f994ad
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent d2adc303
......@@ -38,4 +38,9 @@ KitConfigWidget::KitConfigWidget(Kit *kit, const KitInformation *ki) : m_kit(kit
m_kitInformation(ki), m_isSticky(kit->isSticky(ki->id()))
{ }
Core::Id KitConfigWidget::kitInformationId() const
{
return m_kitInformation->id();
}
} // namespace ProjectExplorer
......@@ -32,6 +32,8 @@
#include "projectexplorer_export.h"
#include <coreplugin/id.h>
#include <QWidget>
namespace ProjectExplorer {
......@@ -50,6 +52,8 @@ class PROJECTEXPLORER_EXPORT KitConfigWidget : public QObject
public:
KitConfigWidget(Kit *kit, const KitInformation *ki);
Core::Id kitInformationId() const;
virtual QString displayName() const = 0;
virtual QString toolTip() const { return QString(); }
virtual void makeReadOnly() = 0;
......
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