@@ -16,17 +16,25 const auto TEND_COLUMN = 2; | |||
|
16 | 16 | const auto NB_COLUMNS = 3; |
|
17 | 17 | |
|
18 | 18 | // Column properties |
|
19 | const auto DEFAULT_HEIGHT = 25; | |
|
20 | const auto DEFAULT_WIDTH = 100; | |
|
19 | 21 | |
|
20 | 22 | struct ColumnProperties { |
|
21 |
ColumnProperties(const QString &name = {} |
|
|
23 | ColumnProperties(const QString &name = {}, int width = DEFAULT_WIDTH, | |
|
24 | int height = DEFAULT_HEIGHT) | |
|
25 | : m_Name{name}, m_Width{width}, m_Height{height} | |
|
26 | { | |
|
27 | } | |
|
22 | 28 | |
|
23 | 29 | QString m_Name; |
|
30 | int m_Width; | |
|
31 | int m_Height; | |
|
24 | 32 | }; |
|
25 | 33 | |
|
26 | 34 | const auto COLUMN_PROPERTIES |
|
27 | 35 | = QHash<int, ColumnProperties>{{NAME_COLUMN, {QObject::tr("Name")}}, |
|
28 | {TSTART_COLUMN, {QObject::tr("tStart")}}, | |
|
29 | {TEND_COLUMN, {QObject::tr("tEnd")}}}; | |
|
36 | {TSTART_COLUMN, {QObject::tr("tStart"), 180}}, | |
|
37 | {TEND_COLUMN, {QObject::tr("tEnd"), 180}}}; | |
|
30 | 38 | |
|
31 | 39 | /// Format for datetimes |
|
32 | 40 | const auto DATETIME_FORMAT = QStringLiteral("dd/MM/yyyy \nhh:mm:ss:zzz"); |
General Comments 0
You need to be logged in to leave comments.
Login now