The mode to turn off hex display now works for the main frame view. It doesn't work elsewhere.

This commit is contained in:
Collin Kidder
2015-06-28 20:57:56 -04:00
parent f072c540e6
commit ebf3db8a3e
3 changed files with 21 additions and 4 deletions
+3 -2
View File
@@ -43,8 +43,6 @@ MainWindow::MainWindow(QWidget *parent) :
QCoreApplication::setOrganizationDomain("evtv.me");
QCoreApplication::setApplicationName("SavvyCAN");
readSettings();
selfRef = this;
this->setWindowTitle("Savvy CAN V" + QString::number(VERSION));
@@ -52,6 +50,8 @@ MainWindow::MainWindow(QWidget *parent) :
model = new CANFrameModel();
ui->canFramesView->setModel(model);
readSettings();
QStringList headers;
headers << "Timestamp" << "ID" << "Ext" << "Bus" << "Len" << "Data";
//model->setHorizontalHeaderLabels(headers);
@@ -242,6 +242,7 @@ void MainWindow::readSettings()
{
ui->cbAutoScroll->setChecked(true);
}
model->setHexMode(settings.value("Main/UseHex", true).toBool());
}
void MainWindow::writeSettings()