@@ -8,6 +8,7 @@
|
||||
#include "ui_mainwindow.h"
|
||||
#include "addressbook.h"
|
||||
#include "ui_memodialog.h"
|
||||
#include "ui_contactrequest.h"
|
||||
#include "addressbook.h"
|
||||
#include <QUuid>
|
||||
#include <bits/stdc++.h>
|
||||
@@ -122,7 +123,7 @@ void ChatModel::renderChatBox(Ui::MainWindow* ui, QListView *view)
|
||||
{
|
||||
|
||||
QStandardItem* Items = new QStandardItem(c.second.toChatLine());
|
||||
Items->setData("Incoming", Qt::UserRole +1);
|
||||
Items->setData("Outgoing", Qt::UserRole +1);
|
||||
chat->appendRow(Items);
|
||||
|
||||
ui->listChat->setModel(chat);
|
||||
@@ -141,7 +142,7 @@ void ChatModel::renderChatBox(Ui::MainWindow* ui, QListView *view)
|
||||
{
|
||||
|
||||
QStandardItem* Items1 = new QStandardItem(c.second.toChatLine());
|
||||
Items1->setData("Outgoing", Qt::UserRole +1);
|
||||
Items1->setData("Incoming", Qt::UserRole +1);
|
||||
chat->appendRow(Items1);
|
||||
}
|
||||
|
||||
@@ -423,6 +424,15 @@ Tx MainWindow::createTxForSafeContactRequest() {
|
||||
//////////////////De-activated for now///////////////////
|
||||
void MainWindow::safeContactRequest() {
|
||||
|
||||
|
||||
// Ui_ContactRequest contactRequest;
|
||||
// QDialog dialog(this);
|
||||
// contactRequest.setupUi(&dialog);
|
||||
// Settings::saveRestore(&dialog);
|
||||
|
||||
// memoDialog.memoTxt->setLenDisplayLabel(memoDialog.memoSize);
|
||||
// memoDialog.memoTxt->setAcceptButton(memoDialog.buttonBox->button(QDialogButtonBox::Ok));
|
||||
|
||||
////////////////////////////Todo: Check if its a zaddr//////////
|
||||
|
||||
// Create a Tx from the values on the send tab. Note that this Tx object
|
||||
|
||||
@@ -15,7 +15,7 @@ void ContactModel::renderContactList(QListView* view)
|
||||
QStandardItem* Items1 = new QStandardItem(QIcon("res/sdlogo.png"),c.getName());
|
||||
contact->appendRow(Items1);
|
||||
view->setModel(contact);
|
||||
view->setIconSize(QSize(80,100));
|
||||
view->setIconSize(QSize(60,70));
|
||||
view->setUniformItemSizes(true);
|
||||
view->setDragDropMode(QAbstractItemView::DropOnly);;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ void ContactModel::renderContactList(QListView* view)
|
||||
QStandardItem* Items1 = new QStandardItem(QIcon("res/sdlogo2.png"),c.getName());
|
||||
contact->appendRow(Items1);
|
||||
view->setModel(contact);
|
||||
view->setIconSize(QSize(80,100));
|
||||
view->setIconSize(QSize(60,70));
|
||||
view->setUniformItemSizes(true);
|
||||
view->setDragDropMode(QAbstractItemView::DropOnly);;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
#ifndef CONTACTMODEL_H
|
||||
#define CONTACTMODEL_H
|
||||
|
||||
|
||||
72
src/contactrequest.ui
Normal file
72
src/contactrequest.ui
Normal file
@@ -0,0 +1,72 @@
|
||||
<ui version="4.0" >
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>Dialog</class>
|
||||
<widget class="QDialog" name="Dialog" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<widget class="QDialogButtonBox" name="buttonBox" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>30</x>
|
||||
<y>240</y>
|
||||
<width>341</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons" >
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>Dialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>Dialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user