24 setObjectName(
"Go4UserCommandsDialog");
29 QString com=
go4sett->getAnalysisMacroCommand(
id);
30 QString tip=
go4sett->getAnalysisMacroTip(
id).split(
":").first();
31 bool monitor=
go4sett->getAnalysisMacroAutomode(
id);
32 QTableWidgetItem* comitem= CommandsTable->item(
id,0);
33 if(comitem) comitem->setText(com);
34 QTableWidgetItem* tipitem= CommandsTable->item(
id,1);
35 if(tipitem) tipitem->setText(tip);
37 QTableWidgetItem* autoitem= CommandsTable->item(
id,2);
39 autoitem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
40 autoitem->setCheckState( monitor ? Qt::Checked : Qt::Unchecked);
76 QPushButton* pbut =
dynamic_cast<QPushButton*
>(but);
77 if (pbut == DialogButtonBox->button(QDialogButtonBox::Reset)) {
79 QTableWidgetItem *comitem = CommandsTable->item(
id, 0);
81 comitem->setText(QString(
""));
82 QTableWidgetItem *tipitem = CommandsTable->item(
id, 1);
84 tipitem->setText(QString(
""));
85 QTableWidgetItem *autoitem = CommandsTable->item(
id, 2);
87 autoitem->setCheckState(Qt::Unchecked);