Merge pull request #99 from csharpee/hushchatflow

Hush Chat Tab Responsiveness
This commit is contained in:
Denio
2020-06-05 21:28:12 +02:00
committed by GitHub

View File

@@ -426,7 +426,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1226</width> <width>1226</width>
<height>493</height> <height>509</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="sendToLayout"> <layout class="QVBoxLayout" name="sendToLayout">
@@ -1338,14 +1338,188 @@
<attribute name="title"> <attribute name="title">
<string>HushChat</string> <string>HushChat</string>
</attribute> </attribute>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="1" rowspan="4">
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_18" stretch="0,0,0,0">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>15</number>
</property>
<item>
<widget class="QPushButton" name="pushContact">
<property name="minimumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="baseSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Incoming contact request</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../application.qrc">
<normaloff>:/icons/res/requestBlack.png</normaloff>:/icons/res/requestBlack.png</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>45</height>
</size>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="safeContactRequest">
<property name="minimumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="baseSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Add a new contact</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="Dark">
<normalon>:/icons/res/addContactBlack.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>45</height>
</size>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="givemeZaddr">
<property name="minimumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="toolTip">
<string>Get a new Address</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../application.qrc">
<normaloff>:/icons/res/getAddrBlack.png</normaloff>:/icons/res/getAddrBlack.png</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>45</height>
</size>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>100</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_39">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>300</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Contactlist&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="listContactWidget"> <widget class="QListView" name="listContactWidget">
<property name="geometry"> <property name="sizePolicy">
<rect> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<x>0</x> <horstretch>0</horstretch>
<y>120</y> <verstretch>0</verstretch>
<width>341</width> </sizepolicy>
<height>521</height>
</rect>
</property> </property>
<property name="mouseTracking"> <property name="mouseTracking">
<bool>true</bool> <bool>true</bool>
@@ -1366,59 +1540,34 @@
<enum>QAbstractItemView::SelectItems</enum> <enum>QAbstractItemView::SelectItems</enum>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_39"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>0</x> <item row="0" column="5" rowspan="4">
<y>100</y> <layout class="QVBoxLayout" name="verticalLayout_11">
<width>341</width> <property name="sizeConstraint">
<height>20</height> <enum>QLayout::SetDefaultConstraint</enum>
</rect> </property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_19">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item alignment="Qt::AlignLeft">
<widget class="QLabel" name="contactNameMemo_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Contactlist&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Contact Name :&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="ChatMemoEdit" name="memoTxtChat">
<property name="geometry">
<rect>
<x>340</x>
<y>560</y>
<width>921</width>
<height>81</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">font: 11pt &quot;Noto Color Emoji&quot;;</string>
</property>
<property name="autoFormatting">
<set>QTextEdit::AutoNone</set>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::FixedPixelWidth</enum>
</property>
<property name="lineWrapColumnOrWidth">
<number>600</number>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextEditorInteraction</set>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="contactNameMemo"> <widget class="QLabel" name="contactNameMemo">
<property name="geometry">
<rect>
<x>460</x>
<y>20</y>
<width>291</width>
<height>20</height>
</rect>
</property>
<property name="font"> <property name="font">
<font> <font>
<weight>75</weight> <weight>75</weight>
@@ -1429,66 +1578,45 @@
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="sendChatButton"> </item>
<property name="geometry"> <item>
<rect> <spacer name="horizontalSpacer_9">
<x>1160</x> <property name="orientation">
<y>560</y> <enum>Qt::Horizontal</enum>
<width>91</width>
<height>81</height>
</rect>
</property> </property>
<property name="baseSize"> <property name="sizeHint" stdset="0">
<size> <size>
<width>100</width> <width>40</width>
<height>0</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/icons/res/sendBlack.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>49</height>
</size>
</property>
<property name="default">
<bool>false</bool>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="contactNameMemo_3">
<property name="geometry">
<rect>
<x>340</x>
<y>20</y>
<width>111</width>
<height>20</height> <height>20</height>
</rect> </size>
</property>
</spacer>
</item>
<item alignment="Qt::AlignRight|Qt::AlignVCenter">
<widget class="QCheckBox" name="decryptionMessage">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Contact Name :&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>Message encryption/decryption ON</string>
</property> </property>
</widget> </widget>
</item>
</layout>
</item>
<item>
<widget class="QListView" name="listChat"> <widget class="QListView" name="listChat">
<property name="geometry"> <property name="sizePolicy">
<rect> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<x>340</x> <horstretch>0</horstretch>
<y>40</y> <verstretch>0</verstretch>
<width>921</width> </sizepolicy>
<height>521</height>
</rect>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>The locks shows you the status of the message. Red lock = unconfirmed, green lock = min. 1 confirmations, orange lock = message is notarized</string> <string>The locks shows you the status of the message. Red lock = unconfirmed, green lock = min. 1 confirmations, orange lock = message is notarized</string>
@@ -1533,74 +1661,55 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="safeContactRequest"> </item>
<property name="geometry"> <item>
<rect> <layout class="QHBoxLayout" name="horizontalLayout_23">
<x>10</x> <property name="sizeConstraint">
<y>20</y> <enum>QLayout::SetDefaultConstraint</enum>
<width>51</width>
<height>51</height>
</rect>
</property> </property>
<property name="minimumSize"> <property name="bottomMargin">
<size> <number>0</number>
<width>51</width>
<height>51</height>
</size>
</property> </property>
<property name="maximumSize"> <item>
<size> <widget class="ChatMemoEdit" name="memoTxtChat">
<width>51</width> <property name="sizePolicy">
<height>51</height> <sizepolicy hsizetype="Expanding" vsizetype="Maximum">
</size> <horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="baseSize"> <property name="autoFillBackground">
<size> <bool>false</bool>
<width>100</width>
<height>0</height>
</size>
</property> </property>
<property name="toolTip"> <property name="styleSheet">
<string>Add a new contact</string> <string notr="true">font: 11pt &quot;Noto Color Emoji&quot;;</string>
</property> </property>
<property name="text"> <property name="autoFormatting">
<string/> <set>QTextEdit::AutoNone</set>
</property> </property>
<property name="icon"> <property name="lineWrapMode">
<iconset theme="Dark"> <enum>QTextEdit::WidgetWidth</enum>
<normalon>:/icons/res/addContactBlack.png</normalon>
</iconset>
</property> </property>
<property name="iconSize"> <property name="lineWrapColumnOrWidth">
<size> <number>600</number>
<width>50</width>
<height>45</height>
</size>
</property> </property>
<property name="flat"> <property name="readOnly">
<bool>true</bool> <bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextEditorInteraction</set>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushContact"> </item>
<property name="geometry"> <item>
<rect> <layout class="QVBoxLayout" name="verticalLayout_7">
<x>80</x> <item alignment="Qt::AlignBottom">
<y>20</y> <widget class="QPushButton" name="sendChatButton">
<width>51</width> <property name="sizePolicy">
<height>51</height> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
</rect> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="minimumSize"> </sizepolicy>
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property> </property>
<property name="baseSize"> <property name="baseSize">
<size> <size>
@@ -1608,9 +1717,6 @@
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="toolTip">
<string>Incoming contact request</string>
</property>
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>false</bool> <bool>false</bool>
</property> </property>
@@ -1618,68 +1724,31 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../application.qrc"> <iconset>
<normaloff>:/icons/res/requestBlack.png</normaloff>:/icons/res/requestBlack.png</iconset> <normalon>:/icons/res/sendBlack.png</normalon>
</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>50</width> <width>50</width>
<height>45</height> <height>49</height>
</size>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="givemeZaddr">
<property name="geometry">
<rect>
<x>150</x>
<y>20</y>
<width>51</width>
<height>51</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>51</width>
<height>51</height>
</size>
</property>
<property name="toolTip">
<string>Get a new Address</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../application.qrc">
<normaloff>:/icons/res/getAddrBlack.png</normaloff>:/icons/res/getAddrBlack.png</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>45</height>
</size> </size>
</property> </property>
<property name="default">
<bool>false</bool>
</property>
<property name="flat"> <property name="flat">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="memoSizeChat"> <widget class="QLabel" name="memoSizeChat">
<property name="geometry"> <property name="sizePolicy">
<rect> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<x>1140</x> <horstretch>0</horstretch>
<y>640</y> <verstretch>0</verstretch>
<width>91</width> </sizepolicy>
<height>17</height>
</rect>
</property> </property>
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Sunken</enum> <enum>QFrame::Sunken</enum>
@@ -1691,31 +1760,14 @@
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="decryptionMessage"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>900</x> </layout>
<y>10</y> </item>
<width>281</width> </layout>
<height>23</height> </item>
</rect> </layout>
</property>
<property name="text">
<string>Message encryption/decryption ON</string>
</property>
</widget>
<zorder>listContactWidget</zorder>
<zorder>label_39</zorder>
<zorder>contactNameMemo</zorder>
<zorder>contactNameMemo_3</zorder>
<zorder>safeContactRequest</zorder>
<zorder>pushContact</zorder>
<zorder>givemeZaddr</zorder>
<zorder>memoSizeChat</zorder>
<zorder>listChat</zorder>
<zorder>memoTxtChat</zorder>
<zorder>sendChatButton</zorder>
<zorder>decryptionMessage</zorder>
</widget> </widget>
</widget> </widget>
</item> </item>