| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkDebuggerGUI.h" | 8 #include "SkDebuggerGUI.h" |
| 9 #include "SkForceLinking.h" | |
| 10 #include "SkGraphics.h" | 9 #include "SkGraphics.h" |
| 11 #include "SkImageDecoder.h" | 10 #include "SkImageDecoder.h" |
| 12 #include <QListWidgetItem> | 11 #include <QListWidgetItem> |
| 13 #include "PictureRenderer.h" | 12 #include "PictureRenderer.h" |
| 14 #include "SkPicturePlayback.h" | 13 #include "SkPicturePlayback.h" |
| 15 #include "SkPictureRecord.h" | 14 #include "SkPictureRecord.h" |
| 16 #include "SkPictureData.h" | 15 #include "SkPictureData.h" |
| 17 | 16 |
| 18 __SK_FORCE_IMAGE_DECODER_LINKING; | |
| 19 | |
| 20 #if defined(SK_BUILD_FOR_WIN32) | 17 #if defined(SK_BUILD_FOR_WIN32) |
| 21 #include "SysTimer_windows.h" | 18 #include "SysTimer_windows.h" |
| 22 #elif defined(SK_BUILD_FOR_MAC) | 19 #elif defined(SK_BUILD_FOR_MAC) |
| 23 #include "SysTimer_mach.h" | 20 #include "SysTimer_mach.h" |
| 24 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) | 21 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
| 25 #include "SysTimer_posix.h" | 22 #include "SysTimer_posix.h" |
| 26 #else | 23 #else |
| 27 #include "SysTimer_c.h" | 24 #include "SysTimer_c.h" |
| 28 #endif | 25 #endif |
| 29 | 26 |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 } | 1105 } |
| 1109 | 1106 |
| 1110 // NOTE(chudy): Makes first item unselectable. | 1107 // NOTE(chudy): Makes first item unselectable. |
| 1111 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( | 1108 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( |
| 1112 fFilter.model()); | 1109 fFilter.model()); |
| 1113 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), | 1110 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), |
| 1114 fFilter.rootModelIndex()); | 1111 fFilter.rootModelIndex()); |
| 1115 QStandardItem* firstItem = model->itemFromIndex(firstIndex); | 1112 QStandardItem* firstItem = model->itemFromIndex(firstIndex); |
| 1116 firstItem->setSelectable(false); | 1113 firstItem->setSelectable(false); |
| 1117 } | 1114 } |
| OLD | NEW |