This commit is contained in:
Kovid Goyal 2025-08-18 15:20:20 +05:30
commit 5c5d168369
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
7 changed files with 48 additions and 12 deletions

View File

@ -117,6 +117,11 @@
<property name="text">
<string>...</string>
</property>
<property name="toolTip">
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
Keyboard shortcut: Ctrl-Up arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/arrow-up.png</normaloff>:/images/arrow-up.png</iconset>
@ -141,6 +146,11 @@
<property name="text">
<string>...</string>
</property>
<property name="toolTip">
<string>&lt;p&gt;Click to move the row down 1. Shift+click to move the row down 5.
Ctrl+click to move the row down 10. Ctrl+Shift+click to move the row to the bottom.
Keyboard shortcut: Ctrl-Down arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/arrow-down.png</normaloff>:/images/arrow-down.png</iconset>

View File

@ -1060,12 +1060,18 @@ class EditRules(QWidget): # {{{
self.up_button = b = QToolButton(self)
b.setIcon(QIcon.ic('arrow-up.png'))
b.setToolTip(_('Move the selected rule up'))
b.setToolTip('<p>' + _('Click to move the row up 1. Shift+click '
'to move the row up 5. Ctrl+click to move the row up 10. '
'Ctrl+Shift+click to move the row to the top. '
'Keyboard shortcut: Ctrl-Up arrow') + '</p>')
b.clicked.connect(partial(self.move_rows, moving_up=True))
g.addWidget(b, 0, 1, 1, 1, Qt.AlignmentFlag.AlignTop)
self.down_button = b = QToolButton(self)
b.setIcon(QIcon.ic('arrow-down.png'))
b.setToolTip(_('Move the selected rule down'))
b.setToolTip('<p>' + _('Click to move the row down 1. Shift+click to move the '
'row down 5. Ctrl+click to move the row down 10. Ctrl+Shift+click '
'to move the row to the bottom. '
'Keyboard shortcut: Ctrl-Down arrow') + '</p>')
b.clicked.connect(partial(self.move_rows, moving_up=False))
self.rules_view.set_movement_functions(partial(self.move_rows, moving_up=True),
partial(self.move_rows, moving_up=False))

View File

@ -40,7 +40,8 @@
<widget class="QToolButton" name="column_up">
<property name="toolTip">
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.&lt;/p&gt;</string>
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
Keyboard shortcut: Ctrl-Up arrow&lt;/p&gt;</string>
</property>
<property name="text">
<string>...</string>
@ -173,7 +174,8 @@ Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.&l
<widget class="QToolButton" name="column_down">
<property name="toolTip">
<string>&lt;p&gt;Click to move the row down 1. Shift+click to move the row down 5.
Ctrl+click to move the row down 10. Ctrl+Shift+click to move the row to the bottom.&lt;/p&gt;</string>
Ctrl+click to move the row down 10. Ctrl+Shift+click to move the row to the bottom.
Keyboard shortcut: Ctrl-Down arrow&lt;/p&gt;</string>
</property>
<property name="text">
<string>...</string>

View File

@ -60,7 +60,9 @@
<item row="3" column="1">
<widget class="QToolButton" name="df_down_button">
<property name="toolTip">
<string>Move down. Keyboard shortcut: Ctrl-Down arrow</string>
<string>&lt;p&gt;Click to move the row down 1. Shift+click to move the row down 5.
Ctrl+click to move the row down 10. Ctrl+Shift+click to move the row to the bottom.
Keyboard shortcut: Ctrl-Down arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">
@ -71,7 +73,9 @@
<item row="1" column="1">
<widget class="QToolButton" name="df_up_button">
<property name="toolTip">
<string>Move up. Keyboard shortcut: Ctrl-Up arrow</string>
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
Keyboard shortcut: Ctrl-Up arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">

View File

@ -41,7 +41,9 @@
<item row="3" column="1">
<widget class="QToolButton" name="em_down_button">
<property name="toolTip">
<string>Move down. Keyboard shortcut: Ctrl-Down arrow</string>
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
Keyboard shortcut: Ctrl-Up arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">
@ -52,7 +54,9 @@
<item row="1" column="1">
<widget class="QToolButton" name="em_up_button">
<property name="toolTip">
<string>Move up. Keyboard shortcut: Ctrl-Up arrow</string>
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
Keyboard shortcut: Ctrl-Down arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">

View File

@ -61,7 +61,9 @@ column being examined (the left-hand panel)&lt;/p&gt;</string>
<item row="0" column="1">
<widget class="QToolButton" name="qv_up_button">
<property name="toolTip">
<string>Move up. Keyboard shortcut: Ctrl-Up arrow</string>
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
Keyboard shortcut: Ctrl-Up arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">
@ -72,7 +74,9 @@ column being examined (the left-hand panel)&lt;/p&gt;</string>
<item row="2" column="1">
<widget class="QToolButton" name="qv_down_button">
<property name="toolTip">
<string>Move down. Keyboard shortcut: Ctrl-Down arrow</string>
<string>&lt;p&gt;Click to move the row down 1. Shift+click to move the row down 5.
Ctrl+click to move the row down 10. Ctrl+Shift+click to move the row to the bottom.
Keyboard shortcut: Ctrl-Down arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">

View File

@ -32,7 +32,10 @@
<item row="1" column="1">
<widget class="QToolButton" name="tb_up_button">
<property name="toolTip">
<string>Move up. User categories and Saved searches cannot be moved. Keyboard shortcut: Ctrl-Up arrow</string>
<string>&lt;p&gt;Click to move the row up 1. Shift+click to move the row up 5.
Ctrl+click to move the row up 10. Ctrl+Shift+click to move the row to the top.
User categories and Saved searches cannot be moved.
Keyboard shortcut: Ctrl-Up arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">
@ -56,7 +59,10 @@
<item row="3" column="1">
<widget class="QToolButton" name="tb_down_button">
<property name="toolTip">
<string>Move down. User categories and Saved searches cannot be moved. Keyboard shortcut: Ctrl-Down arrow</string>
<string>&lt;p&gt;Click to move the row down 1. Shift+click to move the row down 5.
Ctrl+click to move the row down 10. Ctrl+Shift+click to move the row to the bottom.
User categories and Saved searches cannot be moved.
Keyboard shortcut: Ctrl-Down arrow&lt;/p&gt;</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">