Make text selectable just by mouse (Qt::TextSelectableByMouse) in

fealure applet text (otherwise we was able to change text...)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757582
This commit is contained in:
Laurent Montel 2008-01-05 13:00:10 +00:00
parent ec09262001
commit ed93750db3

View File

@ -713,6 +713,7 @@ void Applet::setFailedToLaunch(bool failed, const QString& reason)
Layout* failureLayout = new BoxLayout(BoxLayout::TopToBottom, this);
failureLayout->setMargin(0);
d->failureText = new LineEdit(this);
d->failureText->setTextInteractionFlags( Qt::TextSelectableByMouse );
d->failureText->setStyled(false);
d->failureText->document()->setTextWidth(200);
d->failureText->setHtml(visibleFailureText(reason));