+#ifdef HAVE_KDE
+//This is done to make the KTextEdit look like a lineedit
+ setMaximumHeight(document()->size().toSize().height());
+ setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ setAcceptRichText(false);
+ setLineWrapMode(NoWrap);
+ enableFindReplace(false);
+ connect(this, SIGNAL(textChanged()), this, SLOT(on_textChanged()));
+#endif
+