Another attempt to fix copyed hotkeys by updating the identifier

* check on name OR id
* remote keys not updated, but lenient check on local machine
* Remark: Sometimes copied hotkeys d not work
This commit is contained in:
Klaus Basan
2019-02-13 03:11:13 +01:00
committed by Mat Sutcliffe
parent eb1427e55f
commit d8a730302a
7 changed files with 95 additions and 26 deletions

View File

@@ -108,6 +108,9 @@ namespace BlackMisc
//! Check if other identifier is from the same machine id
bool hasSameMachineId(const CIdentifier &other) const;
//! Same machine or id?
bool hasSameMachineNameOrId(const CIdentifier &other) const;
//! Get process id
qint64 getProcessId() const {return m_processId;}
@@ -129,6 +132,12 @@ namespace BlackMisc
//! Null identifier (no name, ids etc)
bool isNull() const;
//! Update to current machine
void updateToCurrentMachine();
//! Update to current process
void updateToCurrentProcess();
//! \copydoc BlackMisc::Mixin::String::toQString
QString convertToQString(bool i18n = false) const;