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,384 +1338,436 @@
<attribute name="title"> <attribute name="title">
<string>HushChat</string> <string>HushChat</string>
</attribute> </attribute>
<widget class="QListView" name="listContactWidget"> <layout class="QGridLayout" name="gridLayout_7">
<property name="geometry"> <item row="0" column="1" rowspan="4">
<rect> <layout class="QVBoxLayout" name="verticalLayout_6">
<x>0</x> <item>
<y>120</y> <layout class="QHBoxLayout" name="horizontalLayout_18" stretch="0,0,0,0">
<width>341</width> <property name="sizeConstraint">
<height>521</height> <enum>QLayout::SetDefaultConstraint</enum>
</rect> </property>
</property> <property name="leftMargin">
<property name="mouseTracking"> <number>0</number>
<bool>true</bool> </property>
</property> <property name="rightMargin">
<property name="editTriggers"> <number>0</number>
<set>QAbstractItemView::NoEditTriggers</set> </property>
</property> <property name="bottomMargin">
<property name="showDropIndicator" stdset="0"> <number>15</number>
<bool>false</bool> </property>
</property> <item>
<property name="alternatingRowColors"> <widget class="QPushButton" name="pushContact">
<bool>false</bool> <property name="minimumSize">
</property> <size>
<property name="selectionMode"> <width>51</width>
<enum>QAbstractItemView::SingleSelection</enum> <height>51</height>
</property> </size>
<property name="selectionBehavior"> </property>
<enum>QAbstractItemView::SelectItems</enum> <property name="maximumSize">
</property> <size>
</widget> <width>51</width>
<widget class="QLabel" name="label_39"> <height>51</height>
<property name="geometry"> </size>
<rect> </property>
<x>0</x> <property name="baseSize">
<y>100</y> <size>
<width>341</width> <width>100</width>
<height>20</height> <height>0</height>
</rect> </size>
</property> </property>
<property name="text"> <property name="toolTip">
<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>Incoming contact request</string>
</property> </property>
</widget> <property name="autoFillBackground">
<widget class="ChatMemoEdit" name="memoTxtChat"> <bool>false</bool>
<property name="geometry"> </property>
<rect> <property name="text">
<x>340</x> <string/>
<y>560</y> </property>
<width>921</width> <property name="icon">
<height>81</height> <iconset resource="../application.qrc">
</rect> <normaloff>:/icons/res/requestBlack.png</normaloff>:/icons/res/requestBlack.png</iconset>
</property> </property>
<property name="autoFillBackground"> <property name="iconSize">
<bool>false</bool> <size>
</property> <width>50</width>
<property name="styleSheet"> <height>45</height>
<string notr="true">font: 11pt &quot;Noto Color Emoji&quot;;</string> </size>
</property> </property>
<property name="autoFormatting"> <property name="flat">
<set>QTextEdit::AutoNone</set> <bool>true</bool>
</property> </property>
<property name="lineWrapMode"> </widget>
<enum>QTextEdit::FixedPixelWidth</enum> </item>
</property> <item>
<property name="lineWrapColumnOrWidth"> <widget class="QPushButton" name="safeContactRequest">
<number>600</number> <property name="minimumSize">
</property> <size>
<property name="readOnly"> <width>51</width>
<bool>false</bool> <height>51</height>
</property> </size>
<property name="textInteractionFlags"> </property>
<set>Qt::TextEditorInteraction</set> <property name="maximumSize">
</property> <size>
</widget> <width>51</width>
<widget class="QLabel" name="contactNameMemo"> <height>51</height>
<property name="geometry"> </size>
<rect> </property>
<x>460</x> <property name="baseSize">
<y>20</y> <size>
<width>291</width> <width>100</width>
<height>20</height> <height>0</height>
</rect> </size>
</property> </property>
<property name="font"> <property name="toolTip">
<font> <string>Add a new contact</string>
<weight>75</weight> </property>
<bold>true</bold> <property name="text">
</font> <string/>
</property> </property>
<property name="text"> <property name="icon">
<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> <iconset theme="Dark">
</property> <normalon>:/icons/res/addContactBlack.png</normalon>
</widget> </iconset>
<widget class="QPushButton" name="sendChatButton"> </property>
<property name="geometry"> <property name="iconSize">
<rect> <size>
<x>1160</x> <width>50</width>
<y>560</y> <height>45</height>
<width>91</width> </size>
<height>81</height> </property>
</rect> <property name="flat">
</property> <bool>true</bool>
<property name="baseSize"> </property>
<size> </widget>
<width>100</width> </item>
<height>0</height> <item>
</size> <widget class="QPushButton" name="givemeZaddr">
</property> <property name="minimumSize">
<property name="autoFillBackground"> <size>
<bool>false</bool> <width>51</width>
</property> <height>51</height>
<property name="text"> </size>
<string/> </property>
</property> <property name="maximumSize">
<property name="icon"> <size>
<iconset> <width>51</width>
<normalon>:/icons/res/sendBlack.png</normalon> <height>51</height>
</iconset> </size>
</property> </property>
<property name="iconSize"> <property name="toolTip">
<size> <string>Get a new Address</string>
<width>50</width> </property>
<height>49</height> <property name="text">
</size> <string/>
</property> </property>
<property name="default"> <property name="icon">
<bool>false</bool> <iconset resource="../application.qrc">
</property> <normaloff>:/icons/res/getAddrBlack.png</normaloff>:/icons/res/getAddrBlack.png</iconset>
<property name="flat"> </property>
<bool>true</bool> <property name="iconSize">
</property> <size>
</widget> <width>50</width>
<widget class="QLabel" name="contactNameMemo_3"> <height>45</height>
<property name="geometry"> </size>
<rect> </property>
<x>340</x> <property name="flat">
<y>20</y> <bool>true</bool>
<width>111</width> </property>
<height>20</height> </widget>
</rect> </item>
</property> <item>
<property name="text"> <spacer name="horizontalSpacer_10">
<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 name="orientation">
</property> <enum>Qt::Horizontal</enum>
</widget> </property>
<widget class="QListView" name="listChat"> <property name="sizeType">
<property name="geometry"> <enum>QSizePolicy::Preferred</enum>
<rect> </property>
<x>340</x> <property name="sizeHint" stdset="0">
<y>40</y> <size>
<width>921</width> <width>100</width>
<height>521</height> <height>20</height>
</rect> </size>
</property> </property>
<property name="toolTip"> </spacer>
<string>The locks shows you the status of the message. Red lock = unconfirmed, green lock = min. 1 confirmations, orange lock = message is notarized</string> </item>
</property> </layout>
<property name="verticalScrollBarPolicy"> </item>
<enum>Qt::ScrollBarAsNeeded</enum> <item>
</property> <widget class="QLabel" name="label_39">
<property name="horizontalScrollBarPolicy"> <property name="sizePolicy">
<enum>Qt::ScrollBarAsNeeded</enum> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</property> <horstretch>0</horstretch>
<property name="sizeAdjustPolicy"> <verstretch>0</verstretch>
<enum>QAbstractScrollArea::AdjustToContents</enum> </sizepolicy>
</property> </property>
<property name="autoScroll"> <property name="minimumSize">
<bool>true</bool> <size>
</property> <width>300</width>
<property name="editTriggers"> <height>0</height>
<set>QAbstractItemView::NoEditTriggers</set> </size>
</property> </property>
<property name="selectionMode"> <property name="text">
<enum>QAbstractItemView::ContiguousSelection</enum> <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> </property>
<property name="verticalScrollMode"> </widget>
<enum>QAbstractItemView::ScrollPerItem</enum> </item>
</property> <item>
<property name="movement"> <widget class="QListView" name="listContactWidget">
<enum>QListView::Snap</enum> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<property name="resizeMode"> <horstretch>0</horstretch>
<enum>QListView::Adjust</enum> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="modelColumn"> </property>
<number>0</number> <property name="mouseTracking">
</property> <bool>true</bool>
<property name="uniformItemSizes"> </property>
<bool>false</bool> <property name="editTriggers">
</property> <set>QAbstractItemView::NoEditTriggers</set>
<property name="wordWrap"> </property>
<bool>true</bool> <property name="showDropIndicator" stdset="0">
</property> <bool>false</bool>
<property name="selectionRectVisible"> </property>
<bool>true</bool> <property name="alternatingRowColors">
</property> <bool>false</bool>
</widget> </property>
<widget class="QPushButton" name="safeContactRequest"> <property name="selectionMode">
<property name="geometry"> <enum>QAbstractItemView::SingleSelection</enum>
<rect> </property>
<x>10</x> <property name="selectionBehavior">
<y>20</y> <enum>QAbstractItemView::SelectItems</enum>
<width>51</width> </property>
<height>51</height> </widget>
</rect> </item>
</property> </layout>
<property name="minimumSize"> </item>
<size> <item row="0" column="5" rowspan="4">
<width>51</width> <layout class="QVBoxLayout" name="verticalLayout_11">
<height>51</height> <property name="sizeConstraint">
</size> <enum>QLayout::SetDefaultConstraint</enum>
</property> </property>
<property name="maximumSize"> <item>
<size> <layout class="QHBoxLayout" name="horizontalLayout_19">
<width>51</width> <property name="sizeConstraint">
<height>51</height> <enum>QLayout::SetDefaultConstraint</enum>
</size> </property>
</property> <item alignment="Qt::AlignLeft">
<property name="baseSize"> <widget class="QLabel" name="contactNameMemo_3">
<size> <property name="sizePolicy">
<width>100</width> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<height>0</height> <horstretch>0</horstretch>
</size> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="toolTip"> </property>
<string>Add a new contact</string> <property name="text">
</property> <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 name="text"> </property>
<string/> </widget>
</property> </item>
<property name="icon"> <item>
<iconset theme="Dark"> <widget class="QLabel" name="contactNameMemo">
<normalon>:/icons/res/addContactBlack.png</normalon> <property name="font">
</iconset> <font>
</property> <weight>75</weight>
<property name="iconSize"> <bold>true</bold>
<size> </font>
<width>50</width> </property>
<height>45</height> <property name="text">
</size> <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>
<property name="flat"> </widget>
<bool>true</bool> </item>
</property> <item>
</widget> <spacer name="horizontalSpacer_9">
<widget class="QPushButton" name="pushContact"> <property name="orientation">
<property name="geometry"> <enum>Qt::Horizontal</enum>
<rect> </property>
<x>80</x> <property name="sizeHint" stdset="0">
<y>20</y> <size>
<width>51</width> <width>40</width>
<height>51</height> <height>20</height>
</rect> </size>
</property> </property>
<property name="minimumSize"> </spacer>
<size> </item>
<width>51</width> <item alignment="Qt::AlignRight|Qt::AlignVCenter">
<height>51</height> <widget class="QCheckBox" name="decryptionMessage">
</size> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<property name="maximumSize"> <horstretch>0</horstretch>
<size> <verstretch>0</verstretch>
<width>51</width> </sizepolicy>
<height>51</height> </property>
</size> <property name="layoutDirection">
</property> <enum>Qt::LeftToRight</enum>
<property name="baseSize"> </property>
<size> <property name="text">
<width>100</width> <string>Message encryption/decryption ON</string>
<height>0</height> </property>
</size> </widget>
</property> </item>
<property name="toolTip"> </layout>
<string>Incoming contact request</string> </item>
</property> <item>
<property name="autoFillBackground"> <widget class="QListView" name="listChat">
<bool>false</bool> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="text"> <horstretch>0</horstretch>
<string/> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="icon"> </property>
<iconset resource="../application.qrc"> <property name="toolTip">
<normaloff>:/icons/res/requestBlack.png</normaloff>:/icons/res/requestBlack.png</iconset> <string>The locks shows you the status of the message. Red lock = unconfirmed, green lock = min. 1 confirmations, orange lock = message is notarized</string>
</property> </property>
<property name="iconSize"> <property name="verticalScrollBarPolicy">
<size> <enum>Qt::ScrollBarAsNeeded</enum>
<width>50</width> </property>
<height>45</height> <property name="horizontalScrollBarPolicy">
</size> <enum>Qt::ScrollBarAsNeeded</enum>
</property> </property>
<property name="flat"> <property name="sizeAdjustPolicy">
<bool>true</bool> <enum>QAbstractScrollArea::AdjustToContents</enum>
</property> </property>
</widget> <property name="autoScroll">
<widget class="QPushButton" name="givemeZaddr"> <bool>true</bool>
<property name="geometry"> </property>
<rect> <property name="editTriggers">
<x>150</x> <set>QAbstractItemView::NoEditTriggers</set>
<y>20</y> </property>
<width>51</width> <property name="selectionMode">
<height>51</height> <enum>QAbstractItemView::ContiguousSelection</enum>
</rect> </property>
</property> <property name="verticalScrollMode">
<property name="minimumSize"> <enum>QAbstractItemView::ScrollPerItem</enum>
<size> </property>
<width>51</width> <property name="movement">
<height>51</height> <enum>QListView::Snap</enum>
</size> </property>
</property> <property name="resizeMode">
<property name="maximumSize"> <enum>QListView::Adjust</enum>
<size> </property>
<width>51</width> <property name="modelColumn">
<height>51</height> <number>0</number>
</size> </property>
</property> <property name="uniformItemSizes">
<property name="toolTip"> <bool>false</bool>
<string>Get a new Address</string> </property>
</property> <property name="wordWrap">
<property name="text"> <bool>true</bool>
<string/> </property>
</property> <property name="selectionRectVisible">
<property name="icon"> <bool>true</bool>
<iconset resource="../application.qrc"> </property>
<normaloff>:/icons/res/getAddrBlack.png</normaloff>:/icons/res/getAddrBlack.png</iconset> </widget>
</property> </item>
<property name="iconSize"> <item>
<size> <layout class="QHBoxLayout" name="horizontalLayout_23">
<width>50</width> <property name="sizeConstraint">
<height>45</height> <enum>QLayout::SetDefaultConstraint</enum>
</size> </property>
</property> <property name="bottomMargin">
<property name="flat"> <number>0</number>
<bool>true</bool> </property>
</property> <item>
</widget> <widget class="ChatMemoEdit" name="memoTxtChat">
<widget class="QLabel" name="memoSizeChat"> <property name="sizePolicy">
<property name="geometry"> <sizepolicy hsizetype="Expanding" vsizetype="Maximum">
<rect> <horstretch>0</horstretch>
<x>1140</x> <verstretch>0</verstretch>
<y>640</y> </sizepolicy>
<width>91</width> </property>
<height>17</height> <property name="autoFillBackground">
</rect> <bool>false</bool>
</property> </property>
<property name="frameShadow"> <property name="styleSheet">
<enum>QFrame::Sunken</enum> <string notr="true">font: 11pt &quot;Noto Color Emoji&quot;;</string>
</property> </property>
<property name="text"> <property name="autoFormatting">
<string notr="true">0 / 235</string> <set>QTextEdit::AutoNone</set>
</property> </property>
<property name="alignment"> <property name="lineWrapMode">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <enum>QTextEdit::WidgetWidth</enum>
</property> </property>
</widget> <property name="lineWrapColumnOrWidth">
<widget class="QCheckBox" name="decryptionMessage"> <number>600</number>
<property name="geometry"> </property>
<rect> <property name="readOnly">
<x>900</x> <bool>false</bool>
<y>10</y> </property>
<width>281</width> <property name="textInteractionFlags">
<height>23</height> <set>Qt::TextEditorInteraction</set>
</rect> </property>
</property> </widget>
<property name="text"> </item>
<string>Message encryption/decryption ON</string> <item>
</property> <layout class="QVBoxLayout" name="verticalLayout_7">
</widget> <item alignment="Qt::AlignBottom">
<zorder>listContactWidget</zorder> <widget class="QPushButton" name="sendChatButton">
<zorder>label_39</zorder> <property name="sizePolicy">
<zorder>contactNameMemo</zorder> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<zorder>contactNameMemo_3</zorder> <horstretch>0</horstretch>
<zorder>safeContactRequest</zorder> <verstretch>0</verstretch>
<zorder>pushContact</zorder> </sizepolicy>
<zorder>givemeZaddr</zorder> </property>
<zorder>memoSizeChat</zorder> <property name="baseSize">
<zorder>listChat</zorder> <size>
<zorder>memoTxtChat</zorder> <width>100</width>
<zorder>sendChatButton</zorder> <height>0</height>
<zorder>decryptionMessage</zorder> </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>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="memoSizeChat">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="text">
<string notr="true">0 / 235</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget> </widget>
</widget> </widget>
</item> </item>