{"action":"created","issue":{"url":"https://api.github.com/repos/commontk/CTK/issues/640","repository_url":"https://api.github.com/repos/commontk/CTK","labels_url":"https://api.github.com/repos/commontk/CTK/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/commontk/CTK/issues/640/comments","events_url":"https://api.github.com/repos/commontk/CTK/issues/640/events","html_url":"https://github.com/commontk/CTK/pull/640","id":147772363,"number":640,"title":"Expose dicom tableviews","user":{"login":"jeromevelut","id":149713,"avatar_url":"https://avatars.githubusercontent.com/u/149713?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromevelut","html_url":"https://github.com/jeromevelut","followers_url":"https://api.github.com/users/jeromevelut/followers","following_url":"https://api.github.com/users/jeromevelut/following{/other_user}","gists_url":"https://api.github.com/users/jeromevelut/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromevelut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromevelut/subscriptions","organizations_url":"https://api.github.com/users/jeromevelut/orgs","repos_url":"https://api.github.com/users/jeromevelut/repos","events_url":"https://api.github.com/users/jeromevelut/events{/privacy}","received_events_url":"https://api.github.com/users/jeromevelut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T14:38:34Z","updated_at":"2016-04-12T16:18:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/commontk/CTK/pulls/640","html_url":"https://github.com/commontk/CTK/pull/640","diff_url":"https://github.com/commontk/CTK/pull/640.diff","patch_url":"https://github.com/commontk/CTK/pull/640.patch"},"body":"In some case it could be useful to change table header texts, or even hide/show some columns.\r\nIndeed the headers use the sql model field names, which is not convenient.\r\n\r\nThis PR adds accessors to patients, studies and series table views in ctkDICOMTableManager.\r\n\r\nWe are now able to change \"PatientName\" header text with:\r\n```\r\ndicomBrowser->dicomTableManager()\r\n  ->patientsTable()\r\n  ->tableView()\r\n  ->model()\r\n  ->setHeaderData( 1, // column 1 is the first shown column, 0 is hidden\r\n                                Qt::Horizontal, \r\n                                \"Name\", // New text\r\n                                Qt::DisplayRole );\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/commontk/CTK/issues/comments/208987758","html_url":"https://github.com/commontk/CTK/pull/640#issuecomment-208987758","issue_url":"https://api.github.com/repos/commontk/CTK/issues/640","id":208987758,"user":{"login":"jcfr","id":219043,"avatar_url":"https://avatars.githubusercontent.com/u/219043?v=3","gravatar_id":"","url":"https://api.github.com/users/jcfr","html_url":"https://github.com/jcfr","followers_url":"https://api.github.com/users/jcfr/followers","following_url":"https://api.github.com/users/jcfr/following{/other_user}","gists_url":"https://api.github.com/users/jcfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcfr/subscriptions","organizations_url":"https://api.github.com/users/jcfr/orgs","repos_url":"https://api.github.com/users/jcfr/repos","events_url":"https://api.github.com/users/jcfr/events{/privacy}","received_events_url":"https://api.github.com/users/jcfr/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T16:18:03Z","updated_at":"2016-04-12T16:18:03Z","body":"Thanks @jeromevelut :+1: "}}