diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-29 13:24:23 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-29 13:24:23 +0000 |
commit | 0a4805e33f8ddb445a2fd061462e715e1707f049 (patch) | |
tree | 5af3146040fbaa1a6ea768833ab85453af30e5c2 /debugger/QT | |
parent | 960d114777ae75da1eeb289aabd9e4638cdc7caa (diff) |
First pass at Comment API
https://codereview.chromium.org/13957009/
git-svn-id: http://skia.googlecode.com/svn/trunk@9310 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/QT')
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 6 |
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; } |