Browse Source

show timestamp of incoming contact request #194

pull/195/head
DenioD 4 years ago
parent
commit
89579022ef
  1. 73
      src/chatmodel.cpp
  2. 952
      src/requestContactDialog.ui

73
src/chatmodel.cpp

@ -91,7 +91,7 @@ QString ChatModel::Addressbylabel(QString address)
return QString("0xdeadbeef"); return QString("0xdeadbeef");
} }
void MainWindow::renderContactRequest(){ void MainWindow::renderContactRequest(){
Ui_requestDialog requestContact; Ui_requestDialog requestContact;
@ -109,58 +109,63 @@ void MainWindow::renderContactRequest(){
QPixmap unknownWhite(icon); QPixmap unknownWhite(icon);
QIcon addnewAddrIcon(unknownWhite); QIcon addnewAddrIcon(unknownWhite);
QStandardItemModel* contactRequest = new QStandardItemModel();
///////// Tableview for incoming contact request
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);
for (auto &c : DataStore::getChatDataStore()->getAllNewContactRequests()) int i=0;
for (auto &c : DataStore::getChatDataStore()->getAllNewContactRequests())
{
{ int timestamp = c.second.getTimestamp();
QDateTime myDateTime;
myDateTime.setTime_t(timestamp);
QString timestamphtml = myDateTime.toString("yyyy-MM-dd");
QStandardItem* Items = new QStandardItem(QString(c.second.getRequestZaddr())); requestContact.requestContact->setItem(i, 0, new QTableWidgetItem(c.second.getRequestZaddr()));
contactRequest->appendRow(Items); requestContact.requestContact->setItem(i, 1, new QTableWidgetItem(timestamphtml));
requestContact.requestContact->setModel(contactRequest); requestContact.zaddrnew->setVisible(false);
Items->setData(QIcon(addnewAddrIcon),Qt::DecorationRole); requestContact.zaddrnew->setText(c.second.getRequestZaddr());
requestContact.requestContact->setIconSize(QSize(40,50)); requestContact.requestContact->sortByColumn(1, Qt::DescendingOrder);
requestContact.requestContact->setUniformItemSizes(true);
requestContact.requestContact->show();
requestContact.zaddrnew->setVisible(false);
requestContact.zaddrnew->setText(c.second.getRequestZaddr());
i++;
} }
QStandardItemModel* contactRequestOld = new QStandardItemModel(); QStandardItemModel* contactRequestOld = new QStandardItemModel();
for (auto &c : DataStore::getChatDataStore()->getAllOldContactRequests()) 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);
requestContact.requestContactOld->setModel(contactRequestOld); requestContact.requestContactOld->setModel(contactRequestOld);
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()){
QModelIndex index = requestContact.requestContact->currentIndex(); QModelIndex index = requestContact.requestContact->currentIndex();
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()){
@ -210,9 +213,7 @@ void MainWindow::renderContactRequest(){
}else{ }else{
} }
} }
}); });
@ -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);

952
src/requestContactDialog.ui

@ -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>
</item> </rect>
<item row="1" column="1" colspan="6"> </property>
<widget class="QListView" name="requestMemo"> <property name="text">
<property name="minimumSize"> <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>
<size> </property>
<width>500</width> </widget>
<height>231</height> <widget class="QListView" name="requestMemo">
</size> <property name="geometry">
</property> <rect>
<property name="verticalScrollBarPolicy"> <x>355</x>
<enum>Qt::ScrollBarAlwaysOff</enum> <y>32</y>
</property> <width>400</width>
<property name="horizontalScrollBarPolicy"> <height>231</height>
<enum>Qt::ScrollBarAlwaysOff</enum> </rect>
</property> </property>
<property name="sizeAdjustPolicy"> <property name="minimumSize">
<enum>QAbstractScrollArea::AdjustToContents</enum> <size>
</property> <width>400</width>
<property name="editTriggers"> <height>231</height>
<set>QAbstractItemView::NoEditTriggers</set> </size>
</property> </property>
<property name="resizeMode"> <property name="verticalScrollBarPolicy">
<enum>QListView::Adjust</enum> <enum>Qt::ScrollBarAlwaysOff</enum>
</property> </property>
<property name="modelColumn"> <property name="horizontalScrollBarPolicy">
<number>0</number> <enum>Qt::ScrollBarAlwaysOff</enum>
</property> </property>
<property name="uniformItemSizes"> <property name="sizeAdjustPolicy">
<bool>false</bool> <enum>QAbstractScrollArea::AdjustToContents</enum>
</property> </property>
<property name="wordWrap"> <property name="editTriggers">
<bool>true</bool> <set>QAbstractItemView::NoEditTriggers</set>
</property> </property>
</widget> <property name="resizeMode">
</item> <enum>QListView::Adjust</enum>
<item row="0" column="0"> </property>
<widget class="QLabel" name="label"> <property name="modelColumn">
<property name="text"> <number>0</number>
<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="uniformItemSizes">
</widget> <bool>false</bool>
</item> </property>
<item row="3" column="0" rowspan="8"> <property name="wordWrap">
<widget class="QListView" name="requestContactOld"> <bool>true</bool>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> </widget>
<horstretch>0</horstretch> <widget class="QLabel" name="label">
<verstretch>0</verstretch> <property name="geometry">
</sizepolicy> <rect>
</property> <x>9</x>
<property name="minimumSize"> <y>9</y>
<size> <width>161</width>
<width>225</width> <height>17</height>
<height>190</height> </rect>
</size> </property>
</property> <property name="text">
<property name="mouseTracking"> <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>
<bool>true</bool> </property>
</property> </widget>
<property name="editTriggers"> <widget class="QListView" name="requestContactOld">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set> <property name="geometry">
</property> <rect>
<property name="alternatingRowColors"> <x>9</x>
<bool>false</bool> <y>294</y>
</property> <width>162</width>
<property name="selectionMode"> <height>192</height>
<enum>QAbstractItemView::SingleSelection</enum> </rect>
</property> </property>
</widget> <property name="sizePolicy">
</item> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<item row="4" column="4" colspan="3"> <horstretch>0</horstretch>
<widget class="QLineEdit" name="requestZaddr"> <verstretch>0</verstretch>
<property name="minimumSize"> </sizepolicy>
<size> </property>
<width>351</width> <property name="minimumSize">
<height>25</height> <size>
</size> <width>150</width>
</property> <height>190</height>
<property name="maximumSize"> </size>
<size> </property>
<width>351</width> <property name="mouseTracking">
<height>25</height> <bool>true</bool>
</size> </property>
</property> <property name="editTriggers">
</widget> <set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
</item> </property>
<item row="4" column="1" colspan="3"> <property name="alternatingRowColors">
<widget class="QLabel" name="label_8"> <bool>false</bool>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <property name="selectionMode">
<horstretch>0</horstretch> <enum>QAbstractItemView::SingleSelection</enum>
<verstretch>0</verstretch> </property>
</sizepolicy> </widget>
</property> <widget class="QLineEdit" name="requestZaddr">
<property name="text"> <property name="geometry">
<string>Request from:</string> <rect>
</property> <x>299</x>
</widget> <y>328</y>
</item> <width>450</width>
<item row="6" column="4" colspan="2"> <height>25</height>
<widget class="QLineEdit" name="requestLabel"> </rect>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <property name="minimumSize">
<horstretch>0</horstretch> <size>
<verstretch>0</verstretch> <width>450</width>
</sizepolicy> <height>25</height>
</property> </size>
<property name="minimumSize"> </property>
<size> <property name="maximumSize">
<width>0</width> <size>
<height>25</height> <width>351</width>
</size> <height>25</height>
</property> </size>
<property name="maxLength"> </property>
<number>25</number> </widget>
</property> <widget class="QLabel" name="label_8">
</widget> <property name="geometry">
</item> <rect>
<item row="10" column="3"> <x>177</x>
<widget class="QLabel" name="zaddrnew"> <y>343</y>
<property name="text"> <width>97</width>
<string/> <height>17</height>
</property> </rect>
</widget> </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="10" column="6"> <item>
<widget class="QPushButton" name="pushButton"> <property name="text">
<property name="text"> <string>Duke</string>
<string>Add New Contact</string> </property>
</property> <property name="icon">
<property name="autoDefault"> <iconset>
<bool>false</bool> <activeon>:/icons/res/Duke.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>Denio</string>
<string/> </property>
</property> <property name="icon">
</widget> <iconset>
<activeon>:/icons/res/Denio.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>Berg</string>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Berg.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>Sharpee</string>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Sharpee.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>Elsa</string>
<string notr="true"/> </property>
</property> <property name="icon">
</widget> <iconset>
<normalon>:/icons/res/Elsa.png</normalon>
</iconset>
</property>
</item> </item>
<item row="10" column="5"> <item>
<widget class="QPushButton" name="cancel"> <property name="text">
<property name="sizePolicy"> <string>Yoda</string>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> </property>
<horstretch>0</horstretch> <property name="icon">
<verstretch>0</verstretch> <iconset>
</sizepolicy> <activeon>:/icons/res/Yoda.png</activeon>
</property> </iconset>
<property name="baseSize"> </property>
<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>
</item> </item>
<item row="7" column="4"> <item>
<widget class="QComboBox" name="comboBoxAvatar"> <property name="text">
<property name="minimumSize"> <string>Garfield</string>
<size> </property>
<width>106</width> <property name="icon">
<height>25</height> <iconset>
</size> <activeon>:/icons/res/Garfield.png</activeon>
</property> </iconset>
<property name="maximumSize"> </property>
<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>
<property name="text">
<string>Duke</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Duke.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Denio</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Denio.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Berg</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Berg.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Sharpee</string>
</property>
<property name="icon">
<iconset>
<activeon>:/icons/res/Sharpee.png</activeon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Elsa</string>
</property>
<property name="icon">
<iconset>
<normalon>:/icons/res/Elsa.png</normalon>
</iconset>
</property>
</item>
<item>
<property name="text">
<string>Yoda</string>
</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>
<item row="1" column="0"> <item>
<widget class="QListView" name="requestContact"> <property name="text">
<property name="minimumSize"> <string>Snoopy</string>
<size> </property>
<width>225</width> <property name="icon">
<height>231</height> <iconset>
</size> <activeon>:/icons/res/Snoopy.png</activeon>
</property> </iconset>
<property name="mouseTracking"> </property>
<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="2" column="0"> <item>
<widget class="QLabel" name="label_2"> <property name="text">
<property name="text"> <string>Popey</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;Recently closed requests&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> </property>
</property> <property name="icon">
</widget> <iconset>
<activeon>:/icons/res/Popey.png</activeon>
</iconset>
</property>
</item> </item>
<item row="3" column="1" colspan="3"> <item>
<widget class="QLabel" name="label_4"> <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;&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>
<item row="6" column="1" colspan="3"> <item>
<widget class="QLabel" name="label_5"> <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>Give a Nickname:</string>
</property>
</widget>
</item> </item>
<item row="5" column="4" colspan="3"> <item>
<widget class="QLineEdit" name="requestMyAddr"> <property name="text">
<property name="minimumSize"> <string>Stag</string>
<size> </property>
<width>351</width> <property name="icon">
<height>25</height> <iconset>
</size> <activeon>:/icons/res/Stag.png</activeon>
</property> </iconset>
<property name="maximumSize"> </property>
<size>
<width>351</width>
<height>25</height>
</size>
</property>
</widget>
</item> </item>
</layout> </widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>9</x>
<y>271</y>
<width>179</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;Recently closed requests&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>177</x>
<y>294</y>
<width>157</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;&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>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>177</x>
<y>399</y>
<width>116</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>Give a Nickname:</string>
</property>
</widget>
<widget class="QLineEdit" name="requestMyAddr">
<property name="geometry">
<rect>
<x>299</x>
<y>368</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="QTableWidget" name="requestContact">
<property name="geometry">
<rect>
<x>9</x>
<y>32</y>
<width>321</width>
<height>231</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>150</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>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>

Loading…
Cancel
Save