Seperated Space for displaying breakpoint and deletion icons

Review URL: https://codereview.appspot.com/6356094

git-svn-id: http://skia.googlecode.com/svn/trunk@4563 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index 33a7190..96e1551 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -118,16 +118,10 @@
     QListWidgetItem* item = fListWidget.currentItem();
     if (item->data(Qt::UserRole + 2) == true) {
         item->setData(Qt::UserRole + 2, false);
-        item->setData(Qt::DecorationRole, QPixmap(":/images/Icons/delete.png"));
+        item->setData(Qt::UserRole + 3, QPixmap(":/images/Icons/delete.png"));
     } else {
         item->setData(Qt::UserRole + 2, true);
-        if (item->checkState() == Qt::Unchecked) {
-            item->setData(Qt::DecorationRole,
-                    QPixmap(":/images/Icons/blank.png"));
-        } else {
-            item->setData(Qt::DecorationRole,
-                    QPixmap(":/images/Icons/breakpoint_16x16.png"));
-        }
+        item->setData(Qt::UserRole + 3, QPixmap(":/images/Icons/blank.png"));
     }
     int currentRow = fListWidget.currentRow();
     // NOTE(chudy): Forces a redraw up to current selected command.
@@ -262,31 +256,12 @@
     QListWidgetItem* item = fListWidget.currentItem();
     if (item->checkState() == Qt::Unchecked) {
         item->setCheckState(Qt::Checked);
-
-        /* NOTE(chudy): If the command is toggled as hidden that takes
-         * precendence over the breakpoint icon.
-         */
-        if (item->data(Qt::UserRole + 2) == false) {
-            item->setData(Qt::DecorationRole,
-                    QPixmap(":/images/Icons/delete.png"));
-        } else {
-            item->setData(Qt::DecorationRole,
-                    QPixmap(":/images/Icons/breakpoint_16x16.png"));
-        }
+        item->setData(Qt::DecorationRole,
+                QPixmap(":/images/Icons/breakpoint_16x16.png"));
     } else {
-
-        /* NOTE(chudy): When untoggling as a breakpoint if the command
-         * is hidden then the portraying icon should remain the delete icon.
-         */
         item->setCheckState(Qt::Unchecked);
-
-        if (item->data(Qt::UserRole + 2) == false) {
-            item->setData(Qt::DecorationRole,
-                    QPixmap(":/images/Icons/delete.png"));
-        } else {
-            item->setData(Qt::DecorationRole,
-                    QPixmap(":/images/Icons/blank.png"));
-        }
+        item->setData(Qt::DecorationRole,
+                QPixmap(":/images/Icons/blank.png"));
     }
 }