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

Travis McHenry wordsizzle at gmail.com
Wed Feb 3 16:47:21 CET 2010


https://bugs.kde.org/show_bug.cgi?id=215256





--- Comment #19 from Travis McHenry <wordsizzle gmail com>  2010-02-03 16:47:18 ---
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.
    CCBUG:215256

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
     setServer(newServer);

     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);
 }

 IRCView::~IRCView()

-- 
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