Commit d9bf6f53 authored by Kitae Kim's avatar Kitae Kim Committed by Nate Graham

Enable wrapping of error messages which use KMessageWidget

Summary: Error messages should be shown to users no matter how much long it is.

Reviewers: #vdg, #plasma, #frameworks, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: davidedmundson, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28200
parent 73f3855e
......@@ -144,6 +144,7 @@ Dialog::Dialog(QObject *parent)
d->message = new KMessageWidget(this);
d->message->setMessageType(KMessageWidget::Error);
d->message->setVisible(false);
d->message->setWordWrap(true);
d->layout->addWidget(d->message);
// Tabs
......
......@@ -74,6 +74,7 @@ JoyWidget::JoyWidget(QWidget *parent)
messageBox->setMessageType(KMessageWidget::Error);
messageBox->setCloseButtonVisible(false);
messageBox->hide();
messageBox->setWordWrap(true);
mainVbox->addWidget(messageBox);
}
......
......@@ -133,6 +133,7 @@ TouchpadConfigXlib::TouchpadConfigXlib(TouchpadConfigContainer *parent, Touchpad
m_errorMessage = new KMessageWidget(this);
m_errorMessage->setMessageType(KMessageWidget::Error);
m_errorMessage->setVisible(false);
m_errorMessage->setWordWrap(true);
messageLayout->addWidget(m_errorMessage);
m_configOutOfSyncMessage = new KMessageWidget(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment