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: [hidden email] 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 <[hidden email]> - * 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 <[hidden email]> * Copyright (C) 2000-2002 by David Faure <[hidden email]> - * Copyright (C) 2004-2005 by Renchi Raju - * Copyright (C) 2006-2007 by Gilles Caulier + * Copyright (C) 2004-2005 by Renchi Raju <[hidden email]> + * 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 <[hidden email]> - * 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 <[hidden email]> * Copyright (C) 2000-2002 by David Faure <[hidden email]> - * Copyright (C) 2004-2005 by Renchi Raju + * Copyright (C) 2004-2005 by Renchi Raju <[hidden email]> * 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 <[hidden email]> - * 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 <[hidden email]> + * 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 <[hidden email]> - * 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 <[hidden email]> + * 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 _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |