|
1 | 1 |
|
2 | | -//===================================================================== |
| 2 | +#include <qtIgnoreCompilerWarnings.h> |
3 | 3 |
|
4 | | -//===================================================================== |
| 4 | +// Infra: |
| 5 | +#include <AMDTApplicationComponents/Include/acColours.h> |
| 6 | +#include <AMDTApplicationComponents/Include/acFunctions.h> |
| 7 | +#include <AMDTApplicationComponents/Include/Timeline/acTimelineItem.h> |
| 8 | +#include <AMDTApplicationComponents/Include/Timeline/acTimelineBranch.h> |
| 9 | + |
| 10 | +// AMDTApplicationFramework: |
| 11 | +#include <AMDTApplicationFramework/Include/afAppStringConstants.h> |
| 12 | +#include <AMDTApplicationFramework/Include/afProgressBarWrapper.h> |
5 | 13 |
|
| 14 | +// Local: |
6 | 15 | #include <AMDTGpuProfiling/gpTraceSummaryTable.h> |
7 | 16 | #include <AMDTGpuProfiling/gpTraceSummaryWidget.h> |
8 | 17 | #include <AMDTGpuProfiling/gpTraceDataContainer.h> |
9 | 18 | #include <AMDTGpuProfiling/APIColorMap.h> |
10 | 19 | #include <AMDTGpuProfiling/gpTraceView.h> |
11 | 20 |
|
12 | | -#include <AMDTApplicationComponents/Include/acColours.h> |
13 | | -#include <AMDTApplicationComponents/Include/acFunctions.h> |
14 | | -#include <AMDTApplicationFramework/Include/afProgressBarWrapper.h> |
15 | | -#include <AMDTApplicationComponents/Include/Timeline/acTimelineItem.h> |
16 | | -#include <AMDTApplicationComponents/Include/Timeline/acTimelineBranch.h> |
17 | | -#include <AMDTApplicationFramework/Include/afAppStringConstants.h> |
18 | 21 |
|
19 | 22 | const int SUMMARY_INFO_ARRAY_SIZE = 500; // 130 DX12 call types, X Vulcan call types... |
20 | 23 |
|
@@ -802,10 +805,20 @@ void gpCommandListSummaryTable::AddSummaryRow(int rowIndex, APISummaryInfo* pInf |
802 | 805 | case COLUMN_NUM_OF_COMMANDS: |
803 | 806 | { |
804 | 807 | pItem = new QTableWidgetItem(); |
| 808 | + |
| 809 | + // For number of commands, set both text and value, to make sure that the column is sortable, and enable |
| 810 | + // display of N/A string for 0 calls |
| 811 | + setItem(rowIndex, i, pItem); |
| 812 | + |
805 | 813 | if (pInfo->m_numCalls == 0) |
806 | 814 | { |
807 | 815 | shouldSetCmdBufferTooltip = true; |
808 | 816 | } |
| 817 | + QVariant dataVariant; |
| 818 | + dataVariant.setValue(rowStrings[i].toDouble()); |
| 819 | + pItem->setData(Qt::EditRole, dataVariant); |
| 820 | + pItem->setData(Qt::DisplayRole, rowStrings[i]); |
| 821 | + shouldSetValue = false; |
809 | 822 | } |
810 | 823 | break; |
811 | 824 | } |
|
0 commit comments