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" |
9 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
10 #include "SkImageDecoder.h" | 11 #include "SkImageDecoder.h" |
11 #include <QListWidgetItem> | 12 #include <QListWidgetItem> |
12 #include "PictureRenderer.h" | 13 #include "PictureRenderer.h" |
13 #include "SkPictureRecord.h" | 14 #include "SkPictureRecord.h" |
14 #include "SkPicturePlayback.h" | 15 #include "SkPicturePlayback.h" |
15 | 16 |
| 17 FORCE_LINKING; |
| 18 |
16 #if defined(SK_BUILD_FOR_WIN32) | 19 #if defined(SK_BUILD_FOR_WIN32) |
17 #include "BenchSysTimer_windows.h" | 20 #include "BenchSysTimer_windows.h" |
18 #elif defined(SK_BUILD_FOR_MAC) | 21 #elif defined(SK_BUILD_FOR_MAC) |
19 #include "BenchSysTimer_mach.h" | 22 #include "BenchSysTimer_mach.h" |
20 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) | 23 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
21 #include "BenchSysTimer_posix.h" | 24 #include "BenchSysTimer_posix.h" |
22 #else | 25 #else |
23 #include "BenchSysTimer_c.h" | 26 #include "BenchSysTimer_c.h" |
24 #endif | 27 #endif |
25 | 28 |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 } | 1002 } |
1000 | 1003 |
1001 // NOTE(chudy): Makes first item unselectable. | 1004 // NOTE(chudy): Makes first item unselectable. |
1002 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( | 1005 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( |
1003 fFilter.model()); | 1006 fFilter.model()); |
1004 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), | 1007 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), |
1005 fFilter.rootModelIndex()); | 1008 fFilter.rootModelIndex()); |
1006 QStandardItem* firstItem = model->itemFromIndex(firstIndex); | 1009 QStandardItem* firstItem = model->itemFromIndex(firstIndex); |
1007 firstItem->setSelectable(false); | 1010 firstItem->setSelectable(false); |
1008 } | 1011 } |
OLD | NEW |