mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-12 03:04:51 -04:00
--User changes
-Add a button to swap the pre and post affine values for all selected xforms. --Bug fixes -Remove the ability to change spinner values with +=-=, it was conflicting with other things and added no real value. -All file dialog opening in Linux would freeze. No longer using native file dialogs, they are broken. -Set default open path to the desktop if there is no settings file present, which will be the case on the first run. -Amphibole_Supergroup.ugr palette had an invalid character in two of the palette names. --Code changes -Change some table header padding styles to work with new Qt. Qss reload is required. -Ensure the open folder path setting always has a valid string in it before opening a folder.
This commit is contained in:
@ -242,6 +242,10 @@ bool SpinBox::eventFilter(QObject* o, QEvent* e)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dynamic_cast<QKeyEvent*>(e))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -259,7 +263,7 @@ void SpinBox::keyPressEvent(QKeyEvent* ke)
|
||||
bool shift = QGuiApplication::keyboardModifiers().testFlag(Qt::ShiftModifier);
|
||||
bool ctrl = QGuiApplication::keyboardModifiers().testFlag(Qt::ControlModifier);
|
||||
|
||||
if (ke->key() == Qt::Key_Plus || ke->key() == Qt::Key_Equal || ke->key() == Qt::Key_Up)
|
||||
if (ke->key() == Qt::Key_Up)
|
||||
{
|
||||
if (shift)
|
||||
{
|
||||
@ -271,8 +275,10 @@ void SpinBox::keyPressEvent(QKeyEvent* ke)
|
||||
setSingleStep(m_Step);
|
||||
setValue(value() + (ctrl ? m_Step * 10 : m_Step));
|
||||
}
|
||||
|
||||
ke->accept();
|
||||
}
|
||||
else if (ke->key() == Qt::Key_Minus || ke->key() == Qt::Key_Underscore || ke->key() == Qt::Key_Down)
|
||||
else if (ke->key() == Qt::Key_Down)
|
||||
{
|
||||
if (shift)
|
||||
{
|
||||
@ -284,6 +290,8 @@ void SpinBox::keyPressEvent(QKeyEvent* ke)
|
||||
setSingleStep(m_Step);
|
||||
setValue(value() - (ctrl ? m_Step * 10 : m_Step));
|
||||
}
|
||||
|
||||
ke->accept();
|
||||
}
|
||||
else
|
||||
QSpinBox::keyPressEvent(ke);
|
||||
|
Reference in New Issue
Block a user