Port away from KTextEdit.

This commit is contained in:
Andrius Štikonas 2014-05-17 02:14:18 +01:00
parent 14e9ecb779
commit a490106e75
3 changed files with 3 additions and 11 deletions

View File

@ -34,7 +34,7 @@ class ApplyProgressDetailsWidget : public QWidget, public Ui::ApplyProgressDetai
ApplyProgressDetailsWidget(QWidget* parent) : QWidget(parent) { setupUi(this); }
public:
KTextEdit& editReport() { Q_ASSERT(m_EditReport); return *m_EditReport; }
QTextEdit& editReport() { Q_ASSERT(m_EditReport); return *m_EditReport; }
QPushButton& buttonSave() { Q_ASSERT(m_ButtonSave); return *m_ButtonSave; }
QPushButton& buttonBrowser() { Q_ASSERT(m_ButtonBrowser); return *m_ButtonBrowser; }
};

View File

@ -12,7 +12,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="3">
<widget class="KTextEdit" name="m_EditReport">
<widget class="QTextEdit" name="m_EditReport">
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
@ -47,13 +47,6 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KTextEdit</class>
<extends>QTextEdit</extends>
<header>ktextedit.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -45,7 +45,6 @@
#include <krun.h>
#include <ktemporaryfile.h>
#include <kaboutdata.h>
#include <ktextedit.h>
#include <kio/netaccess.h>
#include <kio/jobuidelegate.h>
#include <kio/copyjob.h>
@ -231,7 +230,7 @@ void ApplyProgressDialog::allOpsDone(const QString& msg)
void ApplyProgressDialog::updateReport(bool force)
{
// Rendering the HTML in the KTextEdit is extremely expensive. So make sure not to do that
// Rendering the HTML in the QTextEdit is extremely expensive. So make sure not to do that
// unnecessarily and not too often:
// (1) If the widget isn't visible, don't update.
// (2) Also don't update if the last update was n msecs ago, BUT