diff options
author | 2012-07-12 21:58:14 +0000 | |
---|---|---|
committer | 2012-07-12 21:58:14 +0000 | |
commit | 9ca9bfe9f6eaae41841446386e40be1013907e99 (patch) | |
tree | 14ce0da8956691940cba99dc3964fb13df00250c /debugger/QT/SkDebuggerGUI.cpp | |
parent | b5e30abbebd792982b0b3cf8380ec503b41049e4 (diff) |
Feature, HitBox selects current command
Review URL: https://codereview.appspot.com/6345091
git-svn-id: http://skia.googlecode.com/svn/trunk@4588 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/QT/SkDebuggerGUI.cpp')
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index 1cca0ba953..766dd6dd83 100644 --- a/debugger/QT/SkDebuggerGUI.cpp +++ b/debugger/QT/SkDebuggerGUI.cpp @@ -75,6 +75,7 @@ SkDebuggerGUI::SkDebuggerGUI(QWidget *parent) : this, SLOT(pauseDrawing(bool))); connect(&fCanvasWidget, SIGNAL(commandChanged(int)), &fSettingsWidget, SLOT(updateCommand(int))); + connect(&fCanvasWidget, SIGNAL(hitChanged(int)), this, SLOT(selectCommand(int))); connect(&fCanvasWidget, SIGNAL(hitChanged(int)), &fSettingsWidget, SLOT(updateHit(int))); } @@ -255,6 +256,12 @@ void SkDebuggerGUI::registerListClick(QListWidgetItem *item) { } } +void SkDebuggerGUI::selectCommand(int command) { + if (fPause) { + fListWidget.setCurrentRow(command); + } +} + void SkDebuggerGUI::toggleBreakpoint() { QListWidgetItem* item = fListWidget.currentItem(); if (item->checkState() == Qt::Unchecked) { |