Text in Trainbottom window is word wrapped (#4582)

So messages can be seen in several lines if they are large, not truncated
This commit is contained in:
Peret
2024-12-20 14:30:40 +01:00
committed by GitHub
parent b224752c2b
commit 2979ed8790

View File

@@ -181,7 +181,7 @@ TrainBottom::TrainBottom(TrainSidebar *trainSidebar, QWidget *parent) :
notificationText->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
notificationText->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
notificationText->setTextInteractionFlags(Qt::NoTextInteraction);
notificationText->setLineWrapMode(QPlainTextEdit::NoWrap);
notificationText->setLineWrapMode(QPlainTextEdit::WidgetWidth);
//QCheckBox *hideOnIdle = new QCheckBox(tr("Auto Hide"), this);
//intensityControlLayout->addWidget(hideOnIdle);