Now when you press Enter in the IP input field, you automatically start to connect to it. (similar to pressing the Connect button)

This commit is contained in:
Denis Davydov 2018-07-26 17:55:07 +03:00
parent 810bfbc246
commit d5c9371a65

View File

@ -57,7 +57,7 @@
</property>
</widget>
</item>
<item row="0" column="1">
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="myIP">
<property name="readOnly">
<bool>true</bool>
@ -69,5 +69,22 @@
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
<connections>
<connection>
<sender>peerID</sender>
<signal>returnPressed()</signal>
<receiver>connectToPeer</receiver>
<slot>click()</slot>
<hints>
<hint type="sourcelabel">
<x>122</x>
<y>90</y>
</hint>
<hint type="destinationlabel">
<x>281</x>
<y>90</y>
</hint>
</hints>
</connection>
</connections>
</ui>