13 #include <QTableWidget>
22 myMessages->setHorizontalHeaderLabels({tr(
"Max damage"), tr(
"First part"), tr(
"Second part"), tr(
"For victim")});
23 myMessages->setEditTriggers(QAbstractItemView::NoEditTriggers);
24 myMessages->setSelectionBehavior(QAbstractItemView::SelectRows);
25 myMessages->verticalHeader()->setVisible(
false);
28 myForHitter->setTextInteractionFlags(Qt::TextSelectableByMouse);
30 myForVictim->setTextInteractionFlags(Qt::TextSelectableByMouse);
34 auto item =
new QTableWidgetItem(
text);
35 item->setData(Qt::ToolTipRole,
text);
62 myForVictim->setText(QString(
"Hitter%1 you").arg(buf2));