forked from qt-creator/qt-creator
Kit: Improve the options page
* Update warning icon as changes happen * Make clone clone the current settings, not what used to be there before changes were made * Make sure the edited entry is visible in list view * I find the KitModel much easier to understand now Task-number: QTCREATORBUG-7862 Task-number: QTCREATORBUG-7803 Change-Id: I124c2e5a96cea7386896084e1027ba79a8be20b7 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -61,7 +61,7 @@ class DebuggerKitConfigWidget : public ProjectExplorer::KitConfigWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DebuggerKitConfigWidget(ProjectExplorer::Kit *k,
|
||||
DebuggerKitConfigWidget(ProjectExplorer::Kit *workingCopy,
|
||||
const DebuggerKitInformation *ki,
|
||||
QWidget *parent = 0);
|
||||
|
||||
@@ -69,9 +69,8 @@ public:
|
||||
|
||||
void makeReadOnly();
|
||||
|
||||
void apply();
|
||||
void discard();
|
||||
bool isDirty() const { return m_dirty; }
|
||||
void refresh();
|
||||
|
||||
QWidget *buttonWidget() const;
|
||||
|
||||
private slots:
|
||||
@@ -79,13 +78,8 @@ private slots:
|
||||
void showDialog();
|
||||
|
||||
private:
|
||||
void setItem(const DebuggerKitInformation::DebuggerItem &item);
|
||||
void doSetItem(const DebuggerKitInformation::DebuggerItem &item);
|
||||
|
||||
ProjectExplorer::Kit *m_kit;
|
||||
const DebuggerKitInformation *m_info;
|
||||
DebuggerKitInformation::DebuggerItem m_item;
|
||||
bool m_dirty;
|
||||
QLabel *m_label;
|
||||
QPushButton *m_button;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user