dbhub: Add refresh button to both tool bars

This allows updating the data in case it has changed on the DBHub.io
servers.
This commit is contained in:
Martin Kleusberg
2020-07-21 22:28:13 +02:00
parent fa1930135d
commit 9a8bcafaf1
3 changed files with 50 additions and 6 deletions

View File

@@ -127,6 +127,7 @@
<bool>false</bool>
</property>
<addaction name="actionCloneDatabase"/>
<addaction name="actionRefresh"/>
</widget>
</item>
<item>
@@ -190,6 +191,7 @@
<bool>false</bool>
</property>
<addaction name="actionDatabaseOpenBrowser"/>
<addaction name="actionRefresh"/>
</widget>
</item>
<item>
@@ -434,6 +436,21 @@
<string>Use this to download a remote database for local editing using a URL as provided on the web page of the database.</string>
</property>
</action>
<action name="actionRefresh">
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/refresh</normaloff>:/icons/refresh</iconset>
</property>
<property name="text">
<string>Refresh</string>
</property>
<property name="toolTip">
<string>Reload all data and update the views</string>
</property>
<property name="shortcut">
<string>F5</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>comboUser</tabstop>
@@ -561,6 +578,22 @@
</hint>
</hints>
</connection>
<connection>
<sender>actionRefresh</sender>
<signal>triggered()</signal>
<receiver>RemoteDock</receiver>
<slot>refresh()</slot>
<hints>
<hint type="sourcelabel">
<x>51</x>
<y>21</y>
</hint>
<hint type="destinationlabel">
<x>266</x>
<y>193</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>setNewIdentity(QString)</slot>
@@ -570,5 +603,6 @@
<slot>openLocalFile(QModelIndex)</slot>
<slot>fetchDatabase()</slot>
<slot>openCurrentDatabaseInBrowser()</slot>
<slot>refresh()</slot>
</slots>
</ui>