diff widgets/PaneStack.cpp @ 89:803830f186ef

* Move matrix/fft file code to fileio (from base) * Add right-button menu to panes
author Chris Cannam
date Fri, 05 May 2006 13:06:47 +0000
parents 19bf27e4fb29
children 4772fc75ac7c
line wrap: on
line diff
--- a/widgets/PaneStack.cpp	Thu May 04 16:03:02 2006 +0000
+++ b/widgets/PaneStack.cpp	Fri May 05 13:06:47 2006 +0000
@@ -83,6 +83,8 @@
 	    this, SLOT(propertyContainerRemoved(PropertyContainer *)));
     connect(pane, SIGNAL(paneInteractedWith()),
 	    this, SLOT(paneInteractedWith()));
+    connect(pane, SIGNAL(rightButtonMenuRequested(QPoint)),
+            this, SLOT(rightButtonMenuRequested(QPoint)));
 
     if (!m_currentPane) {
 	setCurrentPane(pane);
@@ -325,6 +327,14 @@
 }
 
 void
+PaneStack::rightButtonMenuRequested(QPoint position)
+{
+    Pane *pane = dynamic_cast<Pane *>(sender());
+    if (!pane) return;
+    emit rightButtonMenuRequested(pane, position);
+}
+
+void
 PaneStack::sizePropertyStacks()
 {
     int maxMinWidth = 0;