Browse Source

Removed signal prefix from SIGNALS

Andreas Fetzer 11 years ago
parent
commit
65edd6739c
2 changed files with 12 additions and 11 deletions
  1. 5 5
      Libs/DICOM/Widgets/ctkDICOMTableView.cpp
  2. 7 6
      Libs/DICOM/Widgets/ctkDICOMTableView.h

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

@@ -110,7 +110,7 @@ void ctkDICOMTableViewPrivate::setUpTableView()
     QObject::connect(this->tblDicomDatabaseView->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&,const QItemSelection&)),
                      q, SLOT(onSelectionChanged()));
     QObject::connect(this->tblDicomDatabaseView->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&,const QItemSelection&)),
-                     q, SIGNAL(signalSelectionChanged(const QItemSelection&,const QItemSelection&)));
+                     q, SIGNAL(selectionChanged(const QItemSelection&,const QItemSelection&)));
     QObject::connect(this->leSearchBox, SIGNAL(textChanged(QString)), this->dicomSQLFilterModel, SLOT(setFilterWildcard(QString)));
     QObject::connect(this->leSearchBox, SIGNAL(textChanged(QString)), q, SLOT(onFilterChanged()));
     QObject::connect(this->dicomDatabase.data(), SIGNAL(schemaUpdated()), q, SLOT(onDatabaseChanged()));
@@ -159,7 +159,7 @@ QStringList ctkDICOMTableViewPrivate::getUIDsForAllRows()
 
 //----------------------------------------------------------------------------
 ctkDICOMTableView::ctkDICOMTableView(QWidget *parent, QString queryTableName)
-  :Superclass(parent)
+  : Superclass(parent)
   , d_ptr(new ctkDICOMTableViewPrivate(*this))
 {
   Q_D(ctkDICOMTableView);
@@ -213,7 +213,7 @@ void ctkDICOMTableView::onSelectionChanged()
   {
     uids << (QString("'") + i.data().toString() +"'");
   }
-  emit signalQueryChanged(uids);
+  emit queryChanged(uids);
 }
 
 void ctkDICOMTableView::onDatabaseChanged()
@@ -239,7 +239,7 @@ void ctkDICOMTableView::onUpdateQuery(const QStringList& uids)
   }
   d->dicomSQLModel.setQuery(query, d->dicomDatabase->database());
   QStringList newUIDS = d->getUIDsForAllRows();
-  emit signalQueryChanged(newUIDS);
+  emit queryChanged(newUIDS);
 }
 
 void ctkDICOMTableView::onFilterChanged()
@@ -247,5 +247,5 @@ void ctkDICOMTableView::onFilterChanged()
   Q_D(ctkDICOMTableView);
 
   QStringList uids = d->getUIDsForAllRows();
-  emit signalQueryChanged(uids);
+  emit queryChanged(uids);
 }

+ 7 - 6
Libs/DICOM/Widgets/ctkDICOMTableView.h

@@ -112,18 +112,19 @@ Q_SIGNALS:
    * @brief Is emitted when the selection in the tableview has changed
    * @param uids the list of uids of the selected objects
    */
-  void signalSelectionChanged(const QStringList &uids);
+  void selectionChanged(const QStringList &uids);
 
   /**
-   * @brief Is emitted when the query text has changed
-   * @param uids the list of uids of the objects included in the query
+   * @brief Is emitted when the data selection has changed
    */
-  void signalQueryChanged(const QStringList &uids);
+  void selectionChanged(const QItemSelection&,const QItemSelection&);
 
   /**
-   * @brief Is emitted when the data selection has changed
+   * @brief Is emitted when the query text has changed
+   * @param uids the list of uids of the objects included in the query
    */
-  void signalSelectionChanged(const QItemSelection&,const QItemSelection&);
+  void queryChanged(const QStringList &uids);
+
 
 protected:
   QScopedPointer<ctkDICOMTableViewPrivate> d_ptr;