@@ -22,10 +22,10 @@
|
|||||||
<file>res/Garfield.png</file>
|
<file>res/Garfield.png</file>
|
||||||
<file>res/Pinguin.png</file>
|
<file>res/Pinguin.png</file>
|
||||||
<file>res/Stag.png</file>
|
<file>res/Stag.png</file>
|
||||||
|
<file>res/Elsa.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/img">
|
<qresource prefix="/img">
|
||||||
<file>res/hushdlogo.gif</file>
|
<file>res/hushdlogo.gif</file>
|
||||||
<file>res/logobig.gif</file>
|
|
||||||
<file>res/silentdragonlite-animated.gif</file>
|
<file>res/silentdragonlite-animated.gif</file>
|
||||||
<file>res/silentdragonlite-animated-dark.gif</file>
|
<file>res/silentdragonlite-animated-dark.gif</file>
|
||||||
<file>res/silentdragonlite-animated-startup.gif</file>
|
<file>res/silentdragonlite-animated-startup.gif</file>
|
||||||
|
|||||||
BIN
res/Elsa.png
Normal file
BIN
res/Elsa.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
@@ -73,6 +73,16 @@
|
|||||||
</iconset>
|
</iconset>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Elsa</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normalon>:/icons/res/Elsa.png</normalon>
|
||||||
|
</iconset>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Denio</string>
|
<string>Denio</string>
|
||||||
|
|||||||
@@ -228,12 +228,13 @@ Tx MainWindow::createTxFromChatPage() {
|
|||||||
|
|
||||||
QString hmemo= createHeaderMemo(type,cid,myAddr);
|
QString hmemo= createHeaderMemo(type,cid,myAddr);
|
||||||
QString memo = ui->memoTxtChat->toPlainText().trimmed();
|
QString memo = ui->memoTxtChat->toPlainText().trimmed();
|
||||||
|
|
||||||
|
|
||||||
// ui->memoSizeChat->setLenDisplayLabel();// Todo -> activate lendisplay for chat
|
// ui->memoSizeChat->setLenDisplayLabel();// Todo -> activate lendisplay for chat
|
||||||
|
|
||||||
tx.toAddrs.push_back(ToFields{addr, amt, hmemo}) ;
|
|
||||||
|
|
||||||
tx.toAddrs.push_back(ToFields{addr, amt, memo});
|
tx.toAddrs.push_back(ToFields{addr, amt, memo});
|
||||||
|
tx.toAddrs.push_back(ToFields{addr, amt, hmemo});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
qDebug() << "pushback chattx";
|
qDebug() << "pushback chattx";
|
||||||
} }
|
} }
|
||||||
@@ -472,9 +473,9 @@ Tx MainWindow::createTxForSafeContactRequest() {
|
|||||||
QString hmemo= createHeaderMemo(type,cid,myAddr);
|
QString hmemo= createHeaderMemo(type,cid,myAddr);
|
||||||
QString memo = ui->memoTxtChat->toPlainText().trimmed();
|
QString memo = ui->memoTxtChat->toPlainText().trimmed();
|
||||||
|
|
||||||
|
|
||||||
tx.toAddrs.push_back(ToFields{addr, amt, hmemo});
|
|
||||||
tx.toAddrs.push_back(ToFields{addr, amt, memo});
|
tx.toAddrs.push_back(ToFields{addr, amt, memo});
|
||||||
|
tx.toAddrs.push_back(ToFields{addr, amt, hmemo});
|
||||||
|
|
||||||
|
|
||||||
qDebug() << "pushback chattx";
|
qDebug() << "pushback chattx";
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" colspan="2">
|
<item row="1" column="1">
|
||||||
<widget class="QComboBox" name="comboBoxAvatar">
|
<widget class="QComboBox" name="comboBoxAvatar">
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -36,7 +36,17 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<activeon>:/icons/res/Hirsch.png</activeon>
|
<activeon>:/icons/res/Stag.png</activeon>
|
||||||
|
</iconset>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Elsa</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normalon>:/icons/res/Elsa.png</normalon>
|
||||||
</iconset>
|
</iconset>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
@@ -162,7 +172,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="3">
|
<item row="4" column="0">
|
||||||
<widget class="QLineEdit" name="zaddr"/>
|
<widget class="QLineEdit" name="zaddr"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
@@ -172,12 +182,8 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0" colspan="3">
|
<item row="6" column="0">
|
||||||
<widget class="QLabel" name="myzaddr">
|
<widget class="QLineEdit" name="myzaddr"/>
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="7" column="0">
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="label_5">
|
||||||
|
|||||||
@@ -882,7 +882,7 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
QString cid;
|
QString cid;
|
||||||
QString contact;
|
QString contact;
|
||||||
|
|
||||||
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
|
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
|
||||||
{
|
{
|
||||||
if (ui->contactNameMemo->text().trimmed() == c.getName()) {
|
if (ui->contactNameMemo->text().trimmed() == c.getName()) {
|
||||||
@@ -894,7 +894,7 @@ void Controller::refreshTransactions() {
|
|||||||
contact = c.getName();
|
contact = c.getName();
|
||||||
}else{ contact = "";}
|
}else{ contact = "";}
|
||||||
|
|
||||||
|
|
||||||
ChatItem item = ChatItem(
|
ChatItem item = ChatItem(
|
||||||
datetime,
|
datetime,
|
||||||
address,
|
address,
|
||||||
@@ -906,6 +906,7 @@ void Controller::refreshTransactions() {
|
|||||||
);
|
);
|
||||||
chatModel->addMessage(item);
|
chatModel->addMessage(item);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -918,11 +919,9 @@ void Controller::refreshTransactions() {
|
|||||||
QList<QString> addresses;
|
QList<QString> addresses;
|
||||||
for (auto item : items) {
|
for (auto item : items) {
|
||||||
// Concat all the addresses
|
// Concat all the addresses
|
||||||
if (item.amount == 0) {
|
|
||||||
|
|
||||||
}else{
|
|
||||||
|
|
||||||
addresses.push_back(item.address); }
|
addresses.push_back(item.address);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -932,6 +931,7 @@ void Controller::refreshTransactions() {
|
|||||||
txdata.push_back(TransactionItem{
|
txdata.push_back(TransactionItem{
|
||||||
"send", datetime, address, txid,confirmations, items
|
"send", datetime, address, txid,confirmations, items
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Incoming Transaction
|
// Incoming Transaction
|
||||||
address = (it["address"].is_null() ? "" : QString::fromStdString(it["address"]));
|
address = (it["address"].is_null() ? "" : QString::fromStdString(it["address"]));
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
|
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->request->setChecked(true);
|
ui->request->setChecked(false);
|
||||||
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("silentdragonlite-wallet.log"));
|
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("silentdragonlite-wallet.log"));
|
||||||
ui->memoTxtChat->setAutoFillBackground(false);
|
ui->memoTxtChat->setAutoFillBackground(false);
|
||||||
ui->memoTxtChat->setPlaceholderText("Send Message");
|
ui->memoTxtChat->setPlaceholderText("Send Message");
|
||||||
@@ -1077,10 +1077,6 @@ void ChatMemoEdit::setMaxLen(int len) {
|
|||||||
updateDisplay();
|
updateDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatMemoEdit::setLenDisplayLabel(QLabel* label_40) {
|
|
||||||
this->lenDisplayLabel = label_40;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ChatMemoEdit::setSendChatButton(QPushButton* button) {
|
void ChatMemoEdit::setSendChatButton(QPushButton* button) {
|
||||||
this->sendChatButton = button;
|
this->sendChatButton = button;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ private:
|
|||||||
void setupBalancesTab();
|
void setupBalancesTab();
|
||||||
void setuphushdTab();
|
void setuphushdTab();
|
||||||
void setupchatTab();
|
void setupchatTab();
|
||||||
|
void setLenDisplayLabel(QLabel* label);
|
||||||
|
|
||||||
void updateContacts();
|
void updateContacts();
|
||||||
void updateChat();
|
void updateChat();
|
||||||
@@ -168,7 +169,7 @@ public:
|
|||||||
ChatMemoEdit(QWidget* parent);
|
ChatMemoEdit(QWidget* parent);
|
||||||
|
|
||||||
void setMaxLen(int len);
|
void setMaxLen(int len);
|
||||||
void setLenDisplayLabel(QLabel* label_40);
|
|
||||||
void setSendChatButton(QPushButton* button);
|
void setSendChatButton(QPushButton* button);
|
||||||
void includeReplyTo(QString replyToAddress);
|
void includeReplyTo(QString replyToAddress);
|
||||||
void updateDisplay();
|
void updateDisplay();
|
||||||
|
|||||||
@@ -1337,6 +1337,18 @@
|
|||||||
<height>601</height>
|
<height>601</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</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 class="QLabel" name="label_39">
|
<widget class="QLabel" name="label_39">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
@@ -1364,22 +1376,6 @@
|
|||||||
<string notr="true">font: 11pt "Noto Color Emoji";</string>
|
<string notr="true">font: 11pt "Noto Color Emoji";</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="memoSizeChat">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>1190</x>
|
|
||||||
<y>650</y>
|
|
||||||
<width>47</width>
|
|
||||||
<height>17</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">0 / 512</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QLabel" name="contactNameMemo">
|
<widget class="QLabel" name="contactNameMemo">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
|
|||||||
Reference in New Issue
Block a user