Various improvements for RTL languages.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1527 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-02-24 21:26:24 +00:00
parent a73c260e6c
commit 271ee23116
3 changed files with 6 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p,
color_layout -> addWidget(black_color);
color_layout -> addWidget(white_color);
color_layout -> addStretch();
main_layout -> addItem(color_layout);
main_layout -> addLayout(color_layout);
QHBoxLayout *style_layout = new QHBoxLayout();
style_layout -> addWidget(new QLabel(tr("Style : ")));
@@ -75,7 +75,7 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p,
style_layout -> addWidget(dashed_style);
style_layout -> addWidget(dotted_style);
style_layout -> addStretch();
main_layout -> addItem(style_layout);
main_layout -> addLayout(style_layout);
QHBoxLayout *weight_layout = new QHBoxLayout();
weight_layout -> addWidget(new QLabel(tr("\311paisseur : ")));
@@ -83,7 +83,7 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p,
weight_layout -> addWidget(thin_weight);
weight_layout -> addWidget(normal_weight);
weight_layout -> addStretch();
main_layout -> addItem(weight_layout);
main_layout -> addLayout(weight_layout);
main_layout -> addWidget(new QLabel("<u>" + tr("Remplissage :") + "</u> "));
@@ -92,7 +92,7 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p,
filling_layout -> addWidget(black_filling);
filling_layout -> addWidget(white_filling);
filling_layout -> addStretch();
main_layout -> addItem(filling_layout);
main_layout -> addLayout(filling_layout);
main_layout -> addStretch();

View File

@@ -79,7 +79,6 @@ void TitleBlockTemplateLogoManager::initWidgets() {
logos_view_ -> setMinimumSize(iconsize() * 2.9);
logos_view_ -> setIconSize(iconsize());
logos_view_ -> setWrapping(true);
logos_view_ -> setFlow(QListView::LeftToRight);
logos_view_ -> setMovement(QListView::Static);
logos_view_ -> setResizeMode(QListView::Adjust);
add_button_ = new QPushButton(tr("Ajouter un logo"));

View File

@@ -689,6 +689,8 @@ void TitleBlockTemplateView::loadTemplate(TitleBlockTemplate *tbt) {
// assign the layout to a basic QGraphicsWidget
form_ = new QGraphicsWidget();
// enforce the layout direction to avoid reversing the template rendering
form_ -> setLayoutDirection(Qt::LeftToRight);
form_ -> setLayout(tbgrid_);
scene() -> addItem(form_);
adjustSceneRect();