modify birthday eng to eng position.
This commit is contained in:
parent
5655d824d7
commit
d1e80ad04c
@ -205,7 +205,7 @@ void BirthdayCreater::generaImageFromCSV(Name_Type_e type, const QString& filena
|
||||
qreal dir = (i == 0) ? -1.0:1.0;
|
||||
qreal x_offset = (i == 0) ? 290.0 : 170.0;
|
||||
qreal y_offset = (i == 0) ? 780.0 : 1580.0;
|
||||
chrismas_y_offset = (i == 0)? 1.0*chrismas_y_offset:-1.0*chrismas_y_offset;
|
||||
int sp_y_offset = chrismas_y_offset;//(i == 0)? 1.0*chrismas_y_offset:-1.0*chrismas_y_offset-30.0;
|
||||
//add English world
|
||||
QGraphicsTextItem* eng_word_item = new QGraphicsTextItem(name_info.name_eng);
|
||||
eng_word_item->setFont(_new_font);
|
||||
@ -213,7 +213,9 @@ void BirthdayCreater::generaImageFromCSV(Name_Type_e type, const QString& filena
|
||||
eng_word_item->setDefaultTextColor(font_color);
|
||||
|
||||
eng_word_item->setRotation(i == 0 ? 90 : -90);
|
||||
eng_word_item->setPos(label_item->x() + x_offset - rect.height()/2.0, label_item->y() + y_offset + chrismas_y_offset + (rect.width()/2*dir));
|
||||
eng_word_item->setPos(label_item->x() + x_offset - rect.height()/2.0, label_item->y() + y_offset + sp_y_offset + (rect.width()/2*dir));
|
||||
|
||||
|
||||
scene.addItem(eng_word_item);
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#ifndef DEF_H
|
||||
#define DEF_H
|
||||
|
||||
#define VERSION "v2.4.1"
|
||||
#define VERSION "v2.4.2"
|
||||
|
||||
#endif // DEF_H
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user