mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
dump all members instead of pointer to the reference from QShortcutMap::dumpMap()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d9e290522b
commit
0e6ab7a04f
1 changed files with 8 additions and 2 deletions
|
@ -151,6 +151,9 @@ int QShortcutMap::addShortcut(QObject *owner, const QKeySequence &key, Qt::Short
|
||||||
qDebug().nospace()
|
qDebug().nospace()
|
||||||
<< "QShortcutMap::addShortcut(" << owner << ", "
|
<< "QShortcutMap::addShortcut(" << owner << ", "
|
||||||
<< key << ", " << context << ") = " << d->currentId;
|
<< key << ", " << context << ") = " << d->currentId;
|
||||||
|
#endif
|
||||||
|
#if defined(Dump_QShortcutMap)
|
||||||
|
dumpMap();
|
||||||
#endif
|
#endif
|
||||||
return d->currentId;
|
return d->currentId;
|
||||||
}
|
}
|
||||||
|
@ -819,8 +822,11 @@ void QShortcutMap::dispatchEvent(QKeyEvent *e)
|
||||||
void QShortcutMap::dumpMap() const
|
void QShortcutMap::dumpMap() const
|
||||||
{
|
{
|
||||||
Q_D(const QShortcutMap);
|
Q_D(const QShortcutMap);
|
||||||
for (int i = 0; i < d->sequences.size(); ++i)
|
for (int i = 0; i < d->sequences.size(); ++i) {
|
||||||
qDebug().nospace() << &(d->sequences.at(i));
|
qDebug() << "shortcut" << d->sequences.at(i).keyseq << d->sequences.at(i).context
|
||||||
|
<< d->sequences.at(i).enabled << d->sequences.at(i).autorepeat << d->sequences.at(i).id
|
||||||
|
<< d->sequences.at(i).owner;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue