mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
MacPDF: Make clicking outline items have an effect
Clicking an item in the outline now opens that page. This requires giving the outline view a delegate, which for some reason also has th effect of indenting expandable items ¯\_(ツ)_/¯ The vertical alignment of text still looks off, though.
This commit is contained in:
parent
185301c027
commit
e7d41480fc
2 changed files with 15 additions and 1 deletions
|
@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
@class MacPDFDocument;
|
||||
|
||||
@interface MacPDFWindowController : NSWindowController <MacPDFViewDelegate, NSToolbarDelegate>
|
||||
@interface MacPDFWindowController : NSWindowController <MacPDFViewDelegate, NSOutlineViewDelegate, NSToolbarDelegate>
|
||||
|
||||
- (instancetype)initWithDocument:(MacPDFDocument*)document;
|
||||
- (IBAction)showGoToPageDialog:(id)sender;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue