Skip to content

Commit

Permalink
fix: translation file errors
Browse files Browse the repository at this point in the history
Fix ug translation file formatting error.
Using spacer instead of margins.

Log: 

Bug: https://pms.uniontech.com/bug-view-239897.html
Bug: https://pms.uniontech.com/bug-view-239889.html
  • Loading branch information
Clauszy committed Jan 17, 2024
1 parent 183b7bb commit fb1f88b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ void SlideShowConfigDialog::initUI()
bgGroup->setUseWidgetBackground(false);
contentlayout->addWidget(bgGroup);

for (QWidget *wid : contWid) {
for (QWidget *pwid : contWid) {
QWidget *wrapperWidget = new QWidget(bgGroup);
QHBoxLayout *hLay = new QHBoxLayout(wrapperWidget);
hLay->setContentsMargins(10, 6, 10, 6);
wid->setParent(wrapperWidget);
hLay->addWidget(wid);
pwid->setParent(wrapperWidget);
hLay->addWidget(pwid);

bgGpLayout->addWidget(wrapperWidget);
}
Expand All @@ -136,9 +136,12 @@ void SlideShowConfigDialog::initUI()

// reset
{
QSpacerItem *spaceItem = new QSpacerItem(0, 30, QSizePolicy::Minimum,QSizePolicy::Expanding);
contentlayout->addItem(spaceItem);

QWidget *box = new QWidget();
QHBoxLayout *box_layout = new QHBoxLayout(box);
box_layout->setContentsMargins(0, 30, 0, 0);
box_layout->setContentsMargins(0, 0, 0, 0);
auto resetBt = new DPushButton(QObject::tr("Restore Defaults"), box);
resetBt->setMaximumWidth(300);
resetBt->setAutoDefault(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<message>
<location filename="../src/slideshowconfigdialog.cpp" line="142"/>
<source>Restore Defaults</source>
translation>ئەسلىدىكى تەڭشەك ھالىتىگە قايتۇرۇش</translation>
<translation>ئەسلىدىكى تەڭشەك ھالىتىگە قايتۇرۇش</translation>
</message>
</context>
<context>
Expand Down

0 comments on commit fb1f88b

Please sign in to comment.