Instead of requiring clicking on the checkbox, allow clicking
anywhere in a selectable line to select it.
grid->setRowStretch(2, 1);
setFocusPolicy(Qt::StrongFocus);
table->setFocusPolicy(Qt::NoFocus);
+ connect(table, SIGNAL(cellClicked(int,int)), this, SLOT(cellToggleSelect(int,int)));
setLayout(grid);
}
}
}
+void NetHackQtMenuWindow::cellToggleSelect(int i, int j)
+{
+ ToggleSelect(i);
+}
+
void NetHackQtMenuWindow::DoSelection(bool)
{
if (how == PICK_ONE) {
void Search();
void ToggleSelect(int);
+ void cellToggleSelect(int, int);
void DoSelection(bool);
protected: