Skip to content

Commit

Permalink
Reset button text to default
Browse files Browse the repository at this point in the history
This is to avoid Qt auto-generating code like this:
  `buttonAdd->setText(QStringLiteral(""));`
Which makes no sense and triggers clazy warning (Wclazy-empty-qstringliteral).
  • Loading branch information
Chocobo1 committed Aug 28, 2018
1 parent 254782d commit 718b3f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
12 changes: 2 additions & 10 deletions src/gui/cookiesdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@
</spacer>
</item>
<item>
<widget class="QToolButton" name="buttonAdd">
<property name="text">
<string notr="true"/>
</property>
</widget>
<widget class="QToolButton" name="buttonAdd"/>
</item>
<item>
<spacer name="verticalSpacer">
Expand All @@ -68,11 +64,7 @@
</spacer>
</item>
<item>
<widget class="QToolButton" name="buttonDelete">
<property name="text">
<string notr="true"/>
</property>
</widget>
<widget class="QToolButton" name="buttonDelete"/>
</item>
<item>
<spacer name="verticalSpacer_3">
Expand Down
3 changes: 0 additions & 3 deletions src/gui/deletionconfirmationdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
<property name="toolTip">
<string>Remember choice</string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="iconSize">
<size>
<width>24</width>
Expand Down
12 changes: 2 additions & 10 deletions src/gui/optionsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2987,11 +2987,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.</string>
</property>
<layout class="QGridLayout" name="gridLayout_11">
<item row="0" column="0">
<widget class="QLabel" name="lblSslCertStatus">
<property name="text">
<string notr="true"/>
</property>
</widget>
<widget class="QLabel" name="lblSslCertStatus"/>
</item>
<item row="0" column="1">
<widget class="QLabel" name="lblWebUiCrt">
Expand Down Expand Up @@ -3028,11 +3024,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.</string>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lblSslKeyStatus">
<property name="text">
<string notr="true"/>
</property>
</widget>
<widget class="QLabel" name="lblSslKeyStatus"/>
</item>
<item row="1" column="1">
<widget class="QLabel" name="lblWebUiKey">
Expand Down

0 comments on commit 718b3f0

Please sign in to comment.