mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +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_OBJECT
|
||||||
|
|
||||||
Q_PROPERTY(QString roomName READ roomName NOTIFY roomNameChanged)
|
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 avatarUrl READ avatarUrl NOTIFY avatarUrlChanged)
|
||||||
Q_PROPERTY(QString roomId READ roomId NOTIFY roomIdChanged)
|
Q_PROPERTY(QString roomId READ roomId NOTIFY roomIdChanged)
|
||||||
Q_PROPERTY(int numUsersLoaded READ numUsersLoaded NOTIFY numUsersLoadedChanged)
|
Q_PROPERTY(int numUsersLoaded READ numUsersLoaded NOTIFY numUsersLoadedChanged)
|
||||||
|
@ -35,7 +35,7 @@ public:
|
||||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||||
|
|
||||||
QString roomName() const { return QString::fromStdString(info_.name); }
|
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 avatarUrl() const { return QString::fromStdString(info_.avatar_url); }
|
||||||
QString roomId() const { return room_id_; }
|
QString roomId() const { return room_id_; }
|
||||||
int numUsersLoaded() const { return numUsersLoaded_; }
|
int numUsersLoaded() const { return numUsersLoaded_; }
|
||||||
|
|
|
@ -205,9 +205,6 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
parser.process(app);
|
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"}));
|
app.setWindowIcon(QIcon::fromTheme("nheko", QIcon{":/logos/nheko.png"}));
|
||||||
|
|
||||||
http::init();
|
http::init();
|
||||||
|
|
Loading…
Reference in a new issue