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
571571 _myAvatar.getHand().setRaveGloveEffectsMode((QKeyEvent*)event);
572572 }
573573
574− bool alt = event->modifiers().testFlag(Qt::AltModifier);
575574 bool meta = event->modifiers().testFlag(Qt::MetaModifier);
576575 bool shifted = event->modifiers().testFlag(Qt::ShiftModifier);
577576 switch (event->key()) {
@@ -825,14 +824,10 @@ void Application::keyPressEvent(QKeyEvent* event) { · 247 unmodified lines
825824 }
826825 break;
827826 case Qt::Key_Plus:
828− if (alt) {
829− increaseAvatarSize();
830− }
827+ increaseAvatarSize();
831828 break;
832829 case Qt::Key_Minus:
833− if (alt) {
834− decreaseAvatarSize();
835− }
830+ decreaseAvatarSize();
836831 break;
837832
838833 case Qt::Key_1:
@@ -1926,8 +1921,8 @@ void Application::initMenu() { · 1087 unmodified lines
19261921 "First Person", this, SLOT(setRenderFirstPerson(bool)), Qt::Key_P))->setCheckable(true);
19271922 (_manualThirdPerson = renderMenu->addAction(
19281923 "Third Person", this, SLOT(setRenderThirdPerson(bool))))->setCheckable(true);
1929− renderMenu->addAction("Increase Avatar Size", this, SLOT(increaseAvatarSize()), Qt::ALT | Qt::Key_Plus);
1930− renderMenu->addAction("Decrease Avatar Size", this, SLOT(decreaseAvatarSize()), Qt::ALT | Qt::Key_Minus);
1924+ renderMenu->addAction("Increase Avatar Size", this, SLOT(increaseAvatarSize()), Qt::Key_Plus);
1925+ renderMenu->addAction("Decrease Avatar Size", this, SLOT(decreaseAvatarSize()), Qt::Key_Minus);
19311926
19321927
19331928 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