Re-enable resize column on sales view
This commit is contained in:
parent
b9ec6f983e
commit
5a3b6fff82
1 changed files with 2 additions and 3 deletions
|
@ -43,11 +43,10 @@ MainWindow::MainWindow()
|
||||||
|
|
||||||
setWindowTitle("KIMA2 - Kasse Nr. " + QSettings().value("global/cashPointNo").toString());
|
setWindowTitle("KIMA2 - Kasse Nr. " + QSettings().value("global/cashPointNo").toString());
|
||||||
|
|
||||||
// Revert this because the application crashes during QApplication::quit
|
ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||||
//ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
|
||||||
setSaleModel();
|
setSaleModel();
|
||||||
|
|
||||||
connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit);
|
connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::closeAllWindows, Qt::QueuedConnection);
|
||||||
connect(ui_.newAction, &QAction::triggered, this, [=]() {
|
connect(ui_.newAction, &QAction::triggered, this, [=]() {
|
||||||
if (marketplace_->getSellers().size() == 0 && marketplace_->getSales().size() == 0) {
|
if (marketplace_->getSellers().size() == 0 && marketplace_->getSales().size() == 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue