modify birthday eng to eng position.

This commit is contained in:
shouchih_chen 2024-03-13 15:04:34 +08:00
parent 5655d824d7
commit d1e80ad04c
2 changed files with 5 additions and 3 deletions

View File

@ -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);
}

View File

@ -1,6 +1,6 @@
#ifndef DEF_H
#define DEF_H
#define VERSION "v2.4.1"
#define VERSION "v2.4.2"
#endif // DEF_H