mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(profileform): Removed HTML tags from translation
This commit is contained in:
parent
2d63e441d4
commit
a7ddf5ef56
|
@ -174,9 +174,15 @@ void ProfileForm::show(ContentLayout* contentLayout)
|
|||
head->show();
|
||||
QWidget::show();
|
||||
prFileLabelUpdate();
|
||||
QString DirPath = Settings::getInstance().getMakeToxPortable() ? QApplication::applicationDirPath() :
|
||||
QDir(Settings::getInstance().getSettingsDirPath()).path().trimmed();
|
||||
bodyUI->dirPrLink->setText(bodyUI->dirPrLink->text().replace("Dir_Path",DirPath));
|
||||
bool portable = Settings::getInstance().getMakeToxPortable();
|
||||
QString defaultPath = QDir(Settings::getInstance().getSettingsDirPath()).path().trimmed();
|
||||
QString appPath = QApplication::applicationDirPath();
|
||||
QString dirPath = portable ? appPath : defaultPath;
|
||||
|
||||
QString dirPrLink = tr("Current profile location: %1")
|
||||
.arg(QString("<a href=\"file://%1\">%1</a>").arg(dirPath));
|
||||
|
||||
bodyUI->dirPrLink->setText(dirPrLink);
|
||||
bodyUI->dirPrLink->setOpenExternalLinks(true);
|
||||
bodyUI->dirPrLink->setTextInteractionFlags(Qt::LinksAccessibleByMouse | Qt::TextSelectableByMouse);
|
||||
bodyUI->dirPrLink->setMaximumSize(bodyUI->dirPrLink->sizeHint());
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>536</width>
|
||||
<height>844</height>
|
||||
<width>577</width>
|
||||
<height>796</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,0,1">
|
||||
|
@ -292,7 +292,7 @@ Share it with your friends to communicate.</string>
|
|||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><p><a href="file:///Dir_Path"><span style=" text-decoration: NONE; color:#000000;">Current profile location: Dir_Path</span></a></p></string>
|
||||
<string notr="true">{Current profile location}</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
|
|
Loading…
Reference in New Issue
Block a user