switch sides of conversation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user