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:
parent
d49ab15656
commit
1633650303
5 changed files with 193 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
#include <QLinkedList>
|
||||
#include <QQuickView>
|
||||
#include <QQuickWidget>
|
||||
#include <QSharedPointer>
|
||||
|
|
@ -32,7 +31,7 @@ public:
|
|||
Q_INVOKABLE bool exist(QString tran_id);
|
||||
|
||||
private:
|
||||
QLinkedList<QString> dv_list;
|
||||
QVector<QString> deviceVerificationList;
|
||||
};
|
||||
|
||||
class TimelineViewManager : public QObject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue