Some more changes

- remove unnecessary field sender in userprofile.qml
    - cover user facing string with qsTr to get picked by translations
    - add spacing and fix theming issue
    - increase and add color to username
    - change back to QVector from QLinkedList cause I have mistaken
    better time complexity to give better benchmark

red
This commit is contained in:
CH Chethan Reddy 2020-06-24 23:05:32 +05:30
parent d49ab15656
commit 1633650303
5 changed files with 193 additions and 63 deletions

View file

@ -26,17 +26,17 @@ namespace msgs = mtx::events::msg;
void
DeviceVerificationList::add(QString tran_id)
{
this->dv_list.append(tran_id);
this->deviceVerificationList.push_back(tran_id);
}
void
DeviceVerificationList::remove(QString tran_id)
{
this->dv_list.removeOne(tran_id);
this->deviceVerificationList.removeOne(tran_id);
}
bool
DeviceVerificationList::exist(QString tran_id)
{
return this->dv_list.contains(tran_id);
return this->deviceVerificationList.contains(tran_id);
}
void