parent
95bdae68f4
commit
0e83586cae
9 changed files with 18 additions and 7 deletions
|
|
@ -81,6 +81,15 @@ int LanguageModel::getCurrentLanguageIndex()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int LanguageModel::getLineHeightAppend()
|
||||||
|
{
|
||||||
|
int langIndex = getCurrentLanguageIndex();
|
||||||
|
switch (langIndex) {
|
||||||
|
case 5: return 10; break; // Burmese
|
||||||
|
default: return 0; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QString LanguageModel::getCurrentLanguageName()
|
QString LanguageModel::getCurrentLanguageName()
|
||||||
{
|
{
|
||||||
return m_availableLanguages[getCurrentLanguageIndex()].name;
|
return m_availableLanguages[getCurrentLanguageIndex()].name;
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,12 @@ public:
|
||||||
|
|
||||||
Q_PROPERTY(QString currentLanguageName READ getCurrentLanguageName NOTIFY translationsUpdated)
|
Q_PROPERTY(QString currentLanguageName READ getCurrentLanguageName NOTIFY translationsUpdated)
|
||||||
Q_PROPERTY(int currentLanguageIndex READ getCurrentLanguageIndex NOTIFY translationsUpdated)
|
Q_PROPERTY(int currentLanguageIndex READ getCurrentLanguageIndex NOTIFY translationsUpdated)
|
||||||
|
Q_PROPERTY(int lineHeightAppend READ getLineHeightAppend NOTIFY translationsUpdated)
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void changeLanguage(const LanguageSettings::AvailableLanguageEnum language);
|
void changeLanguage(const LanguageSettings::AvailableLanguageEnum language);
|
||||||
int getCurrentLanguageIndex();
|
int getCurrentLanguageIndex();
|
||||||
|
int getLineHeightAppend();
|
||||||
QString getCurrentLanguageName();
|
QString getCurrentLanguageName();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 16
|
lineHeight: 16 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#0E0E11"
|
color: "#0E0E11"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 38
|
lineHeight: 38 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#D7D8DB"
|
color: "#D7D8DB"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 30
|
lineHeight: 30 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#D7D8DB"
|
color: "#D7D8DB"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 16
|
lineHeight: 16 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#878B91"
|
color: "#878B91"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 21.6
|
lineHeight: 21.6 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#D7D8DB"
|
color: "#D7D8DB"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 24
|
lineHeight: 24 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#D7D8DB"
|
color: "#D7D8DB"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
lineHeight: 20
|
lineHeight: 20 + LanguageModel.getLineHeightAppend()
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
|
||||||
color: "#D7D8DB"
|
color: "#D7D8DB"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue