show timestamp of incoming contact request #194

This commit is contained in:
DenioD
2020-09-10 19:17:17 +02:00
parent fcd2fc634b
commit 89579022ef
2 changed files with 573 additions and 450 deletions

View File

@@ -112,33 +112,45 @@ void MainWindow::renderContactRequest(){
///////// Tableview for incoming contact request
QStandardItemModel* contactRequest = new QStandardItemModel(); int requestsize = DataStore::getChatDataStore()->getAllNewContactRequests().size();
requestContact.requestContact->setRowCount(requestsize);
requestContact.requestContact->setColumnCount(2);
QStringList request_TableHeader;
request_TableHeader<<"Address"<<"Date";
requestContact.requestContact->setHorizontalHeaderLabels(request_TableHeader);
requestContact.requestContact->setShowGrid(false);
requestContact.requestContact->setEditTriggers(QAbstractItemView::NoEditTriggers);
requestContact.requestContact->setSelectionBehavior(QAbstractItemView::SelectRows);
requestContact.requestContact->setSelectionMode(QAbstractItemView::SingleSelection);
requestContact.requestContact->setColumnWidth(0,205);
int i=0;
for (auto &c : DataStore::getChatDataStore()->getAllNewContactRequests()) for (auto &c : DataStore::getChatDataStore()->getAllNewContactRequests())
{ {
QStandardItem* Items = new QStandardItem(QString(c.second.getRequestZaddr())); int timestamp = c.second.getTimestamp();
contactRequest->appendRow(Items); QDateTime myDateTime;
requestContact.requestContact->setModel(contactRequest); myDateTime.setTime_t(timestamp);
Items->setData(QIcon(addnewAddrIcon),Qt::DecorationRole); QString timestamphtml = myDateTime.toString("yyyy-MM-dd");
requestContact.requestContact->setIconSize(QSize(40,50));
requestContact.requestContact->setUniformItemSizes(true); requestContact.requestContact->setItem(i, 0, new QTableWidgetItem(c.second.getRequestZaddr()));
requestContact.requestContact->show(); requestContact.requestContact->setItem(i, 1, new QTableWidgetItem(timestamphtml));
requestContact.zaddrnew->setVisible(false); requestContact.zaddrnew->setVisible(false);
requestContact.zaddrnew->setText(c.second.getRequestZaddr()); requestContact.zaddrnew->setText(c.second.getRequestZaddr());
requestContact.requestContact->sortByColumn(1, Qt::DescendingOrder);
i++;
}
QStandardItemModel* contactRequestOld = new QStandardItemModel();
} for (auto &c : DataStore::getChatDataStore()->getAllOldContactRequests())
QStandardItemModel* contactRequestOld = new QStandardItemModel();
for (auto &c : DataStore::getChatDataStore()->getAllOldContactRequests())
{ {
QStandardItem* Items = new QStandardItem(c.second.getContact()); QStandardItem* Items = new QStandardItem(c.second.getContact());
contactRequestOld->appendRow(Items); contactRequestOld->appendRow(Items);
@@ -146,11 +158,8 @@ void MainWindow::renderContactRequest(){
requestContact.zaddrold->setVisible(false); requestContact.zaddrold->setVisible(false);
requestContact.zaddrold->setText(c.second.getRequestZaddr()); requestContact.zaddrold->setText(c.second.getRequestZaddr());
} }
QObject::connect(requestContact.requestContact, &QTableView::clicked, [&] () { QObject::connect(requestContact.requestContact, &QTableView::clicked, [&] () {
for (auto &c : DataStore::getChatDataStore()->getAllRawChatItems()){ for (auto &c : DataStore::getChatDataStore()->getAllRawChatItems()){
@@ -158,10 +167,6 @@ void MainWindow::renderContactRequest(){
QString label_contact = index.data(Qt::DisplayRole).toString(); QString label_contact = index.data(Qt::DisplayRole).toString();
QStandardItemModel* contactMemo = new QStandardItemModel(); QStandardItemModel* contactMemo = new QStandardItemModel();
if ((c.second.isOutgoing() == false) && (label_contact == c.second.getRequestZaddr() && (c.second.getMemo().startsWith("{") == false))) if ((c.second.isOutgoing() == false) && (label_contact == c.second.getRequestZaddr() && (c.second.getMemo().startsWith("{") == false)))
{ {
@@ -184,8 +189,6 @@ void MainWindow::renderContactRequest(){
}); });
QObject::connect(requestContact.requestContactOld, &QTableView::clicked, [&] () { QObject::connect(requestContact.requestContactOld, &QTableView::clicked, [&] () {
for (auto &c : DataStore::getChatDataStore()->getAllRawChatItems()){ for (auto &c : DataStore::getChatDataStore()->getAllRawChatItems()){
@@ -212,8 +215,6 @@ void MainWindow::renderContactRequest(){
} }
} }
}); });
QObject::connect(requestContact.pushButton, &QPushButton::clicked, [&] () { QObject::connect(requestContact.pushButton, &QPushButton::clicked, [&] () {
@@ -247,8 +248,6 @@ void MainWindow::renderContactRequest(){
); );
return; return;
} }
AddressBook::getInstance()->addAddressLabel(newLabel, addr, myAddr, cid, avatar); AddressBook::getInstance()->addAddressLabel(newLabel, addr, myAddr, cid, avatar);
rpc->refreshContacts( rpc->refreshContacts(
ui->listContactWidget); ui->listContactWidget);

View File

@@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>850</width> <width>764</width>
<height>495</height> <height>495</height>
</rect> </rect>
</property> </property>
@@ -18,438 +18,562 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>850</width> <width>600</width>
<height>495</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>764</width>
<height>495</height> <height>495</height>
</size> </size>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Incoming Contact Request</string> <string>Incoming Contact Request</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <widget class="QLabel" name="label_3">
<item row="0" column="1"> <property name="geometry">
<widget class="QLabel" name="label_3"> <rect>
<property name="text"> <x>360</x>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Memo of the request&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <y>10</y>
</property> <width>151</width>
</widget> <height>17</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Memo of the request&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QListView" name="requestMemo">
<property name="geometry">
<rect>
<x>355</x>
<y>32</y>
<width>400</width>
<height>231</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<height>231</height>
</size>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
</property>
<property name="modelColumn">
<number>0</number>
</property>
<property name="uniformItemSizes">
<bool>false</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>9</x>
<y>9</y>
<width>161</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Open requests from:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QListView" name="requestContactOld">
<property name="geometry">
<rect>
<x>9</x>
<y>294</y>
<width>162</width>
<height>192</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<height>190</height>
</size>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
</property>
<property name="alternatingRowColors">
<bool>false</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
</widget>
<widget class="QLineEdit" name="requestZaddr">
<property name="geometry">
<rect>
<x>299</x>
<y>328</y>
<width>450</width>
<height>25</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>450</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>351</width>
<height>25</height>
</size>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>177</x>
<y>343</y>
<width>97</width>
<height>17</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Request from:</string>
</property>
</widget>
<widget class="QLineEdit" name="requestLabel">
<property name="geometry">
<rect>
<x>299</x>
<y>399</y>
<width>142</width>
<height>25</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="maxLength">
<number>25</number>
</property>
</widget>
<widget class="QLabel" name="zaddrnew">
<property name="geometry">
<rect>
<x>480</x>
<y>461</y>
<width>16</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>628</x>
<y>461</y>
<width>127</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>Add New Contact</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
<widget class="QLabel" name="requestCID">
<property name="geometry">
<rect>
<x>417</x>
<y>461</y>
<width>16</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>177</x>
<y>430</y>
<width>233</width>
<height>17</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Choose an avatar for your contact:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>177</x>
<y>368</y>
<width>68</width>
<height>17</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>My Zaddr:</string>
</property>
</widget>
<widget class="QLabel" name="zaddrold">
<property name="geometry">
<rect>
<x>340</x>
<y>461</y>
<width>16</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
<widget class="QPushButton" name="cancel">
<property name="geometry">
<rect>
<x>542</x>
<y>461</y>
<width>80</width>
<height>25</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="baseSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Cancel</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
<widget class="QComboBox" name="comboBoxAvatar">
<property name="geometry">
<rect>
<x>417</x>
<y>430</y>
<width>106</width>
<height>25</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>106</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>106</width>
<height>25</height>
</size>
</property>
<item>
<property name="text">
<string>SDLogo</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/SDLogo.png</activeon>
</iconset>
</property>
</item> </item>
<item row="1" column="1" colspan="6"> <item>
<widget class="QListView" name="requestMemo"> <property name="text">
<property name="minimumSize"> <string>Duke</string>
<size> </property>
<width>500</width> <property name="icon">
<height>231</height> <iconset>
</size> <activeon>:/icons/res/Duke.png</activeon>
</property> </iconset>
<property name="verticalScrollBarPolicy"> </property>
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
</property>
<property name="modelColumn">
<number>0</number>
</property>
<property name="uniformItemSizes">
<bool>false</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item> </item>
<item row="0" column="0"> <item>
<widget class="QLabel" name="label"> <property name="text">
<property name="text"> <string>Denio</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Open requests&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> </property>
</property> <property name="icon">
</widget> <iconset>
<activeon>:/icons/res/Denio.png</activeon>
</iconset>
</property>
</item> </item>
<item row="3" column="0" rowspan="8"> <item>
<widget class="QListView" name="requestContactOld"> <property name="text">
<property name="sizePolicy"> <string>Berg</string>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Berg.png</activeon>
</property> </iconset>
<property name="minimumSize"> </property>
<size>
<width>225</width>
<height>190</height>
</size>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
</property>
<property name="alternatingRowColors">
<bool>false</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
</widget>
</item> </item>
<item row="4" column="4" colspan="3"> <item>
<widget class="QLineEdit" name="requestZaddr"> <property name="text">
<property name="minimumSize"> <string>Sharpee</string>
<size> </property>
<width>351</width> <property name="icon">
<height>25</height> <iconset>
</size> <activeon>:/icons/res/Sharpee.png</activeon>
</property> </iconset>
<property name="maximumSize"> </property>
<size>
<width>351</width>
<height>25</height>
</size>
</property>
</widget>
</item> </item>
<item row="4" column="1" colspan="3"> <item>
<widget class="QLabel" name="label_8"> <property name="text">
<property name="sizePolicy"> <string>Elsa</string>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <normalon>:/icons/res/Elsa.png</normalon>
</property> </iconset>
<property name="text"> </property>
<string>Request from:</string>
</property>
</widget>
</item> </item>
<item row="6" column="4" colspan="2"> <item>
<widget class="QLineEdit" name="requestLabel"> <property name="text">
<property name="sizePolicy"> <string>Yoda</string>
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Yoda.png</activeon>
</property> </iconset>
<property name="minimumSize"> </property>
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="maxLength">
<number>25</number>
</property>
</widget>
</item> </item>
<item row="10" column="3"> <item>
<widget class="QLabel" name="zaddrnew"> <property name="text">
<property name="text"> <string>Garfield</string>
<string/> </property>
</property> <property name="icon">
</widget> <iconset>
<activeon>:/icons/res/Garfield.png</activeon>
</iconset>
</property>
</item> </item>
<item row="10" column="6"> <item>
<widget class="QPushButton" name="pushButton"> <property name="text">
<property name="text"> <string>Snoopy</string>
<string>Add New Contact</string> </property>
</property> <property name="icon">
<property name="autoDefault"> <iconset>
<bool>false</bool> <activeon>:/icons/res/Snoopy.png</activeon>
</property> </iconset>
</widget> </property>
</item> </item>
<item row="10" column="2"> <item>
<widget class="QLabel" name="requestCID"> <property name="text">
<property name="text"> <string>Popey</string>
<string/> </property>
</property> <property name="icon">
</widget> <iconset>
<activeon>:/icons/res/Popey.png</activeon>
</iconset>
</property>
</item> </item>
<item row="7" column="1" colspan="3"> <item>
<widget class="QLabel" name="label_6"> <property name="text">
<property name="sizePolicy"> <string>Pinguin</string>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Pinguin.png</activeon>
</property> </iconset>
<property name="text"> </property>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Choose an avatar for your contact:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item> </item>
<item row="5" column="1" colspan="2"> <item>
<widget class="QLabel" name="label_7"> <property name="text">
<property name="sizePolicy"> <string>Mickey</string>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Mickey.png</activeon>
</property> </iconset>
<property name="text"> </property>
<string>My Zaddr:</string>
</property>
</widget>
</item> </item>
<item row="10" column="1"> <item>
<widget class="QLabel" name="zaddrold"> <property name="text">
<property name="text"> <string>Stag</string>
<string notr="true"/> </property>
</property> <property name="icon">
</widget> <iconset>
<activeon>:/icons/res/Stag.png</activeon>
</iconset>
</property>
</item> </item>
<item row="10" column="5"> </widget>
<widget class="QPushButton" name="cancel"> <widget class="QLabel" name="label_2">
<property name="sizePolicy"> <property name="geometry">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <rect>
<horstretch>0</horstretch> <x>9</x>
<verstretch>0</verstretch> <y>271</y>
</sizepolicy> <width>179</width>
</property> <height>17</height>
<property name="baseSize"> </rect>
<size> </property>
<width>100</width> <property name="text">
<height>0</height> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Recently closed requests&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</size> </property>
</property> </widget>
<property name="text"> <widget class="QLabel" name="label_4">
<string>Cancel</string> <property name="geometry">
</property> <rect>
<property name="autoDefault"> <x>177</x>
<bool>false</bool> <y>294</y>
</property> <width>157</width>
<property name="flat"> <height>17</height>
<bool>false</bool> </rect>
</property> </property>
</widget> <property name="sizePolicy">
</item> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<item row="7" column="4"> <horstretch>0</horstretch>
<widget class="QComboBox" name="comboBoxAvatar"> <verstretch>0</verstretch>
<property name="minimumSize"> </sizepolicy>
<size> </property>
<width>106</width> <property name="text">
<height>25</height> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Details of the request&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</size> </property>
</property> </widget>
<property name="maximumSize"> <widget class="QLabel" name="label_5">
<size> <property name="geometry">
<width>106</width> <rect>
<height>25</height> <x>177</x>
</size> <y>399</y>
</property> <width>116</width>
<item> <height>17</height>
<property name="text"> </rect>
<string>SDLogo</string> </property>
</property> <property name="sizePolicy">
<property name="icon"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<iconset> <horstretch>0</horstretch>
<activeon>:/icons/res/SDLogo.png</activeon> <verstretch>0</verstretch>
</iconset> </sizepolicy>
</property> </property>
</item> <property name="text">
<item> <string>Give a Nickname:</string>
<property name="text"> </property>
<string>Duke</string> </widget>
</property> <widget class="QLineEdit" name="requestMyAddr">
<property name="icon"> <property name="geometry">
<iconset> <rect>
<activeon>:/icons/res/Duke.png</activeon> <x>299</x>
</iconset> <y>368</y>
</property> <width>450</width>
</item> <height>25</height>
<item> </rect>
<property name="text"> </property>
<string>Denio</string> <property name="minimumSize">
</property> <size>
<property name="icon"> <width>450</width>
<iconset> <height>25</height>
<activeon>:/icons/res/Denio.png</activeon> </size>
</iconset> </property>
</property> <property name="maximumSize">
</item> <size>
<item> <width>351</width>
<property name="text"> <height>25</height>
<string>Berg</string> </size>
</property> </property>
<property name="icon"> </widget>
<iconset> <widget class="QTableWidget" name="requestContact">
<activeon>:/icons/res/Berg.png</activeon> <property name="geometry">
</iconset> <rect>
</property> <x>9</x>
</item> <y>32</y>
<item> <width>321</width>
<property name="text"> <height>231</height>
<string>Sharpee</string> </rect>
</property> </property>
<property name="icon"> <property name="minimumSize">
<iconset> <size>
<activeon>:/icons/res/Sharpee.png</activeon> <width>150</width>
</iconset> <height>231</height>
</property> </size>
</item> </property>
<item> <property name="mouseTracking">
<property name="text"> <bool>true</bool>
<string>Elsa</string> </property>
</property> <property name="editTriggers">
<property name="icon"> <set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
<iconset> </property>
<normalon>:/icons/res/Elsa.png</normalon> <property name="alternatingRowColors">
</iconset> <bool>false</bool>
</property> </property>
</item> <property name="selectionMode">
<item> <enum>QAbstractItemView::SingleSelection</enum>
<property name="text"> </property>
<string>Yoda</string> </widget>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Yoda.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Garfield</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Garfield.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Snoopy</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Snoopy.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Popey</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Popey.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Pinguin</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Pinguin.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Mickey</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Mickey.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Stag</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Stag.png</activeon>
</iconset>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QListView" name="requestContact">
<property name="minimumSize">
<size>
<width>225</width>
<height>231</height>
</size>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
</property>
<property name="alternatingRowColors">
<bool>false</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Recently closed requests&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3">
<widget class="QLabel" name="label_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline;&quot;&gt;Details of the request&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="6" column="1" colspan="3">
<widget class="QLabel" name="label_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Give a Nickname:</string>
</property>
</widget>
</item>
<item row="5" column="4" colspan="3">
<widget class="QLineEdit" name="requestMyAddr">
<property name="minimumSize">
<size>
<width>351</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>351</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>