(self, model, q)
| 3790 | super(StatsDialog, self).keyPressEvent(event) |
| 3791 | |
| 3792 | def setQuery(self, model, q): |
| 3793 | if self._context_menu_active == True or self.scrollbar_active == True: |
| 3794 | return |
| 3795 | with self._lock: |
| 3796 | try: |
| 3797 | model.query().clear() |
| 3798 | model.setQuery(q, self._db_sqlite) |
| 3799 | if model.lastError().isValid(): |
| 3800 | print("setQuery() error: ", model.lastError().text()) |
| 3801 | |
| 3802 | if self.tabWidget.currentIndex() != self.TAB_MAIN: |
| 3803 | self.labelRowsCount.setText("{0}".format(model.totalRowCount)) |
| 3804 | else: |
| 3805 | self.labelRowsCount.setText("") |
| 3806 | except Exception as e: |
| 3807 | print(self._address, "setQuery() exception: ", e) |
no test coverage detected