git-svn-id: svn://db.shs.com.ru/libs@110 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2016-08-01 11:46:05 +00:00
parent 71cfb447ce
commit bf7c678313
3 changed files with 9 additions and 4 deletions

View File

@@ -29,6 +29,8 @@ config(piqt(config_), QIODevice::ReadWrite) {
session.addEntry(ui->checkKHideNormal);
session.addEntry(ui->checkKHideExpressions);
session.addEntry(ui->checkKAutoCalculate);
session.addEntry(ui->spinHistory);
session.addEntry(ui->spinBuffer);
needWrite = isPause = false;
timer = 0;
//x.resize(KX_X_PACKET_NUM);
@@ -58,6 +60,7 @@ config(piqt(config_), QIODevice::ReadWrite) {
connect(ui->checkKHideExpressions, SIGNAL(toggled(bool)), this, SLOT(filterTree()));
connect(ui->lineKSearch, SIGNAL(textChanged(QString)), this, SLOT(filterTree()));
session.load();
on_spinBuffer_editingFinished();
K.configure(config_);
K.readFile();
updateKDesc();
@@ -98,7 +101,7 @@ bool CD_Pult::eventFilter(QObject * o, QEvent * e) {
}
return QMainWindow::eventFilter(o, e);
}
int ind = o->property("index").toInt();
//int ind = o->property("index").toInt();
//qDebug() << "event" << i << e->type();
switch (e->type()) {
case QEvent::Enter:
@@ -296,6 +299,7 @@ void CD_Pult::on_buttonSetKDesc_clicked() {
if (ret.isEmpty()) return;
kdesc_file = Q2PIString(QDir::current().relativeFilePath(ret));
PIFile f(kdesc_file, PIIODevice::ReadOnly);
piCout << "open description:" << Q2PIString(ret);
K.update(&f);
updateKDesc(true);
}