git-svn-id: svn://db.shs.com.ru/libs@110 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user