Skip to content

Commit 26edf6f

Browse files
committed
refactor GUI button 'Reset view' -> 'Fit view'
1 parent 75fedfd commit 26edf6f

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/ui/qt/main_window.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void MainWindow::on_tb_anchor_clicked(bool const is_checked) {
135135
}
136136

137137
//******************************************************************************
138-
void MainWindow::on_a_reset_triggered() {
138+
void MainWindow::on_a_fit_triggered() {
139139
ui->processing_view->get_current_state().scene->fit_containers();
140140
ui->processing_view->get_current_state().scene->fit_scene();
141141
ui->processing_view->fit();
@@ -272,7 +272,7 @@ void MainWindow::on_a_file_open_triggered() {
272272
oemsh.set_input(csx_file.toStdString());
273273
parse_and_display();
274274

275-
on_a_reset_triggered();
275+
on_a_fit_triggered();
276276
QGuiApplication::restoreOverrideCursor();
277277
}
278278
}
@@ -447,7 +447,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event) {
447447
if(event->key() == Qt::Key_E || event->key() == Qt::Key_Space) {
448448
on_a_edit_triggered();
449449
} else if(event->key() == Qt::Key_F) {
450-
on_a_reset_triggered();
450+
on_a_fit_triggered();
451451
} else if(event->modifiers() & Qt::ControlModifier && event->key() == Qt::Key_O) {
452452
on_a_file_open_triggered();
453453
} else if(event->modifiers() & Qt::ControlModifier && event->key() == Qt::Key_S) {

src/ui/qt/main_window.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private slots:
4747
void on_rb_plane_yz_toggled(bool const is_checked);
4848
void on_rb_plane_zx_toggled(bool const is_checked);
4949
void on_tb_anchor_clicked(bool const is_checked);
50-
void on_a_reset_triggered();
50+
void on_a_fit_triggered();
5151
void on_a_horizontal_layout_triggered();
5252
void on_a_vertical_layout_triggered();
5353
void on_tb_show_all_mesh_clicked();

src/ui/qt/main_window.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
<addaction name="a_mesh_prev"/>
361361
<addaction name="a_mesh_next"/>
362362
<addaction name="separator"/>
363-
<addaction name="a_reset"/>
363+
<addaction name="a_fit"/>
364364
<addaction name="separator"/>
365365
<addaction name="a_undo"/>
366366
<addaction name="a_redo"/>
@@ -391,12 +391,12 @@
391391
<string>Horizontal layout</string>
392392
</property>
393393
</action>
394-
<action name="a_reset">
394+
<action name="a_fit">
395395
<property name="text">
396396
<string>⊹</string>
397397
</property>
398398
<property name="toolTip">
399-
<string>Reset view</string>
399+
<string>Fit view</string>
400400
</property>
401401
<property name="icon">
402402
<iconset theme="QIcon::ThemeIcon::ZoomFitBest"/>

0 commit comments

Comments
 (0)