mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-10 21:58:33 -06:00
dbhub: Add button for cloning databases from a link
This adds a new button to clone databases using a direct link which is useful when you know which database you want to clone and do not want to browse through the list of all databases in the Remote dock. Generating this link still needs to be added to the DBHub.io web UI.
This commit is contained in:
@@ -77,6 +77,20 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonCloneDatabase">
|
||||
<property name="text">
|
||||
<string>Clone</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="icons/icons.qrc">
|
||||
<normaloff>:/icons/clone_database</normaloff>:/icons/clone_database</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonPushDatabase">
|
||||
<property name="toolTip">
|
||||
@@ -338,6 +352,17 @@
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>comboUser</tabstop>
|
||||
<tabstop>buttonCloneDatabase</tabstop>
|
||||
<tabstop>buttonPushDatabase</tabstop>
|
||||
<tabstop>tabs</tabstop>
|
||||
<tabstop>treeRemote</tabstop>
|
||||
<tabstop>treeLocal</tabstop>
|
||||
<tabstop>comboDatabaseBranch</tabstop>
|
||||
<tabstop>treeDatabaseCommits</tabstop>
|
||||
<tabstop>buttonNoCertBack</tabstop>
|
||||
</tabstops>
|
||||
<resources>
|
||||
<include location="icons/icons.qrc"/>
|
||||
</resources>
|
||||
@@ -422,6 +447,22 @@
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonCloneDatabase</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>RemoteDock</receiver>
|
||||
<slot>fetchDatabase()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>412</x>
|
||||
<y>15</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>266</x>
|
||||
<y>178</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<slots>
|
||||
<slot>setNewIdentity(QString)</slot>
|
||||
@@ -429,5 +470,6 @@
|
||||
<slot>pushDatabase()</slot>
|
||||
<slot>switchToMainView()</slot>
|
||||
<slot>openLocalFile(QModelIndex)</slot>
|
||||
<slot>fetchDatabase()</slot>
|
||||
</slots>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user