[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/rssnow
From: Marco Martin <notmart () gmail ! com>
Date: 2009-04-30 21:32:44
Message-ID: 1241127164.977837.10882.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 961898 by mart:
don't put all items at 0,0 position when resizing (even the ones
currenctly animating so clipped away)
BUG:191052
M +2 -3 scroller.cpp
M +1 -1 scroller.h
--- trunk/KDE/kdeplasma-addons/applets/rssnow/scroller.cpp #961897:961898
@@ -194,7 +194,7 @@
void Scroller::doAnimation()
{
if (m_list->size() > 1) {
- if (m_animations) {
+ if (m_animations && m_animid == 0) {
SingleFeedItem * item = new SingleFeedItem(this);
item->setFeedData(m_list->at(m_current));
item->setDisplayExtra(m_hovered);
@@ -294,11 +294,10 @@
QRect rect;
rect.setWidth(width);
rect.setHeight(height);
- if (m_itemlist != 0) {
+ if (m_itemlist != 0 && !m_animid) {
for (int i = 0; i < m_itemlist->size(); i++) {
item = m_itemlist->at(i);
item->setRect(rect);
- item->setPos( 0, 0);
}
}
if (m_left != 0) {
--- trunk/KDE/kdeplasma-addons/applets/rssnow/scroller.h #961897:961898
@@ -91,7 +91,7 @@
int m_animid;
int m_current;
int m_animdirection;
- int m_animations;
+ bool m_animations;
//how many times has the user clicked / scrolled next or previous
//while the current animation is being displayed.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic