Revert resize column because application crashes
This commit is contained in:
parent
1797a860d1
commit
d3e56e629d
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,8 @@ MainWindow::MainWindow()
|
||||||
|
|
||||||
setWindowTitle("KIMA2 - Kasse Nr. " + QSettings().value("global/cashPointNo").toString());
|
setWindowTitle("KIMA2 - Kasse Nr. " + QSettings().value("global/cashPointNo").toString());
|
||||||
|
|
||||||
ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
// Revert this because the application crashes during QApplication::quit
|
||||||
|
//ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||||
setSaleModel();
|
setSaleModel();
|
||||||
|
|
||||||
connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit);
|
connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit);
|
||||||
|
@ -172,6 +173,7 @@ void MainWindow::setSaleModel()
|
||||||
ui_.salesView->setModel(new SaleModel(getMarketplace(), ui_.salesView));
|
ui_.salesView->setModel(new SaleModel(getMarketplace(), ui_.salesView));
|
||||||
ui_.salesView->setColumnHidden(2, true);
|
ui_.salesView->setColumnHidden(2, true);
|
||||||
ui_.salesView->resizeColumnToContents(0);
|
ui_.salesView->resizeColumnToContents(0);
|
||||||
|
ui_.salesView->resizeColumnToContents(1);
|
||||||
|
|
||||||
ui_.printSaleReceiptButton->setEnabled(false);
|
ui_.printSaleReceiptButton->setEnabled(false);
|
||||||
ui_.cancelSaleButton->setEnabled(false);
|
ui_.cancelSaleButton->setEnabled(false);
|
||||||
|
|
Loading…
Reference in a new issue