aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-29 13:24:23 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-29 13:24:23 +0000
commit0a4805e33f8ddb445a2fd061462e715e1707f049 (patch)
tree5af3146040fbaa1a6ea768833ab85453af30e5c2 /debugger/QT
parent960d114777ae75da1eeb289aabd9e4638cdc7caa (diff)
First pass at Comment API
Diffstat (limited to 'debugger/QT')
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index a64870d12f..60ef7e9717 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -959,14 +959,16 @@ void SkDebuggerGUI::setupListWidget(SkTArray<SkString>* command) {
item->setData(Qt::DisplayRole, (*command)[i].c_str());
item->setData(Qt::UserRole + 1, counter++);
- if (0 == strcmp("Restore", (*command)[i].c_str())) {
+ if (0 == strcmp("Restore", (*command)[i].c_str()) ||
+ 0 == strcmp("EndCommentGroup", (*command)[i].c_str())) {
indent -= 10;
}
item->setData(Qt::UserRole + 3, indent);
if (0 == strcmp("Save", (*command)[i].c_str()) ||
- 0 == strcmp("Save Layer", (*command)[i].c_str())) {
+ 0 == strcmp("Save Layer", (*command)[i].c_str()) ||
+ 0 == strcmp("BeginCommentGroup", (*command)[i].c_str())) {
indent += 10;
}