Commit 43da9240 authored by Gaston Haro's avatar Gaston Haro 🎨 Committed by Nate Graham
Browse files

Fixes printer-manager error messages from exceeding window dimenssions

Summary:
Set setWordWrap(true) on the various KMessageWidget used.
I could not test it as I was not able to produce an error message.

BUG: 415444

Test Plan: ?? Ideas

Reviewers: broulik, ngraham

Reviewed By: ngraham

Subscribers: ngraham, kde-utils-devel

Differential Revision: https://phabricator.kde.org/D28548
parent 1d30388f
......@@ -74,6 +74,7 @@ PageDestinations::PageDestinations(const QVariantHash &args, QWidget *parent) :
connect(m_chooseUri, &ChooseUri::allowProceed, this, &PageDestinations::allowProceed);
connect(m_chooseUri, &ChooseUri::startWorking, this, &PageDestinations::working);
connect(m_chooseUri, &ChooseUri::stopWorking, this, &PageDestinations::notWorking);
ui->messageWidget->setWordWrap(true);
connect(m_chooseUri, &ChooseUri::errorMessage, ui->messageWidget, &KMessageWidget::setText);
connect(m_chooseUri, &ChooseUri::errorMessage, ui->messageWidget, &KMessageWidget::animatedShow);
connect(m_chooseUri, &ChooseUri::insertDevice, this, &PageDestinations::insertDevice);
......
......@@ -60,7 +60,8 @@ SelectMakeModel::SelectMakeModel(QWidget *parent) :
{
ui->setupUi(this);
// Configure the erro message widget
// Configure the error message widget
ui->messageWidget->setWordWrap(true);
ui->messageWidget->setMessageType(KMessageWidget::Error);
ui->messageWidget->hide();
......
......@@ -65,7 +65,7 @@ PrinterDescription::PrinterDescription(QWidget *parent) :
ui->actionCleanPrintHeads->setVisible(false);
ui->actionPrintSelfTestPage->setVisible(false);
ui->maintenancePB->setMenu(menu);
ui->errorMessage->setWordWrap(true);
ui->errorMessage->setMessageType(KMessageWidget::Error);
ui->errorMessage->hide();
}
......
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