[Digikam-devel] extragear/graphics/digikam/digikam
Gilles Caulier
caulier.gilles at gmail.com
Wed May 2 08:55:29 BST 2007
SVN commit 660292 by cgilles:
digikam from trunk : bug fix : since album item tool tip content can be large, the render os tool tip can be draw ouside the screen, especially with very large icon size.
This problem is relevant of the region used by tool tips to be positioned on screen. Old implementation used the album item icon rectangle. The new implementation use the region of icon item used to to open image in editor.
CCMAIL: digikam-devel at kde.org
M +6 -6 albumfiletip.cpp
M +4 -4 albumfiletip.h
M +6 -5 albumiconitem.cpp
M +6 -5 albumiconitem.h
--- trunk/extragear/graphics/digikam/digikam/albumfiletip.cpp #660291:660292
@@ -1,14 +1,14 @@
/* ============================================================
- * Authors: Renchi Raju <renchi at pooh.tam.uiuc.edu>
- * Caulier Gilles <caulier dot gilles at gmail dot com>
- * Date : 2004-08-19
+ * Authors : Renchi Raju
+ * Caulier Gilles
+ * Date : 2004-08-19
* Description : Album item file tip adapted from kfiletip
* (konqueror - konq_iconviewwidget.cc)
*
* Copyright (C) 1998-1999 by Torben Weis <weis at kde.org>
* Copyright (C) 2000-2002 by David Faure <david at mandrakesoft.com>
- * Copyright (C) 2004-2005 by Renchi Raju
- * Copyright (C) 2006-2007 by Gilles Caulier
+ * Copyright (C) 2004-2005 by Renchi Raju <renchi at pooh.tam.uiuc.edu>
+ * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
@@ -140,7 +140,7 @@
if (!d->iconItem)
return;
- QRect rect = d->iconItem->rect();
+ QRect rect = d->iconItem->clickToOpenRect();
rect.moveTopLeft(d->view->contentsToViewport(rect.topLeft()));
rect.moveTopLeft(d->view->viewport()->mapToGlobal(rect.topLeft()));
--- trunk/extragear/graphics/digikam/digikam/albumfiletip.h #660291:660292
@@ -1,13 +1,13 @@
/* ============================================================
- * Authors: Renchi Raju <renchi at pooh.tam.uiuc.edu>
- * Caulier Gilles
- * Date : 2004-08-19
+ * Authors : Renchi Raju
+ * Caulier Gilles
+ * Date : 2004-08-19
* Description : Album item file tip adapted from kfiletip
* (konqueror - konq_iconviewwidget.cc)
*
* Copyright (C) 1998-1999 by Torben Weis <weis at kde.org>
* Copyright (C) 2000-2002 by David Faure <david at mandrakesoft.com>
- * Copyright (C) 2004-2005 by Renchi Raju
+ * Copyright (C) 2004-2005 by Renchi Raju <renchi at pooh.tam.uiuc.edu>
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
--- trunk/extragear/graphics/digikam/digikam/albumiconitem.cpp #660291:660292
@@ -1,11 +1,12 @@
/* ============================================================
- * Authors: Renchi Raju <renchi at pooh.tam.uiuc.edu>
- * Gilles Caulier
- * Date : 2003-04-25
+ * Authors : Renchi Raju
+ * Gilles Caulier
+ * Date : 2003-04-25
* Description : implementation to render album icon item.
*
- * Copyright 2003-2005 by Renchi Raju by Gilles Caulier <caulier dot gilles at gmail dot com>
- * Copyright 2006 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright 2003-2005 by Renchi Raju <renchi at pooh.tam.uiuc.edu>
+ * Copyright 2003-2005 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
--- trunk/extragear/graphics/digikam/digikam/albumiconitem.h #660291:660292
@@ -1,11 +1,12 @@
/* ============================================================
- * Authors: Renchi Raju <renchi at pooh.tam.uiuc.edu>
- * Gilles Caulier
- * Date : 2003-04-25
+ * Authors : Renchi Raju
+ * Gilles Caulier
+ * Date : 2003-04-25
* Description : implementation to render album icon item.
*
- * Copyright 2003-2005 by Renchi Raju by Gilles Caulier <caulier dot gilles at gmail dot com>
- * Copyright 2006 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright 2003-2005 by Renchi Raju <renchi at pooh.tam.uiuc.edu>
+ * Copyright 2003-2005 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
More information about the Digikam-devel
mailing list