public void CenterOnMethod(MethodItem method) { // TODO: center the given method on the screen editor.SetCursorPosition (method.Model.startLine - 1, 0); editor.EnsureCursorVisible (); editor.MoveCursor (QTextEdit.CursorAction.MoveUp, false); }
private void OnExpanded(QListViewItem item) { if (item is ClassItem) { // Create children on-demand ClassItem classItem = (ClassItem)item; ClassCoverageItem klass = classItem.Model; if (item.ChildCount() == 0) { foreach (MethodCoverageItem method in klass.Methods) { string title = method.name; if (title.Length > 64) { title = title.Substring(0,63) + "...)"; } MethodItem methodItem = new MethodItem(classItem,title,method); } } } }
private void OnExpanded(QListViewItem item) { if (item is ClassItem) { // Create children on-demand ClassItem classItem = (ClassItem)item; ClassCoverageItem klass = classItem.Model; if (item.ChildCount () == 0) { foreach (MethodCoverageItem method in klass.Methods) { string title = method.name; if (title.Length > 64) title = title.Substring (0, 63) + "...)"; MethodItem methodItem = new MethodItem (classItem, title, method); } } } }