mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
60f1fa790c
Some discussions at https://phabricator.kde.org/D25484. This MR adds: * mouse middle button event handler for closing a tab * an `undo close tab` action Test plan: 1. Compile and install. 2. Enable `Open new files in tabs`. 3. Open two documents. They should be opened in two tabs in the same window. 4. Middle click one of the tabs. It should be closed. 5. Choose `File`-`Undo close tab`. The closed tab should be reopened. 6. Middle click one of the tabs. It should be closed. 7. Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd>. The closed tab should be reopened.
27 lines
868 B
Text
27 lines
868 B
Text
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
|
<kpartgui version="8" name="okular_shell" >
|
|
<MenuBar>
|
|
<Menu name="file" >
|
|
<DefineGroup append="open_merge" name="file_open" />
|
|
<DefineGroup append="save_merge" name="file_save" />
|
|
<DefineGroup append="print_merge" name="file_print" />
|
|
<Action name="undo-close-tab" group="file_open" />
|
|
</Menu>
|
|
<!--Menu name="view" >
|
|
<Action name="fullscreen" />
|
|
</Menu-->
|
|
<Menu name="settings" >
|
|
<DefineGroup append="show_merge" name="show_merge" />
|
|
<DefineGroup append="configure_merge" name="configure_merge" />
|
|
</Menu>
|
|
<Merge/>
|
|
<Menu name="help">
|
|
<DefineGroup append="about_merge" name="about_merge" />
|
|
</Menu>
|
|
</MenuBar>
|
|
<ToolBar noMerge="1" name="mainToolBar" >
|
|
<text>Main Toolbar</text>
|
|
<!--Action name="file_open_recent" /-->
|
|
<!--Action name="file_print" /-->
|
|
</ToolBar>
|
|
</kpartgui>
|