setAlignment, as a target of a qt signal, needs to match type
authorDiane Trout <diane@caltech.edu>
Wed, 29 Mar 2006 05:18:33 +0000 (05:18 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 29 Mar 2006 05:18:33 +0000 (05:18 +0000)
Though size_t is a bit better for how setAlignment uses it, the type
mismatch causes the signal to break

qui/MussaAlignedWindow.cpp
qui/MussaAlignedWindow.hpp

index 4b7b5929d65bc9684dcb8cc93da25c2bb1f0683c..61a5c345a142504e07a0831922206b4268c2a0c7 100644 (file)
@@ -92,7 +92,7 @@ void MussaAlignedWindow::setupMenus()
     }
     int index = pathz_i - selected_paths.begin();
     IntAction *pick = new IntAction(QString(menu_text.str().c_str()), index, this);
-    connect(pick, SIGNAL(triggered(int)), this, SLOT(setAlignment(size_t)));
+    connect(pick, SIGNAL(triggered(int)), this, SLOT(setAlignment(int)));
     pick_actions.push_back(pick);
     pick_align_menu.addAction(pick);
     IntAction *view = new IntAction(QString(menu_text.str().c_str()), index, this);
@@ -104,7 +104,7 @@ void MussaAlignedWindow::setupMenus()
   }
 }
 
-void MussaAlignedWindow::setAlignment(size_t alignment_index)
+void MussaAlignedWindow::setAlignment(int alignment_index)
 {
   if (selected_paths.size() > 0) {
     browser.centerOnPath(selected_paths[alignment_index].normalizedIndexes());
index a6d5844d929c1eae70a5fe8e970387a6fec8d151..677aecdbb5d486803d09224424eab89a07548be3 100644 (file)
@@ -20,7 +20,7 @@ public:
 
 public slots:
   //! use selected_paths[pathid] to set the starting position of our sequence
-  void setAlignment(size_t pathid);
+  void setAlignment(int pathid);
   //! toggle whether or not to show the aligned basepairs of a window
   void toggleViewAlignment(size_t alignment_index);