Skip to content
Snippets Groups Projects
Commit be4de0cd authored by Tao Zhong's avatar Tao Zhong
Browse files

Add Zoom extents

parent 5a170c4f
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@
<addaction name="separator"/>
<addaction name="actionBack_to_Origin"/>
<addaction name="actionZoom_Windows"/>
<addaction name="actionZoom_Extents"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
......@@ -730,6 +731,14 @@
<string>Meta+W</string>
</property>
</action>
<action name="actionZoom_Extents">
<property name="text">
<string>Zoom Extents</string>
</property>
<property name="shortcut">
<string>Meta+E</string>
</property>
</action>
</widget>
<resources>
<include location="../Resources/resources.qrc"/>
......
......@@ -844,3 +844,8 @@ void MWindow::on_actionZoom_Windows_triggered()
en_selectMode();
mview->selectedWindows();
}
void MWindow::on_actionZoom_Extents_triggered()
{
mview->AutoZoom();
}
......@@ -169,6 +169,7 @@ private slots:
void on_actionNew_Inifile_triggered();
void on_actionBack_to_Origin_triggered();
void on_actionZoom_Windows_triggered();
void on_actionZoom_Extents_triggered();
};
#endif // MAINWINDOW_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment