// call by // 1.void Qps::set_table_mode(bool treemode) // slot: changes table mode void Pstable::setTreeMode(bool treemode) { // qDebug("Pstable::setTreeMode() %d , procview.treeview // =%d\n",treemode,procview->treeview); // no more HeadedTable::setTreeMode(treemode); HeadedTable::setTreeMode(treemode); procview->treeview = treemode; procview->fieldArrange(); set_sortcol(); refresh(); //==rebuild(); }
// called by HeadedTable // Description : FIELD movement by mouse drag to place From col // virtual HeadedTable::moveCol(col,place); void Pstable::moveCol(int col, int place) { // qDebug("Pstable::moveCol\n"); procview->moveColumn(col, place); set_sortcol(); //??? procview->fieldArrange(); // update(); refresh(); // width size changed ,... return; // updateColWidth(place); updateColWidth(col);// TEMP }
Pstable::Pstable(QWidget *parent, Procview *pv) : HeadedTable(parent, HTBL_ROW_SELECTION | HTBL_ROW_DOUBLE_CLICK | HTBL_ROW_CONTEXT_MENU | HTBL_HEADING_TOOLTIPS | HTBL_HEADING_CONTEXT_MENU), procview(pv), leftmostchanged(-1) { connect(this, SIGNAL(rowSelected(int)), SLOT(selection_update(int))); connect(this, SIGNAL(titleClicked(int)), SLOT(sortcol_change(int))); set_sortcol(); }