MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / portGetMask

Method portGetMask

gui/qt/debugger.cpp:1240–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238}
1239
1240int MainWindow::portGetMask(int row) {
1241 unsigned int mask = 0;
1242 if (static_cast<QAbstractButton *>(m_ports->cellWidget(row, PORT_READ_COL))->isChecked()) {
1243 mask |= DBG_MASK_PORT_READ;
1244 }
1245 if (static_cast<QAbstractButton *>(m_ports->cellWidget(row, PORT_WRITE_COL))->isChecked()) {
1246 mask |= DBG_MASK_PORT_WRITE;
1247 }
1248 if (static_cast<QAbstractButton *>(m_ports->cellWidget(row, PORT_FREEZE_COL))->isChecked()) {
1249 mask |= DBG_MASK_PORT_FREEZE;
1250 }
1251 return mask;
1252}
1253
1254void MainWindow::portModified(QTableWidgetItem *item) {
1255 if (item == Q_NULLPTR) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected