Port away from KTextEdit.
This commit is contained in:
parent
14e9ecb779
commit
a490106e75
|
@ -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; }
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue