# HG changeset patch # User Chris Cannam # Date 1327944168 0 # Node ID 5f3f5c1e23e8abfd70952f341cb57c2b05ee101c # Parent 0dba6a391760c10c03589957099e07bb9741063d Add hide method diff -r 0dba6a391760 -r 5f3f5c1e23e8 widgets/KeyReference.cpp --- a/widgets/KeyReference.cpp Mon Jan 30 16:06:32 2012 +0000 +++ b/widgets/KeyReference.cpp Mon Jan 30 17:22:48 2012 +0000 @@ -194,3 +194,10 @@ m_dialog->hide(); } +void +KeyReference::hide() +{ + if (m_dialog) { + m_dialog->hide(); + } +} diff -r 0dba6a391760 -r 5f3f5c1e23e8 widgets/KeyReference.h --- a/widgets/KeyReference.h Mon Jan 30 16:06:32 2012 +0000 +++ b/widgets/KeyReference.h Mon Jan 30 17:22:48 2012 +0000 @@ -43,6 +43,7 @@ void registerAlternativeShortcut(QString actionName, QString alternative); void show(); + void hide(); protected slots: void dialogButtonClicked(QAbstractButton *);