Column widths saving to user settings.
Fixed memory leak in AutoTableModel.
This commit is contained in:
@@ -98,6 +98,12 @@ public slots:
|
||||
hide.append(var.toInt());
|
||||
}
|
||||
|
||||
QMap<QString, QVariant> widths = Context::instance().settings()->value("grids/" + pluginId() + "/widths").toMap();
|
||||
foreach (QString key, widths.keys()) {
|
||||
tableView()->setColumnWidth(key.toInt(), widths[key].toInt());
|
||||
}
|
||||
|
||||
connect(tableView()->horizontalHeader(), SIGNAL(sectionResized(int,int,int)), this, SLOT(widthChanged(int,int,int)));
|
||||
hideColumns(hide);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user