| Summary: | Week view broken in timeline | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Gandalf Lechner <gandalflechner> |
| Component: | Searches-TimeLine | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.10.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.10.0 | |
| Sentry Crash Report: | |||
|
Description
Gandalf Lechner
2008-08-01 17:06:27 UTC
Marcel, it's certainly an issue with new database search tool. Gandalf, Is that the problem do not exist with 0.9.4 ? Gilles No, it's fine in 0.9.4 Fixed by marcel in current svn :
SVN commit 870444 by mwiesweg:
Change the cursor to PointingHand on the exact spot where a timeline
selection is possible, to indicate that it is just this area you are supposed to click.
M +26 -2 timelinewidget.cpp
--- trunk/extragear/graphics/digikam/utilities/timeline/timelinewidget.cpp #870443:870444
@@ -1520,12 +1520,36 @@
void TimeLineWidget::mouseMoveEvent(QMouseEvent *e)
{
+ // set cursor shape to indicate selection area
+ QRect selectionArea;
+ selectionArea.setTop(height() - d->bottomMargin + 1);
+ selectionArea.setLeft(0);
+ selectionArea.setBottom(height());
+ selectionArea.setRight(width());
+
+ bool sel;
+ QDateTime selEndDateTime;
+
+ if (selectionArea.contains(e->pos()))
+ {
+ selEndDateTime = dateTimeForPoint(e->pos(), &sel);
+ SelectionMode unused;
+ bool hasSelectableDates = statForDateTime(selEndDateTime, &unused);
+ if (hasSelectableDates)
+ setCursor(Qt::PointingHandCursor);
+ else
+ unsetCursor();
+ }
+ else
+ unsetCursor();
+
+ // handle move event
if (d->validMouseEvent == true)
{
QPoint pt(e->x(), e->y());
- bool sel;
- QDateTime selEndDateTime = dateTimeForPoint(pt, &sel);
+ if (selEndDateTime.isNull())
Gilles Caulier
|