Summary: | Applet selector button placement and usability problems | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | David Nemeskey <nemeskey.david> |
Component: | Context View | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lfranchi, simon.esneault |
Priority: | NOR | ||
Version: | 2.2.2 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
David Nemeskey
2010-01-17 12:12:06 UTC
Confirmed with latest Amarok 2.2.3-git. commit b9c9453cf3258ea9c88ef960f2d729173eb67758 Author: Leo Franchi <lfranchi@kde.org> Date: Mon Feb 22 00:22:34 2010 -0500 fix off by one error left from porting from many-add-buttons to just one. CCBUG: 223113 diff --git a/src/context/toolbar/AppletItemOverlay.cpp b/src/context/toolbar/AppletItemOverlay.cpp index 1ccd6d2..8da1512 100644 --- a/src/context/toolbar/AppletItemOverlay.cpp +++ b/src/context/toolbar/AppletItemOverlay.cpp @@ -292,7 +292,7 @@ Context::AppletItemOverlay::mouseMoveEvent( QMouseEvent *event ) // swap items if we pass completely over the next/previous item or cross // more than halfway across it, whichever comes first - // debug() << m_prevGeom << g << m_nextGeom << addItemGeom; +// debug() << m_prevGeom << g << m_nextGeom << addItemGeom; if( m_prevGeom.isValid() && g.left() <= m_prevGeom.left() ) { swapWithPrevious(); @@ -303,7 +303,7 @@ Context::AppletItemOverlay::mouseMoveEvent( QMouseEvent *event ) swapWithNext(); } - // debug() << "================================="; +// debug() << "================================="; } void @@ -444,7 +444,7 @@ Context::AppletItemOverlay::syncGeometry() setGeometry( m_applet->geometry().toRect() ); // debug() << "setting overlay geometry to" << m_applet->geometry().toRect(); - if( m_index > 1 ) + if( m_index > 0 ) { if( m_layout->itemAt( m_index - 1 ) ) m_prevGeom = m_layout->itemAt( m_index - 1 )->geometry(); first part was fixed in old commit above, second part is no longer valid. |