All pastes #907590 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-17 19:32 UTC
rendered paste body
diff --git a/workspace/libs/plasma/applet.cpp b/workspace/libs/plasma/applet.cpp
index 0247527..f87dc89 100644
--- a/workspace/libs/plasma/applet.cpp
+++ b/workspace/libs/plasma/applet.cpp
@@ -650,9 +650,10 @@ void Applet::setFailedToLaunch(bool failed, const QString& reason)
 
     if (failed) {
         setDrawStandardBackground(true);
-        QGraphicsLinearLayout* failureLayout = new QGraphicsLinearLayout(Qt::Vertical, this);
-        failureLayout->setContentsMargins(0,0,0,0);
-        d->failureText = new Plasma::LineEdit;
+	//FIXME: reenable the layout
+        //QGraphicsLinearLayout* failureLayout = new QGraphicsLinearLayout(Qt::Vertical, this);
+        //failureLayout->setContentsMargins(0,0,0,0);
+        d->failureText = new Plasma::LineEdit(this);
         d->failureText->setStyled(false);
         d->failureText->document()->setTextWidth(200);
         d->failureText->setTextInteractionFlags(Qt::TextSelectableByMouse);
@@ -662,7 +663,7 @@ void Applet::setFailedToLaunch(bool failed, const QString& reason)
                                                            KColorScheme::NormalText,
                                                            Theme::self()->colors())
                                                         .brush(QPalette::Normal).color());
-        failureLayout->addItem(d->failureText);
+        //failureLayout->addItem(d->failureText);
         setGeometry(QRectF(geometry().topLeft(), d->failureText->sizeHint(Qt::PreferredSize)));
     }