Added a sorting filter in the all watches window
authorJean-Paul Mari <djipi.mari@gmail.com>
Sat, 6 Oct 2018 03:26:28 +0000 (23:26 -0400)
committerJean-Paul Mari <djipi.mari@gmail.com>
Sat, 6 Oct 2018 03:26:28 +0000 (23:26 -0400)
src/debugger/allwatchbrowser.cpp

index 8021b7e..5aad5e7 100644 (file)
@@ -8,8 +8,8 @@
 // Who  When        What\r
 // ---  ----------  -----------------------------------------------------------\r
 // JPM  12/07/2017  Created this file\r
 // Who  When        What\r
 // ---  ----------  -----------------------------------------------------------\r
 // JPM  12/07/2017  Created this file\r
-// JPM  09/14/2018  Added a status bar and better status report\r
-// JPM  09/14/2018  Set information values in a tab\r
+// JPM  09/14/2018  Added a status bar, better status report and set information values in a tab\r
+// JPM  10/05/2018  Added a sorting filter \r
 //\r
 \r
 // STILL TO DO:\r
 //\r
 \r
 // STILL TO DO:\r
@@ -17,7 +17,7 @@
 // To set the information display at the right\r
 //\r
 \r
 // To set the information display at the right\r
 //\r
 \r
-//#define AW_DEBUGNUMVARIABLE          177                                             // Set the global variable number to debug\r
+//#define AW_DEBUGNUMVARIABLE          4415                                            // Set the global variable number to debug\r
 #ifndef AW_DEBUGNUMVARIABLE\r
 #define AW_STARTNUMVARIABLE            0                                                       // Must be kept to 0 in case of no debug is required\r
 #else\r
 #ifndef AW_DEBUGNUMVARIABLE\r
 #define AW_STARTNUMVARIABLE            0                                                       // Must be kept to 0 in case of no debug is required\r
 #else\r
@@ -128,6 +128,7 @@ void AllWatchBrowserWindow::RefreshContents(void)
                        }\r
                }\r
 #ifndef AW_LAYOUTTEXTS\r
                        }\r
                }\r
 #ifndef AW_LAYOUTTEXTS\r
+               TableView->setSortingEnabled(false);\r
                model->setRowCount(0);\r
 #endif\r
                if (NbWatch)\r
                model->setRowCount(0);\r
 #endif\r
                if (NbWatch)\r
@@ -164,6 +165,8 @@ void AllWatchBrowserWindow::RefreshContents(void)
 #ifdef AW_LAYOUTTEXTS\r
                        text->clear();\r
                        text->setText(WatchAll);\r
 #ifdef AW_LAYOUTTEXTS\r
                        text->clear();\r
                        text->setText(WatchAll);\r
+#else\r
+                       TableView->setSortingEnabled(true);\r
 #endif\r
                        sprintf(msg, "Ready");\r
                }\r
 #endif\r
                        sprintf(msg, "Ready");\r
                }\r