History

reset view

- reset icon - resetView signal

stojce committed 13 years ago

Commit 4fe99641 parent b09e6575 files · +16 −6Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+3−1
@@ -685,7 +685,6 @@ void Application::keyPressEvent(QKeyEvent* event) { · 684 unmodified lines
685 685
686 case Qt::Key_Space:686 case Qt::Key_Space:
687 resetSensors();687 resetSensors();
688 _audio.reset();
689 break;688 break;
690 689
691 case Qt::Key_G:690 case Qt::Key_G:
@@ -1724,6 +1723,7 @@ void Application::init() { · 1032 unmodified lines
1724 connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView()));1723 connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView()));
1725 connect(_rearMirrorTools, SIGNAL(restoreView()), SLOT(restoreMirrorView()));1724 connect(_rearMirrorTools, SIGNAL(restoreView()), SLOT(restoreMirrorView()));
1726 connect(_rearMirrorTools, SIGNAL(shrinkView()), SLOT(shrinkMirrorView()));1725 connect(_rearMirrorTools, SIGNAL(shrinkView()), SLOT(shrinkMirrorView()));
1726 connect(_rearMirrorTools, SIGNAL(resetView()), SLOT(resetSensors()));
1727}1727}
1728 1728
1729void Application::closeMirrorView() {1729void Application::closeMirrorView() {
@@ -3777,6 +3777,8 @@ void Application::resetSensors() { · 2047 unmodified lines
3777 _myTransmitter.resetLevels();3777 _myTransmitter.resetLevels();
3778 _myAvatar.setVelocity(glm::vec3(0,0,0));3778 _myAvatar.setVelocity(glm::vec3(0,0,0));
3779 _myAvatar.setThrust(glm::vec3(0,0,0));3779 _myAvatar.setThrust(glm::vec3(0,0,0));
3780
3781 _audio.reset();
3780}3782}
3781 3783
3782static void setShortcutsEnabled(QWidget* widget, bool enabled) {3784static void setShortcutsEnabled(QWidget* widget, bool enabled) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t