void ClusterControllerDialog::setClusters(const Clusters & clusters) { int cluster_count(clusters.clusterCount()); m_cluster_info_table->clearContents(); m_cluster_info_table->setColumnCount(cluster_count); for(int cluster_id(0); cluster_id < cluster_count; cluster_id++) { ClusterData cluster_data(clusters.getClusterData(cluster_id)); if(cluster_data.member_count > 0) m_cluster_info_table->addCluster(clusters.getClusterData(cluster_id), cluster_id); } m_valid = true; }