[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Bug 165148] Bookmarks' blue mark in the scrollbar not in sync with
From:       Carlos Licea <carlos_licea () hotmail ! com>
Date:       2008-06-28 6:26:23
Message-ID: 20080628062623.15094.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=165148         




------- Additional Comments From carlos_licea hotmail com  2008-06-28 08:26 -------
My guess was totally wrong, the problem is that m_topMargin is calculated wrongly. \
It's exactly the double +1 of what it should be (in my computer should be 16 and it's \
actually 33) and hence m_bottomMargin is wrong too.

This solves it in my computer:
m_topMargin = style()->subControlRect(QStyle::CC_ScrollBar, &opt, \
QStyle::SC_ScrollBarSubLine, this).height()/2 + 2 ; m_bottomMargin = m_topMargin + \
style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarAddLine, \
this).height()/2;

I checked the docs everything should be ok, not sure why this is happening.
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic