| 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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 } | 859 } |
| 863 | 860 |
| 864 // NOTE(chudy): Makes first item unselectable. | 861 // NOTE(chudy): Makes first item unselectable. |
| 865 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( | 862 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( |
| 866 fFilter.model()); | 863 fFilter.model()); |
| 867 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), | 864 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), |
| 868 fFilter.rootModelIndex()); | 865 fFilter.rootModelIndex()); |
| 869 QStandardItem* firstItem = model->itemFromIndex(firstIndex); | 866 QStandardItem* firstItem = model->itemFromIndex(firstIndex); |
| 870 firstItem->setSelectable(false); | 867 firstItem->setSelectable(false); |
| 871 } | 868 } |
| OLD | NEW |