forked from Lucky-spirit/Financial-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextendrow.cpp
More file actions
39 lines (33 loc) · 749 Bytes
/
extendrow.cpp
File metadata and controls
39 lines (33 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "extendrow.h"
ExtendRow::ExtendRow(QWidget *parent) :
EvgRow(parent)
{
}
void ExtendRow::init()
{
EvgRow::init();
}
void ExtendRow::changeIdToText(QString &idName)
{
pIdCoefficient->setText(idName);
}
void ExtendRow::setStringByState(TypeState state)
{
QString foo(tr(" фінансовий стан"));
switch (state)
{
case TypeStateUnstable :
foo.insert(0, tr("Нестійкий"));
break;
case TypeStateMiddle :
foo.insert(0, tr("Середній"));
break;
case TypeStateStable :
foo.insert(0, tr("Стійкий"));
break;
default :
foo.insert(0, tr("Невизначений"));
break;
}
setTextDefinition(foo);
}