mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	PDFViewer: Show page numbers in Outline TreeView
This is a nice addition to the outline view, which previously simply displayed the titles of each section. Pages are shown in the first column, but the tree is expanded via the second column, where the title is.
This commit is contained in:
		
							parent
							
								
									c76564b533
								
							
						
					
					
						commit
						aaa210e6db
					
				
					 3 changed files with 42 additions and 2 deletions
				
			
		|  | @ -22,6 +22,8 @@ SidebarWidget::SidebarWidget() | |||
| 
 | ||||
|     m_outline_tree_view = outline_container.add<GUI::TreeView>(); | ||||
|     m_outline_tree_view->set_activates_on_selection(true); | ||||
|     m_outline_tree_view->set_should_fill_selected_rows(true); | ||||
|     m_outline_tree_view->set_selection_behavior(GUI::AbstractView::SelectionBehavior::SelectRows); | ||||
| 
 | ||||
|     auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails"); | ||||
|     thumbnails_container.set_layout<GUI::VerticalBoxLayout>(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rodrigo Tobar
						Rodrigo Tobar