Core: Fix 'Result' message text not wrapped in Expression editor

This commit is contained in:
B0cho
2025-08-04 22:13:17 +02:00
parent 8b93ec2eb2
commit 2ab3eaba21
6 changed files with 69 additions and 26 deletions

View File

@@ -77,7 +77,6 @@ public:
bool discardedFormula() const { return discarded; }
QPoint expressionPosition() const;
void setExpressionInputSize(int width, int height);
public Q_SLOTS:
void show();
@@ -86,6 +85,7 @@ public Q_SLOTS:
protected:
void mouseReleaseEvent(QMouseEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void resizeEvent(QResizeEvent* event) override;
private:
Base::Type getTypePath();
@@ -109,6 +109,7 @@ private:
const App::DocumentObject* obj, QString& message) const;
bool isGroupNameValid(const QString& nameGroup,
QString& message) const;
void setMsgText();
private Q_SLOTS:
void textChanged();
@@ -127,7 +128,7 @@ private:
const Base::Unit impliedUnit;
NumberRange numberRange;
int minimumWidth;
std::string message;
bool varSetsVisible;
QPushButton* okBtn = nullptr;