History

Changed avatar resizing shortcuts to plus and minus.

atlante45 committed 13 years ago

Commit e9a53ed1 parent 8c112cb1 file · +4 −9Browse files

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

Unified · Split

interface/src/Application.cpp+4−9
@@ -571,7 +571,6 @@ void Application::keyPressEvent(QKeyEvent* event) { · 570 unmodified lines
571 _myAvatar.getHand().setRaveGloveEffectsMode((QKeyEvent*)event);571 _myAvatar.getHand().setRaveGloveEffectsMode((QKeyEvent*)event);
572 }572 }
573 573
574 bool alt = event->modifiers().testFlag(Qt::AltModifier);
575 bool meta = event->modifiers().testFlag(Qt::MetaModifier);574 bool meta = event->modifiers().testFlag(Qt::MetaModifier);
576 bool shifted = event->modifiers().testFlag(Qt::ShiftModifier);575 bool shifted = event->modifiers().testFlag(Qt::ShiftModifier);
577 switch (event->key()) {576 switch (event->key()) {
@@ -825,14 +824,10 @@ void Application::keyPressEvent(QKeyEvent* event) { · 247 unmodified lines
825 }824 }
826 break;825 break;
827 case Qt::Key_Plus:826 case Qt::Key_Plus:
828 if (alt) {827 increaseAvatarSize();
829 increaseAvatarSize();
830 }
831 break;828 break;
832 case Qt::Key_Minus:829 case Qt::Key_Minus:
833 if (alt) {830 decreaseAvatarSize();
834 decreaseAvatarSize();
835 }
836 break;831 break;
837 832
838 case Qt::Key_1:833 case Qt::Key_1:
@@ -1926,8 +1921,8 @@ void Application::initMenu() { · 1087 unmodified lines
1926 "First Person", this, SLOT(setRenderFirstPerson(bool)), Qt::Key_P))->setCheckable(true);1921 "First Person", this, SLOT(setRenderFirstPerson(bool)), Qt::Key_P))->setCheckable(true);
1927 (_manualThirdPerson = renderMenu->addAction(1922 (_manualThirdPerson = renderMenu->addAction(
1928 "Third Person", this, SLOT(setRenderThirdPerson(bool))))->setCheckable(true);1923 "Third Person", this, SLOT(setRenderThirdPerson(bool))))->setCheckable(true);
1929 renderMenu->addAction("Increase Avatar Size", this, SLOT(increaseAvatarSize()), Qt::ALT | Qt::Key_Plus);1924 renderMenu->addAction("Increase Avatar Size", this, SLOT(increaseAvatarSize()), Qt::Key_Plus);
1930 renderMenu->addAction("Decrease Avatar Size", this, SLOT(decreaseAvatarSize()), Qt::ALT | Qt::Key_Minus);1925 renderMenu->addAction("Decrease Avatar Size", this, SLOT(decreaseAvatarSize()), Qt::Key_Minus);
1931 1926
1932 1927
1933 QMenu* toolsMenu = menuBar->addMenu("Tools");1928 QMenu* toolsMenu = menuBar->addMenu("Tools");

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