Enhanced debugger with command indenting and Path Bound print out

https://codereview.appspot.com/6820099/



git-svn-id: http://skia.googlecode.com/svn/trunk@6309 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index a03c878..df34891 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -607,10 +607,23 @@
 void SkDebuggerGUI::setupListWidget(SkTDArray<SkString*>* command) {
     fListWidget.clear();
     int counter = 0;
+    int indent = 0;
     for (int i = 0; i < command->count(); i++) {
         QListWidgetItem *item = new QListWidgetItem();
         item->setData(Qt::DisplayRole, (*command)[i]->c_str());
         item->setData(Qt::UserRole + 1, counter++);
+
+        if (0 == strcmp("Restore", (*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())) {
+            indent += 10;
+        }
+
         fListWidget.addItem(item);
     }
 }