(self, tableWidget, account, where="", what="")
| 1115 | |
| 1116 | # Load Sent items from database |
| 1117 | def loadSent(self, tableWidget, account, where="", what=""): |
| 1118 | if tableWidget == self.ui.tableWidgetInboxSubscriptions: |
| 1119 | tableWidget.setColumnHidden(0, True) |
| 1120 | tableWidget.setColumnHidden(1, False) |
| 1121 | xAddress = 'toaddress' |
| 1122 | elif tableWidget == self.ui.tableWidgetInboxChans: |
| 1123 | tableWidget.setColumnHidden(0, False) |
| 1124 | tableWidget.setColumnHidden(1, True) |
| 1125 | xAddress = 'both' |
| 1126 | else: |
| 1127 | tableWidget.setColumnHidden(0, False) |
| 1128 | if account is None: |
| 1129 | tableWidget.setColumnHidden(1, False) |
| 1130 | else: |
| 1131 | tableWidget.setColumnHidden(1, True) |
| 1132 | xAddress = 'fromaddress' |
| 1133 | |
| 1134 | tableWidget.setUpdatesEnabled(False) |
| 1135 | tableWidget.setSortingEnabled(False) |
| 1136 | tableWidget.setRowCount(0) |
| 1137 | queryreturn = helper_search.search_sql(xAddress, account, "sent", where, what, False) |
| 1138 | |
| 1139 | for row in queryreturn: |
| 1140 | toAddress, fromAddress, subject, status, ackdata, lastactiontime = row |
| 1141 | self.addMessageListItemSent(tableWidget, toAddress, fromAddress, subject, status, ackdata, lastactiontime) |
| 1142 | |
| 1143 | tableWidget.horizontalHeader().setSortIndicator( |
| 1144 | 3, QtCore.Qt.DescendingOrder) |
| 1145 | tableWidget.setSortingEnabled(True) |
| 1146 | tableWidget.horizontalHeaderItem(3).setText(_translate("MainWindow", "Sent", None)) |
| 1147 | tableWidget.setUpdatesEnabled(True) |
| 1148 | |
| 1149 | # Load messages from database file |
| 1150 | def loadMessagelist(self, tableWidget, account, folder="inbox", where="", what="", unreadOnly = False): |
no test coverage detected