mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 14:22:56 +02:00
Switched voxel size (back) to key +,- because ZoomIn and ZoomOut don’t seem to trigger (at least on my mac)
This commit is contained in:
parent
17f35ce97b
commit
d68a551940
2 changed files with 17 additions and 6 deletions
interface/src
|
@ -995,12 +995,23 @@ void Application::keyPressEvent(QKeyEvent* event) {
|
|||
deleteVoxelUnderCursor();
|
||||
}
|
||||
break;
|
||||
|
||||
case Qt::Key_Plus:
|
||||
_myAvatar.increaseSize();
|
||||
increaseVoxelSize();
|
||||
break;
|
||||
|
||||
case Qt::Key_Minus:
|
||||
_myAvatar.decreaseSize();
|
||||
decreaseVoxelSize();
|
||||
break;
|
||||
|
||||
case QKeySequence::ZoomIn:
|
||||
break;
|
||||
_myAvatar.increaseSize();
|
||||
|
||||
case QKeySequence::ZoomOut:
|
||||
break;
|
||||
_myAvatar.decreaseSize();
|
||||
|
||||
|
||||
case Qt::Key_1:
|
||||
case Qt::Key_2:
|
||||
|
|
|
@ -210,12 +210,12 @@ Menu::Menu() :
|
|||
|
||||
addActionToQMenuAndActionHash(toolsMenu,
|
||||
MenuOption::DecreaseVoxelSize,
|
||||
QKeySequence::ZoomOut,
|
||||
Qt::Key_Minus,
|
||||
appInstance,
|
||||
SLOT(decreaseVoxelSize()));
|
||||
addActionToQMenuAndActionHash(toolsMenu,
|
||||
MenuOption::IncreaseVoxelSize,
|
||||
QKeySequence::ZoomIn,
|
||||
Qt::Key_Plus,
|
||||
appInstance,
|
||||
SLOT(increaseVoxelSize()));
|
||||
addActionToQMenuAndActionHash(toolsMenu, MenuOption::ResetSwatchColors, 0, this, SLOT(resetSwatchColors()));
|
||||
|
@ -237,12 +237,12 @@ Menu::Menu() :
|
|||
|
||||
addActionToQMenuAndActionHash(avatarSizeMenu,
|
||||
MenuOption::IncreaseAvatarSize,
|
||||
Qt::Key_Plus,
|
||||
QKeySequence::ZoomIn,
|
||||
appInstance->getAvatar(),
|
||||
SLOT(increaseSize()));
|
||||
addActionToQMenuAndActionHash(avatarSizeMenu,
|
||||
MenuOption::DecreaseAvatarSize,
|
||||
Qt::Key_Minus,
|
||||
QKeySequence::ZoomOut,
|
||||
appInstance->getAvatar(),
|
||||
SLOT(decreaseSize()));
|
||||
addActionToQMenuAndActionHash(avatarSizeMenu,
|
||||
|
|
Loading…
Reference in a new issue