Fixed translations after language change
--HG-- branch : feature
This commit is contained in:
parent
10f2d83edd
commit
1cfa97497c
|
@ -1140,7 +1140,7 @@
|
|||
<item row="6" column="1">
|
||||
<widget class="QLineEdit" name="lineEditSize">
|
||||
<property name="toolTip">
|
||||
<string>Use %width% and %height% to insert pattern width and height</string>
|
||||
<string>Use %size% and %height% to insert pattern size and height</string>
|
||||
</property>
|
||||
<property name="maxLength">
|
||||
<number>40</number>
|
||||
|
|
|
@ -1222,6 +1222,7 @@ void MainWindow::changeEvent(QEvent *event)
|
|||
helpLabel->setText(QObject::tr("Changes applied."));
|
||||
patternPieceLabel->setText(tr("Pattern Piece:"));
|
||||
UpdateWindowTitle();
|
||||
emit sceneDetails->LanguageChanged();
|
||||
}
|
||||
// remember to call base class implementation
|
||||
QMainWindow::changeEvent(event);
|
||||
|
|
|
@ -305,7 +305,8 @@
|
|||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-down">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
<normaloff/>
|
||||
</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -319,7 +320,8 @@
|
|||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-up">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
<normaloff/>
|
||||
</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -419,6 +421,9 @@
|
|||
</item>
|
||||
<item row="0" column="2" colspan="2">
|
||||
<widget class="QComboBox" name="comboBoxMaterial">
|
||||
<property name="toolTip">
|
||||
<string>You can choose one of the predefined materials or enter a new one</string>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
|
|
@ -208,6 +208,7 @@ VToolDetail::VToolDetail(VAbstractPattern *doc, VContainer *data, const quint32
|
|||
|
||||
connect(sceneDetails, &VMainGraphicsScene::DimensionsChanged, this, &VToolDetail::UpdateLabel);
|
||||
connect(sceneDetails, &VMainGraphicsScene::DimensionsChanged, this, &VToolDetail::UpdatePatternInfo);
|
||||
connect(sceneDetails, &VMainGraphicsScene::LanguageChanged, this, &VToolDetail::retranslateUi);
|
||||
|
||||
UpdateLabel();
|
||||
UpdatePatternInfo();
|
||||
|
@ -1132,3 +1133,10 @@ void VToolDetail::UpdateAll()
|
|||
sceneDetails->update();
|
||||
update();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolDetail::retranslateUi()
|
||||
{
|
||||
UpdateLabel();
|
||||
UpdatePatternInfo();
|
||||
}
|
||||
|
|
|
@ -99,6 +99,7 @@ public slots:
|
|||
virtual void AllowSelecting(bool enabled) Q_DECL_OVERRIDE;
|
||||
virtual void ResetChildren(QGraphicsItem* pItem);
|
||||
virtual void UpdateAll();
|
||||
virtual void retranslateUi();
|
||||
protected:
|
||||
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||
QWidget *widget) Q_DECL_OVERRIDE;
|
||||
|
|
|
@ -147,6 +147,7 @@ signals:
|
|||
void EnableDetailItemHover(bool enabled);
|
||||
void EnableLineItemHover(bool enabled);
|
||||
void DimensionsChanged();
|
||||
void LanguageChanged();
|
||||
|
||||
private:
|
||||
/** @brief horScrollBar value horizontal scroll bar. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user