From 36d650756da65d811b5a6e54188cb8218f995e8c Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Sat, 2 Dec 2017 19:26:40 +0100 Subject: [PATCH] Strip rendereing bug fixed --- mainwindow.cpp | 13 ++++--------- mainwindow.ui | 16 +++++++++++++--- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 2857a6b..d40fafd 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -37,7 +37,7 @@ MainWindow::MainWindow(QSettings &settings, Zeiterfassung &erfassung, const Zeit { ui->setupUi(this); - setWindowTitle(tr("Zeiterfassung - %0").arg(m_userInfo.text)); + setWindowTitle(tr("Zeiterfassung - %0 (%1)").arg(m_userInfo.text).arg(m_userInfo.email)); ui->actionQuit->setShortcut(QKeySequence::Quit); @@ -847,14 +847,7 @@ void MainWindow::validateEntries() if(buchungenIter == m_buchungenModel->constEnd() && kontierungenIter == m_kontierungenModel->constEnd()) { - ui->timeEditTime->setEnabled(true); - ui->comboBoxProjekt->setEnabled(true); - ui->comboBoxSubprojekt->setEnabled(true); - ui->comboBoxWorkpackage->setEnabled(true); - ui->comboBoxText->setEnabled(true); - ui->pushButtonStart->setEnabled(true); - - return; + goto after; } if(buchungenIter == m_buchungenModel->constEnd()) @@ -1053,6 +1046,8 @@ void MainWindow::validateEntries() .arg(buchungTimespan.toString("HH:mm:ss")); goto after; } + else + ui->verticalLayout2->addSpacing(17); } } } diff --git a/mainwindow.ui b/mainwindow.ui index e79a0c0..6298ebb 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -177,6 +177,12 @@ 0 + + QFrame::NoFrame + + + QFrame::Plain + true @@ -188,11 +194,15 @@ 0 0 - 1218 - 452 + 1220 + 454 - + + + 3 + +