Przeglądaj źródła

Finished cleaning up and writing documentation. Removed unused primary key member

Andreas Fetzer 11 lat temu
rodzic
commit
bd9148b1f3

+ 0 - 7
Libs/DICOM/Widgets/ctkDICOMTableView.cpp

@@ -49,7 +49,6 @@ public:
   QSortFilterProxyModel* DICOMSQLFilterModel;
   QString queryTableName;
   QString queryForeignKey;
-  QString queryPrimaryKey;
 
 };
 
@@ -180,12 +179,6 @@ void ctkDICOMTableView::setQueryForeignKey(const QString &foreignKey)
   d->queryForeignKey = foreignKey;
 }
 
-void ctkDICOMTableView::setQueryPrimaryKey(const QString &primaryKey)
-{
-  Q_D(ctkDICOMTableView);
-  d->queryPrimaryKey = primaryKey;
-}
-
 void ctkDICOMTableView::onSelectionChanged()
 {
   Q_D(ctkDICOMTableView);

+ 11 - 4
Libs/DICOM/Widgets/ctkDICOMTableView.h

@@ -64,6 +64,10 @@ public:
 
   virtual ~ctkDICOMTableView();
 
+  /**
+   * @brief Setting the ctkDICOMDatabase which shall be queried
+   * @param dicomDataBase the underlying database
+   */
   void setCTKDicomDataBase(QSharedPointer<ctkDICOMDatabase> dicomDataBase);
 
   /**
@@ -79,8 +83,6 @@ public:
    */
   void setQueryForeignKey(const QString &foreignKey);
 
-  void setQueryPrimaryKey(const QString &primaryKey);
-
 public Q_SLOTS:
 
   /**
@@ -112,11 +114,16 @@ Q_SIGNALS:
    * @param uids the list of uids of the selected objects
    */
   void signalSelectionChanged(const QStringList &uids);
+
   /**
-   * @brief Is emitted when the filter text has changed
-   * @param uids the list of uids of the selected objects
+   * @brief Is emitted when the query text has changed
+   * @param uids the list of uids of the objects included in the query
    */
   void signalQueryChanged(const QStringList &uids);
+
+  /**
+   * @brief Is emitted when the data selection has changed
+   */
   void signalSelectionChanged(const QItemSelection&,const QItemSelection&);
 
 protected: