Lines Matching full:view
3 # exported-sql-viewer.py: view data from sql database
784 # Turn the query result into a list of ids that the tree view can walk
979 # Turn the query result into a list of ids that the tree view can walk
1045 self.view = QTreeView()
1046 self.view.setSelectionMode(QAbstractItemView.ContiguousSelection)
1047 self.view.CopyCellsToClipboard = CopyTreeCellsToClipboard
1049 self.context_menu = TreeContextMenu(self.view)
1062 self.view.setExpanded(parent, True)
1063 self.view.setCurrentIndex(child)
1071 self.view.setFocus()
1093 self.view.setModel(self.model)
1096 self.view.setColumnWidth(c, w)
1100 self.vbox = VBox(self.view, self.find_bar.Widget())
1115 self.view.setModel(self.model)
1118 self.view.setColumnWidth(c, w)
1122 self.vbox = VBox(self.view, self.find_bar.Widget())
1140 self.view.setExpanded(parent, True)
1141 self.view.setCurrentIndex(child)
1153 self.view.setExpanded(parent, True)
1159 self.view.setCurrentIndex(child)
1166 self.view.setExpanded(parent, True)
1167 self.view.setCurrentIndex(child)
1170 self.view.setExpanded(parent, True)
1171 self.view.setCurrentIndex(last_child)
1841 view = scene.views()[0]
1842 viewport = view.viewport()
1848 view = scene.views()[0]
1849 poly = view.mapFromScene(scene_rectf)
2004 self.view = QTableView()
2005 self.view.setModel(self.model)
2006 self.view.setEditTriggers(QAbstractItemView.NoEditTriggers)
2007 self.view.verticalHeader().setVisible(False)
2008 self.view.sortByColumn(-1, Qt.AscendingOrder)
2009 self.view.setSortingEnabled(True)
2010 self.view.resizeColumnsToContents()
2011 self.view.resizeRowsToContents()
2013 self.vbox = VBoxLayout(self.view)
2016 sz1 = self.view.columnWidth(0) + self.view.columnWidth(1) + self.view.columnWidth(2) + 2
2017 sz1 = sz1 + self.view.verticalScrollBar().sizeHint().width()
2030 self.view.resizeRowsToContents()
2031 self.view.resizeColumnsToContents()
2033 self.view.resizeRowsToContents()
2149 …sz1 = self.widget(1).view.columnWidth(0) + self.widget(1).view.columnWidth(1) + self.widget(1).vie…
2150 sz1 = sz1 + self.widget(1).view.verticalScrollBar().sizeHint().width()
2227 self.view = QGraphicsView(self.scene)
2228 self.view.centerOn(0, 0)
2229 self.view.setAlignment(Qt.AlignLeft | Qt.AlignTop)
2234 self.splitter.addWidget(self.view)
2290 menu = QMenu(self.view)
2294 …ext, "Show Call Tree", lambda a=None, args=thread_at_time: self.RightClickSelect(args), self.view))
2453 self.view = self.widget
3216 self.view = QTreeView()
3217 self.view.setUniformRowHeights(True)
3218 self.view.setSelectionMode(QAbstractItemView.ContiguousSelection)
3219 self.view.CopyCellsToClipboard = CopyTreeCellsToClipboard
3220 self.view.setModel(self.model)
3224 self.context_menu = TreeContextMenu(self.view)
3232 self.vbox = VBox(self.view, self.find_bar.Widget(), self.fetch_bar.Widget())
3239 # Using the view's resizeColumnToContents() here is extrememly slow
3242 font = self.view.font()
3252 self.view.setColumnWidth(column, max)
3270 self.view.setFocus()
3277 self.view.setCurrentIndex(self.model.index(row, 0, QModelIndex()))
3803 # Using the view's resizeColumnToContents() here is extrememly slow
3805 font = self.view.font()
3815 self.view.setColumnWidth(column, max)
3850 def CopyTableCellsToClipboard(view, as_csv=False, with_hdr=False): argument
3851 indexes = sorted(view.selectedIndexes(), key=RowColumnKey)
3916 def CopyTreeCellsToClipboard(view, as_csv=False, with_hdr=False): argument
3917 indexes = view.selectedIndexes()
3921 selection = view.selectionModel()
3925 above = view.indexAbove(i)
3964 pos = view.indexBelow(pos)
3998 if view.isExpanded(i):
4015 pos = view.indexBelow(pos)
4024 def CopyCellsToClipboard(view, as_csv=False, with_hdr=False): argument
4025 view.CopyCellsToClipboard(view, as_csv, with_hdr)
4027 def CopyCellsToClipboardHdr(view): argument
4028 CopyCellsToClipboard(view, False, True)
4030 def CopyCellsToClipboardCSV(view): argument
4031 CopyCellsToClipboard(view, True, True)
4037 def __init__(self, view): argument
4038 self.view = view
4039 self.view.setContextMenuPolicy(Qt.CustomContextMenu)
4040 self.view.customContextMenuRequested.connect(self.ShowContextMenu)
4043 menu = QMenu(self.view)
4045 menu.exec_(self.view.mapToGlobal(pos))
4048 …ion("&Copy selection", "Copy to clipboard", lambda: CopyCellsToClipboardHdr(self.view), self.view))
4049 …ction as CS&V", "Copy to clipboard as CSV", lambda: CopyCellsToClipboardCSV(self.view), self.view))
4056 def __init__(self, view): argument
4057 super(TreeContextMenu, self).__init__(view)
4060 i = self.view.currentIndex()
4063 …y "' + text + '"', "Copy to clipboard", lambda: QApplication.clipboard().setText(text), self.view))
4078 self.view = QTableView()
4079 self.view.setModel(self.model)
4080 self.view.setEditTriggers(QAbstractItemView.NoEditTriggers)
4081 self.view.verticalHeader().setVisible(False)
4082 self.view.sortByColumn(-1, Qt.AscendingOrder)
4083 self.view.setSortingEnabled(True)
4084 self.view.setSelectionMode(QAbstractItemView.ContiguousSelection)
4085 self.view.CopyCellsToClipboard = CopyTableCellsToClipboard
4089 self.context_menu = ContextMenu(self.view)
4097 self.vbox = VBox(self.view, self.find_bar.Widget(), self.fetch_bar.Widget())
4104 self.view.setFocus()
4111 self.view.setCurrentIndex(self.model.mapFromSource(self.data_model.index(row, 0, QModelIndex())))
4121 …QueryExec(query, "SELECT name FROM sqlite_master WHERE type IN ( 'table' , 'view' ) ORDER BY name")
4123 ….tables WHERE table_schema = 'public' AND table_type IN ( 'BASE TABLE' , 'VIEW' ) ORDER BY table_n…
4200 self.view = QTableView()
4201 self.view.setModel(self.model)
4202 self.view.setEditTriggers(QAbstractItemView.NoEditTriggers)
4203 self.view.verticalHeader().setVisible(False)
4204 self.view.setSelectionMode(QAbstractItemView.ContiguousSelection)
4205 self.view.CopyCellsToClipboard = CopyTableCellsToClipboard
4207 self.context_menu = ContextMenu(self.view)
4217 self.vbox = VBox(self.view, self.find_bar.Widget(), self.fetch_bar.Widget())
4224 self.view.setFocus()
4231 self.view.setCurrentIndex(self.model.index(row, 0, QModelIndex()))
4453 The Tables menu shows all tables and views in the database. Most tables have an associated view
4664 fn(win.view)
4718 …table_menu.addAction(CreateAction(table, "Create a new window containing a table view", lambda a=N…