mp_tableWidget->setColumnCount(headerlist.size());
mp_tableWidget->setHorizontalHeaderLabels(headerlist);
mp_tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows);
- mp_tableWidget->setSelectionMode(QAbstractItemView::SingleSelection);
if (mainWin->m_sqlDebug) {
Pmsg1(000, "Query cmd : %s\n",query.toUtf8().data());
foreach (resultline, results) {
fieldlist = resultline.split("\t");
if (fieldlist.size() < 12)
- continue; // some fields missing, ignore row
+ continue; /* some fields missing, ignore row */
TableItemFormatter jobitem(*mp_tableWidget, row);
int row = currentItem->row();
QTableWidgetItem* jobitem = mp_tableWidget->item(row, 0);
m_currentJob = jobitem->text();
- selectedJobsGet();
/* include purged action or not */
jobitem = mp_tableWidget->item(row, m_purgedIndex);
currentItemChanged(QTableWidgetItem *, QTableWidgetItem *)),
this, SLOT(tableItemChanged(QTableWidgetItem *, QTableWidgetItem *)));
+ /* for the tableItemChanged to maintain a delete selection */
+ connect(mp_tableWidget, SIGNAL( itemSelectionChanged()),
+ this, SLOT(selectedJobsGet()) );
+
/* Do what is required for the local context sensitive menu */
void populateTable();
virtual void treeWidgetName(QString &);
void tableItemChanged(QTableWidgetItem *, QTableWidgetItem *);
+ void selectedJobsGet();
private slots:
void consoleListJobid();
void readSettings();
void prepareFilterWidgets();
void fillQueryString(QString &query);
- void selectedJobsGet();
QSplitter *m_splitter;
QString m_groupText;
QString m_splitText;