mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 16:59:44 -05:00
Emit signal when changing the database name.
This commit is contained in:
parent
0014d50b59
commit
0e41ed72dd
@ -21,6 +21,7 @@
|
||||
|
||||
Metadata::Metadata(Database* parent)
|
||||
: QObject(parent)
|
||||
, m_parent(parent)
|
||||
{
|
||||
m_recycleBin = 0;
|
||||
m_entryTemplatesGroup = 0;
|
||||
@ -191,6 +192,8 @@ void Metadata::setGenerator(const QString& value)
|
||||
void Metadata::setName(const QString& value)
|
||||
{
|
||||
m_name = value;
|
||||
|
||||
Q_EMIT nameTextChanged(m_parent);
|
||||
}
|
||||
|
||||
void Metadata::setNameChanged(const QDateTime& value)
|
||||
|
@ -91,7 +91,12 @@ public:
|
||||
void addCustomField(const QString& key, const QString& value);
|
||||
void removeCustomField(const QString& key);
|
||||
|
||||
Q_SIGNALS:
|
||||
void nameTextChanged(Database* db);
|
||||
|
||||
private:
|
||||
Database* m_parent;
|
||||
|
||||
QString m_generator;
|
||||
QString m_name;
|
||||
QDateTime m_nameChanged;
|
||||
|
Loading…
Reference in New Issue
Block a user