[Konversation-devel] [Bug 215256] Konversations use 100% cpu doing nothing special.

Travis McHenry wordsizzle at gmail.com
Tue Feb 2 07:02:33 CET 2010


--- Comment #17 from Travis McHenry <wordsizzle gmail com>  2010-02-02 07:02:30 ---
commit 625788909b07c101bedd6d4a2e7ef0accfac3dff
Author: Travis McHenry <wordsizzle at gmail.com>
Date:   Mon Feb 1 22:58:20 2010 -0700

    Potentially fix the 100% proc issue
    This commit will hopefully solve the issue many users have been
    having with Qt-4.6.x+konversation+kde4.4. The 100% usage is
    roughly cuased by a lot of scrollbar/relayouting nonsense.
    To prevent this from happening we make it so no recalculating
    needs to occur, by making the horizontal scrollbar AlwaysOff.
    If you experienced this bug please test this and provide feedback.

diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp
index 7873801..df01360 100644
--- a/src/viewer/ircview.cpp
+++ b/src/viewer/ircview.cpp
@@ -234,6 +234,11 @@ IRCView::IRCView(QWidget* parent, Server* newServer) :
KTextBrowser(parent), m_n

     if (Preferences::self()->useParagraphSpacing()) enableParagraphSpacing();
+    //HACK to workaround an issue with the QTextDocument
+    //doing a relayout/scrollbar over and over resulting in 100%
+    //proc usage. See bug 215256
+    setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);


Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Konversation-devel mailing list