src/EditProductTab5.cpp

changeset 190
bb6c06910f0f
parent 179
512f492358e3
child 194
ea8cce5e7eb9
equal deleted inserted replaced
189:722a4eed545d 190:bb6c06910f0f
106 /* 106 /*
107 * Add the Delete and Edit row buttons. 107 * Add the Delete and Edit row buttons.
108 * Not for water agents, these are set on the water tab. 108 * Not for water agents, these are set on the water tab.
109 */ 109 */
110 if (product->miscs.at(i).m_type == 4) { 110 if (product->miscs.at(i).m_type == 4) {
111 ui->miscsTable->removeCellWidget(i, 6); 111 item = new QTableWidgetItem("");
112 ui->miscsTable->removeCellWidget(i, 7); 112 item->setToolTip(tr("Edit this from the water tab"));
113 ui->miscsTable->setItem(i, 6, item);
114 item = new QTableWidgetItem("");
115 item->setToolTip(tr("Edit this from the water tab"));
116 ui->miscsTable->setItem(i, 7, item);
113 } else { 117 } else {
114 pWidget = new QWidget(); 118 pWidget = new QWidget();
115 QPushButton* btn_dele = new QPushButton(); 119 QPushButton* btn_dele = new QPushButton();
116 btn_dele->setObjectName(QString("%1").arg(i)); /* Send row with the button */ 120 btn_dele->setObjectName(QString("%1").arg(i)); /* Send row with the button */
117 btn_dele->setText(tr("Delete")); 121 btn_dele->setText(tr("Delete"));

mercurial