mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Remove size_t property stuff
This commit is contained in:
parent
48669302ec
commit
a9ed83a1ce
2 changed files with 2 additions and 5 deletions
|
@ -12,7 +12,7 @@ class MemberList : public QAbstractListModel
|
|||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QString roomName READ roomName NOTIFY roomNameChanged)
|
||||
Q_PROPERTY(size_t memberCount READ memberCount NOTIFY memberCountChanged)
|
||||
Q_PROPERTY(int memberCount READ memberCount NOTIFY memberCountChanged)
|
||||
Q_PROPERTY(QString avatarUrl READ avatarUrl NOTIFY avatarUrlChanged)
|
||||
Q_PROPERTY(QString roomId READ roomId NOTIFY roomIdChanged)
|
||||
Q_PROPERTY(int numUsersLoaded READ numUsersLoaded NOTIFY numUsersLoadedChanged)
|
||||
|
@ -35,7 +35,7 @@ public:
|
|||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
|
||||
QString roomName() const { return QString::fromStdString(info_.name); }
|
||||
size_t memberCount() const { return info_.member_count; }
|
||||
int memberCount() const { return info_.member_count; }
|
||||
QString avatarUrl() const { return QString::fromStdString(info_.avatar_url); }
|
||||
QString roomId() const { return room_id_; }
|
||||
int numUsersLoaded() const { return numUsersLoaded_; }
|
||||
|
|
|
@ -205,9 +205,6 @@ main(int argc, char *argv[])
|
|||
|
||||
parser.process(app);
|
||||
|
||||
// make sure that size_t properties will work
|
||||
qRegisterMetaType<size_t>("size_t");
|
||||
|
||||
app.setWindowIcon(QIcon::fromTheme("nheko", QIcon{":/logos/nheko.png"}));
|
||||
|
||||
http::init();
|
||||
|
|
Loading…
Reference in a new issue