瀏覽代碼

Emit signal for selection change instead of the one for query change if the selection has changed

Andreas Fetzer 11 年之前
父節點
當前提交
323e92ca6b
共有 2 個文件被更改,包括 33 次插入1 次删除
  1. 32 0
      Libs/DICOM/Widgets/Resources/UI/ctkDICOMTableManager.ui
  2. 1 1
      Libs/DICOM/Widgets/ctkDICOMTableView.cpp

+ 32 - 0
Libs/DICOM/Widgets/Resources/UI/ctkDICOMTableManager.ui

@@ -84,6 +84,38 @@ QSplitter::handle:vertical {height: 2px;}</string>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>patientsTable</sender>
+   <signal>selectionChanged(QStringList)</signal>
+   <receiver>studiesTable</receiver>
+   <slot>onUpdateQuery(QStringList)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>206</x>
+     <y>244</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>383</x>
+     <y>267</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>studiesTable</sender>
+   <signal>selectionChanged(QStringList)</signal>
+   <receiver>seriesTable</receiver>
+   <slot>onUpdateQuery(QStringList)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>502</x>
+     <y>234</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>608</x>
+     <y>234</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <signal>seriesSelectionChanged(QStringList)</signal>

+ 1 - 1
Libs/DICOM/Widgets/ctkDICOMTableView.cpp

@@ -237,7 +237,7 @@ void ctkDICOMTableView::onSelectionChanged()
     {
       uids<< (QString("'") + i.data().toString() +"'");
     }
-  emit queryChanged(uids);
+  emit selectionChanged(uids);
 }
 
 //------------------------------------------------------------------------------