From 9ca9bfe9f6eaae41841446386e40be1013907e99 Mon Sep 17 00:00:00 2001 From: "chudy@google.com" Date: Thu, 12 Jul 2012 21:58:14 +0000 Subject: 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 --- debugger/QT/SkDebuggerGUI.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debugger/QT/SkDebuggerGUI.cpp') 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) { -- cgit v1.2.3