projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Reformat ALL the source... again!
[quassel.git]
/
src
/
client
/
coreaccountmodel.h
diff --git
a/src/client/coreaccountmodel.h
b/src/client/coreaccountmodel.h
index
88bc341
..
853aa9e
100644
(file)
--- a/
src/client/coreaccountmodel.h
+++ b/
src/client/coreaccountmodel.h
@@
-32,18
+32,19
@@
class CLIENT_EXPORT CoreAccountModel : public QAbstractListModel
Q_OBJECT
public:
Q_OBJECT
public:
- enum {
+ enum
+ {
AccountIdRole = Qt::UserRole,
UuidRole
};
AccountIdRole = Qt::UserRole,
UuidRole
};
- CoreAccountModel(QObject
*
parent = nullptr);
- CoreAccountModel(const CoreAccountModel
*other, QObject *
parent = nullptr);
+ CoreAccountModel(QObject
*
parent = nullptr);
+ CoreAccountModel(const CoreAccountModel
* other, QObject*
parent = nullptr);
- inline int rowCount(const QModelIndex
&
parent = QModelIndex()) const override;
- QVariant data(const QModelIndex
&
index, int role = Qt::DisplayRole) const override;
+ inline int rowCount(const QModelIndex
&
parent = QModelIndex()) const override;
+ QVariant data(const QModelIndex
&
index, int role = Qt::DisplayRole) const override;
- CoreAccount account(const QModelIndex
&) const;
+ CoreAccount account(const QModelIndex&) const;
CoreAccount account(AccountId) const;
QList<CoreAccount> accounts() const;
QList<AccountId> accountIds() const;
CoreAccount account(AccountId) const;
QList<CoreAccount> accounts() const;
QList<AccountId> accountIds() const;
@@
-51,14
+52,14
@@
public:
inline AccountId internalAccount() const;
inline AccountId internalAccount() const;
- AccountId createOrUpdateAccount(const CoreAccount
&
newAccountData);
+ AccountId createOrUpdateAccount(const CoreAccount
&
newAccountData);
CoreAccount takeAccount(AccountId);
void removeAccount(AccountId);
CoreAccount takeAccount(AccountId);
void removeAccount(AccountId);
- void update(const CoreAccountModel
*
other);
+ void update(const CoreAccountModel
*
other);
- bool operator==(const CoreAccountModel
&
other) const;
- bool operator!=(const CoreAccountModel
&
other) const;
+ bool operator==(const CoreAccountModel
&
other) const;
+ bool operator!=(const CoreAccountModel
&
other) const;
public slots:
void save();
public slots:
void save();
@@
-66,7
+67,7
@@
public slots:
void clear();
protected:
void clear();
protected:
- void insertAccount(const CoreAccount
&);
+ void insertAccount(const CoreAccount&);
int findAccountIdx(AccountId) const;
private:
int findAccountIdx(AccountId) const;
private:
@@
-77,14
+78,12
@@
private:
AccountId _internalAccount;
};
AccountId _internalAccount;
};
-
// Inlines
// Inlines
-int CoreAccountModel::rowCount(const QModelIndex
&) const
+int CoreAccountModel::rowCount(const QModelIndex&) const
{
return _accounts.count();
}
{
return _accounts.count();
}
-
AccountId CoreAccountModel::internalAccount() const
{
return _internalAccount;
AccountId CoreAccountModel::internalAccount() const
{
return _internalAccount;