aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT/SkListWidget.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-03-26 10:08:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-26 10:08:04 -0700
commit546db46a76ad5f7485cebeb27efaf8b4806fa914 (patch)
tree107661e571f74db9d8cc101b2a8d5ba31dad7f3c /debugger/QT/SkListWidget.cpp
parent0eed6df064e6d148ddc330531d584ddd1bd4e6db (diff)
Debugger: remove dead feature (SkPicture offset display) & fix bug (unbalanced indents)
Displaying the offset into an SkPicture hasn't worked for a while so this CL deletes the feature. When "Save Layer" was renamed to "SaveLayer" the code that computes the indent in the list view was broken. This CL patches the problem. Review URL: https://codereview.chromium.org/1034733004
Diffstat (limited to 'debugger/QT/SkListWidget.cpp')
-rw-r--r--debugger/QT/SkListWidget.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/debugger/QT/SkListWidget.cpp b/debugger/QT/SkListWidget.cpp
index b5f9038d69..a027778473 100644
--- a/debugger/QT/SkListWidget.cpp
+++ b/debugger/QT/SkListWidget.cpp
@@ -61,11 +61,7 @@ void SkListWidget::paint (QPainter *painter,
QString drawCommandText = index.data(Qt::DisplayRole).toString();
QString drawCommandNumber;
- if (kIndex_IndexStyle == fIndexStyle) {
- drawCommandNumber = index.data(Qt::UserRole + 1).toString();
- } else {
- drawCommandNumber = index.data(Qt::UserRole + 5).toString();
- }
+ drawCommandNumber = index.data(Qt::UserRole + 1).toString();
float time = index.data(Qt::UserRole + 4).toFloat();
QString drawTime;
drawTime.setNum(time, 'f', 2);