changeset 609:5f3f5c1e23e8

Add hide method
author Chris Cannam
date Mon, 30 Jan 2012 17:22:48 +0000
parents 0dba6a391760
children ece1af8cfffa
files widgets/KeyReference.cpp widgets/KeyReference.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();
+    }
+}
--- 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 *);