debugging
This commit is contained in:
parent
1099d16455
commit
0bded9e4a2
@ -11,15 +11,15 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
spinExp = ui->spinExp;
|
||||
spinMod = ui->spinMod;
|
||||
|
||||
//SQMTableModel test;
|
||||
//resultTable->setModel(&test);
|
||||
//resultTable->show();
|
||||
|
||||
resultTable = ui->resultTable;
|
||||
|
||||
connect(spinBase, SIGNAL(valueChanged(int)), this, SLOT(SetModel()));
|
||||
connect(spinExp, SIGNAL(valueChanged(int)), this, SLOT(SetModel()));
|
||||
connect(spinMod, SIGNAL(valueChanged(int)), this, SLOT(SetModel()));
|
||||
|
||||
resultTable = ui->resultTable;
|
||||
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
@ -35,5 +35,5 @@ void MainWindow::SetModel() {
|
||||
|
||||
resultTableModel.SetStartValues(base, exp, mod);
|
||||
resultTable->setModel(&resultTableModel);
|
||||
resultTable->show();
|
||||
//resultTable->show();
|
||||
}
|
||||
|
@ -18,10 +18,11 @@ int SQMTableModel::columnCount(const QModelIndex & /*parent*/) const {
|
||||
QVariant SQMTableModel::data(const QModelIndex &index, int role) const {
|
||||
|
||||
if (role == Qt::DisplayRole) {
|
||||
int row = index.row();
|
||||
int col = index.column();
|
||||
// int row = index.row();
|
||||
// int col = index.column();
|
||||
|
||||
return sqmMatrix.at(col).at(row);
|
||||
// return sqmMatrix.at(col).at(row);
|
||||
return "test";
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user