KontierenStrips now show projekt name
This commit is contained in:
@@ -891,8 +891,9 @@ void MainWindow::validateEntries()
|
|||||||
goto after;
|
goto after;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->verticalLayout2->addWidget(new KontierungStrip(kontierung.id, kontierung.timespan, kontierung.projekt, kontierung.subprojekt,
|
ui->verticalLayout2->addWidget(new KontierungStrip(kontierung.id, kontierung.timespan, buildProjektString(kontierung.projekt),
|
||||||
kontierung.workpackage, kontierung.text, ui->scrollAreaWidgetContents));
|
kontierung.subprojekt, kontierung.workpackage, kontierung.text,
|
||||||
|
ui->scrollAreaWidgetContents));
|
||||||
|
|
||||||
if(kontierung.timespan == QTime(0, 0))
|
if(kontierung.timespan == QTime(0, 0))
|
||||||
{
|
{
|
||||||
@@ -942,8 +943,9 @@ void MainWindow::validateEntries()
|
|||||||
goto after;
|
goto after;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->verticalLayout2->addWidget(new KontierungStrip(kontierung.id, kontierung.timespan, kontierung.projekt, kontierung.subprojekt,
|
ui->verticalLayout2->addWidget(new KontierungStrip(kontierung.id, kontierung.timespan, buildProjektString(kontierung.projekt),
|
||||||
kontierung.workpackage, kontierung.text, ui->scrollAreaWidgetContents));
|
kontierung.subprojekt, kontierung.workpackage, kontierung.text,
|
||||||
|
ui->scrollAreaWidgetContents));
|
||||||
|
|
||||||
if(kontierung.timespan == QTime(0, 0))
|
if(kontierung.timespan == QTime(0, 0))
|
||||||
{
|
{
|
||||||
@@ -1000,8 +1002,9 @@ void MainWindow::validateEntries()
|
|||||||
goto after;
|
goto after;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->verticalLayout2->addWidget(new KontierungStrip(kontierung.id, kontierung.timespan, kontierung.projekt, kontierung.subprojekt,
|
ui->verticalLayout2->addWidget(new KontierungStrip(kontierung.id, kontierung.timespan, buildProjektString(kontierung.projekt),
|
||||||
kontierung.workpackage, kontierung.text, ui->scrollAreaWidgetContents));
|
kontierung.subprojekt, kontierung.workpackage, kontierung.text,
|
||||||
|
ui->scrollAreaWidgetContents));
|
||||||
|
|
||||||
if(kontierung.timespan == QTime(0, 0))
|
if(kontierung.timespan == QTime(0, 0))
|
||||||
{
|
{
|
||||||
@@ -1170,3 +1173,11 @@ void MainWindow::clearStrips()
|
|||||||
delete item;
|
delete item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString MainWindow::buildProjektString(const QString &projekt)
|
||||||
|
{
|
||||||
|
if(m_projekte.contains(projekt))
|
||||||
|
return m_projekte.value(projekt) % " (" % projekt % ")";
|
||||||
|
else
|
||||||
|
return projekt;
|
||||||
|
}
|
||||||
|
@@ -45,6 +45,8 @@ private:
|
|||||||
void updateAuswertung();
|
void updateAuswertung();
|
||||||
void clearStrips();
|
void clearStrips();
|
||||||
|
|
||||||
|
QString buildProjektString(const QString &projekt);
|
||||||
|
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
QSettings &m_settings;
|
QSettings &m_settings;
|
||||||
Zeiterfassung &m_erfassung;
|
Zeiterfassung &m_erfassung;
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>500</width>
|
<width>500</width>
|
||||||
<height>75</height>
|
<height>78</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -25,11 +25,14 @@
|
|||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1,0">
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1,0">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>20</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labelTime">
|
<widget class="QLabel" name="labelTime">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<pointsize>20</pointsize>
|
<pointsize>15</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
@@ -47,7 +50,7 @@
|
|||||||
<widget class="QLabel" name="labelProjekt">
|
<widget class="QLabel" name="labelProjekt">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<pointsize>20</pointsize>
|
<pointsize>15</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Reference in New Issue
Block a user