mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Coding style fixes.
This commit is contained in:
parent
3649c7753c
commit
599d60270d
@ -38,11 +38,11 @@ public:
|
||||
|
||||
Q_SIGNALS:
|
||||
void modified();
|
||||
void keyModified(QString key);
|
||||
void aboutToBeAdded(QString key);
|
||||
void added(QString key);
|
||||
void aboutToBeRemoved(QString key);
|
||||
void removed(QString key);
|
||||
void keyModified(const QString& key);
|
||||
void aboutToBeAdded(const QString& key);
|
||||
void added(const QString& key);
|
||||
void aboutToBeRemoved(const QString& key);
|
||||
void removed(const QString& key);
|
||||
void aboutToBeReset();
|
||||
void reset();
|
||||
|
||||
|
@ -48,13 +48,13 @@ public:
|
||||
Q_SIGNALS:
|
||||
void modified();
|
||||
void defaultKeyModified();
|
||||
void customKeyModified(QString key);
|
||||
void aboutToBeAdded(QString key);
|
||||
void added(QString key);
|
||||
void aboutToBeRemoved(QString key);
|
||||
void removed(QString key);
|
||||
void aboutToRename(QString oldKey, QString newKey);
|
||||
void renamed(QString oldKey, QString newKey);
|
||||
void customKeyModified(const QString& key);
|
||||
void aboutToBeAdded(const QString& key);
|
||||
void added(const QString& key);
|
||||
void aboutToBeRemoved(const QString& key);
|
||||
void removed(const QString& key);
|
||||
void aboutToRename(const QString& oldKey, const QString& newKey);
|
||||
void renamed(const QString& oldKey, const QString& newKey);
|
||||
void aboutToBeReset();
|
||||
void reset();
|
||||
|
||||
|
@ -28,7 +28,7 @@ class CategoryListViewDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit CategoryListViewDelegate(QObject *parent) : QStyledItemDelegate(parent) {}
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const
|
||||
{
|
||||
QSize size = QStyledItemDelegate::sizeHint(option, index);
|
||||
size.setHeight(qMax(size.height(), 22));
|
||||
|
@ -100,13 +100,13 @@ QVariant EntryAttachmentsModel::data(const QModelIndex& index, int role) const
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
void EntryAttachmentsModel::attachmentChange(QString key)
|
||||
void EntryAttachmentsModel::attachmentChange(const QString& key)
|
||||
{
|
||||
int row = m_entryAttachments->keys().indexOf(key);
|
||||
Q_EMIT dataChanged(index(row, 0), index(row, columnCount()-1));
|
||||
}
|
||||
|
||||
void EntryAttachmentsModel::attachmentAboutToAdd(QString key)
|
||||
void EntryAttachmentsModel::attachmentAboutToAdd(const QString& key)
|
||||
{
|
||||
QList<QString> rows = m_entryAttachments->keys();
|
||||
rows.append(key);
|
||||
@ -120,7 +120,7 @@ void EntryAttachmentsModel::attachmentAdd()
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
void EntryAttachmentsModel::attachmentAboutToRemove(QString key)
|
||||
void EntryAttachmentsModel::attachmentAboutToRemove(const QString& key)
|
||||
{
|
||||
int row = m_entryAttachments->keys().indexOf(key);
|
||||
beginRemoveRows(QModelIndex(), row, row);
|
||||
|
@ -35,10 +35,10 @@ public:
|
||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
||||
|
||||
private Q_SLOTS:
|
||||
void attachmentChange(QString key);
|
||||
void attachmentAboutToAdd(QString key);
|
||||
void attachmentChange(const QString& key);
|
||||
void attachmentAboutToAdd(const QString& key);
|
||||
void attachmentAdd();
|
||||
void attachmentAboutToRemove(QString key);
|
||||
void attachmentAboutToRemove(const QString& key);
|
||||
void attachmentRemove();
|
||||
void aboutToReset();
|
||||
void reset();
|
||||
|
@ -141,14 +141,14 @@ QString EntryAttributesModel::keyByIndex(const QModelIndex& index) const
|
||||
}
|
||||
}
|
||||
|
||||
void EntryAttributesModel::attributeChange(QString key)
|
||||
void EntryAttributesModel::attributeChange(const QString& key)
|
||||
{
|
||||
int row = m_attributes.indexOf(key);
|
||||
Q_ASSERT(row != -1);
|
||||
Q_EMIT dataChanged(index(row, 0), index(row, columnCount()-1));
|
||||
}
|
||||
|
||||
void EntryAttributesModel::attributeAboutToAdd(QString key)
|
||||
void EntryAttributesModel::attributeAboutToAdd(const QString& key)
|
||||
{
|
||||
QList<QString> rows = m_attributes;
|
||||
rows.append(key);
|
||||
@ -163,7 +163,7 @@ void EntryAttributesModel::attributeAdd()
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
void EntryAttributesModel::attributeAboutToRemove(QString key)
|
||||
void EntryAttributesModel::attributeAboutToRemove(const QString& key)
|
||||
{
|
||||
int row = m_attributes.indexOf(key);
|
||||
beginRemoveRows(QModelIndex(), row, row);
|
||||
@ -175,7 +175,7 @@ void EntryAttributesModel::attributeRemove()
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
void EntryAttributesModel::attributeAboutToRename(QString oldKey, QString newKey)
|
||||
void EntryAttributesModel::attributeAboutToRename(const QString& oldKey, const QString& newKey)
|
||||
{
|
||||
int oldRow = m_attributes.indexOf(oldKey);
|
||||
|
||||
@ -198,7 +198,7 @@ void EntryAttributesModel::attributeAboutToRename(QString oldKey, QString newKey
|
||||
}
|
||||
}
|
||||
|
||||
void EntryAttributesModel::attributeRename(QString oldKey, QString newKey)
|
||||
void EntryAttributesModel::attributeRename(const QString& oldKey, const QString& newKey)
|
||||
{
|
||||
Q_UNUSED(oldKey);
|
||||
|
||||
|
@ -39,13 +39,13 @@ public:
|
||||
QString keyByIndex(const QModelIndex& index) const;
|
||||
|
||||
private Q_SLOTS:
|
||||
void attributeChange(QString key);
|
||||
void attributeAboutToAdd(QString key);
|
||||
void attributeChange(const QString& key);
|
||||
void attributeAboutToAdd(const QString& key);
|
||||
void attributeAdd();
|
||||
void attributeAboutToRemove(QString key);
|
||||
void attributeAboutToRemove(const QString& key);
|
||||
void attributeRemove();
|
||||
void attributeAboutToRename(QString oldKey, QString newKey);
|
||||
void attributeRename(QString oldKey, QString newKey);
|
||||
void attributeAboutToRename(const QString& oldKey, const QString& newKey);
|
||||
void attributeRename(const QString& oldKey, const QString& newKey);
|
||||
void aboutToReset();
|
||||
void reset();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user