+ fix bug in read-only InputField, minor Utf-8 issue in meshing dialog
This commit is contained in:
parent
bab894b775
commit
197aa0c85c
|
@ -497,6 +497,11 @@ void InputField::focusInEvent(QFocusEvent * event)
|
|||
|
||||
void InputField::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (isReadOnly()) {
|
||||
QLineEdit::keyPressEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (event->key()) {
|
||||
case Qt::Key_Up:
|
||||
{
|
||||
|
@ -520,6 +525,11 @@ void InputField::keyPressEvent(QKeyEvent *event)
|
|||
|
||||
void InputField::wheelEvent (QWheelEvent * event)
|
||||
{
|
||||
if (isReadOnly()) {
|
||||
QLineEdit::wheelEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
double step = event->delta() > 0 ? StepSize : -StepSize;
|
||||
double val = actUnitValue + step;
|
||||
if (val > Maximum)
|
||||
|
|
|
@ -318,7 +318,7 @@ bool Tessellation::accept()
|
|||
.arg(label);
|
||||
}
|
||||
}
|
||||
Gui::Command::doCommand(Gui::Command::Doc, (const char*)cmd.toAscii());
|
||||
Gui::Command::doCommand(Gui::Command::Doc, (const char*)cmd.toUtf8());
|
||||
}
|
||||
activeDoc->commitTransaction();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user