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")); |