VCS: Allow VcsBaseEditorConfig to operate on aspects

Change-Id: Id7b5b1a1020ea002e631e401c49b8eda6dfb8944
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-03-16 07:35:47 +01:00
parent 687d6a76ec
commit 61b278fe6e
2 changed files with 87 additions and 2 deletions

View File

@@ -35,6 +35,12 @@ class QComboBox;
class QToolButton;
QT_END_NAMESPACE
namespace Utils {
class BoolAspect;
class IntegerAspect;
class StringAspect;
} // Utils
namespace VcsBase {
class VcsBaseEditorWidget;
@@ -75,6 +81,10 @@ public:
void mapSetting(QComboBox *comboBox, QString *setting);
void mapSetting(QComboBox *comboBox, int *setting);
void mapSetting(QAction *button, Utils::BoolAspect *setting);
void mapSetting(QComboBox *comboBox, Utils::StringAspect *setting);
void mapSetting(QComboBox *comboBox, Utils::IntegerAspect *setting);
// Return the effective arguments according to setting.
virtual QStringList arguments() const;