From 4873fe0aa719e3014ab7d259cccaa8ffe0098bb3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Mari Date: Fri, 5 Oct 2018 23:26:28 -0400 Subject: [PATCH] Added a sorting filter in the all watches window --- src/debugger/allwatchbrowser.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/debugger/allwatchbrowser.cpp b/src/debugger/allwatchbrowser.cpp index 8021b7e..5aad5e7 100644 --- a/src/debugger/allwatchbrowser.cpp +++ b/src/debugger/allwatchbrowser.cpp @@ -8,8 +8,8 @@ // Who When What // --- ---------- ----------------------------------------------------------- // JPM 12/07/2017 Created this file -// JPM 09/14/2018 Added a status bar and better status report -// JPM 09/14/2018 Set information values in a tab +// JPM 09/14/2018 Added a status bar, better status report and set information values in a tab +// JPM 10/05/2018 Added a sorting filter // // STILL TO DO: @@ -17,7 +17,7 @@ // To set the information display at the right // -//#define AW_DEBUGNUMVARIABLE 177 // Set the global variable number to debug +//#define AW_DEBUGNUMVARIABLE 4415 // Set the global variable number to debug #ifndef AW_DEBUGNUMVARIABLE #define AW_STARTNUMVARIABLE 0 // Must be kept to 0 in case of no debug is required #else @@ -128,6 +128,7 @@ void AllWatchBrowserWindow::RefreshContents(void) } } #ifndef AW_LAYOUTTEXTS + TableView->setSortingEnabled(false); model->setRowCount(0); #endif if (NbWatch) @@ -164,6 +165,8 @@ void AllWatchBrowserWindow::RefreshContents(void) #ifdef AW_LAYOUTTEXTS text->clear(); text->setText(WatchAll); +#else + TableView->setSortingEnabled(true); #endif sprintf(msg, "Ready"); } -- 2.20.1