diff options
author | hjk <[email protected]> | 2014-10-13 18:49:44 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2014-10-15 00:49:56 +0200 |
commit | 3119d93b7981c3b245f584e9663839312c9f1675 (patch) | |
tree | d7ea160830984a31fa076e8ecca8668859895f22 /src/plugins/debugger/debuggersourcepathmappingwidget.cpp | |
parent | e279c7e00787230dcd89301ebb7a182a35c0531b (diff) |
VariableChooser: Rework
Allow multiple expanders to be registered for lineedits, e.g. a
local and the global ones, and actually show them.
Use a tree view in the chooser for somewhat more structured display.
Change-Id: I769f92144e5249f45e54381de52aa6973eb20118
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggersourcepathmappingwidget.cpp')
-rw-r--r-- | src/plugins/debugger/debuggersourcepathmappingwidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp index e0334ff1fa1..8fcb4a4567d 100644 --- a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp +++ b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp @@ -209,7 +209,6 @@ DebuggerSourcePathMappingWidget::DebuggerSourcePathMappingWidget(QWidget *parent m_sourceLineEdit(new QLineEdit(this)), m_targetChooser(new PathChooser(this)) { - (void)new Core::VariableChooser(this); setTitle(tr("Source Paths Mapping")); setToolTip(tr("<html><head/><body><p>Mappings of source file folders to " "be used in the debugger can be entered here.</p>" @@ -275,7 +274,9 @@ DebuggerSourcePathMappingWidget::DebuggerSourcePathMappingWidget(QWidget *parent editTargetLabel->setBuddy(m_targetChooser); m_targetChooser->setToolTip(targetToolTip); editLayout->addRow(editTargetLabel, m_targetChooser); - Core::VariableChooser::addVariableSupport(m_targetChooser->lineEdit()); + + auto chooser = new Core::VariableChooser(this); + chooser->addSupportedWidget(m_targetChooser->lineEdit()); // Main layout QVBoxLayout *mainLayout = new QVBoxLayout; |