~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/widgets/common/ditemdelegate.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
public:
47
47
 
48
 
    DItemDelegate(DCategorizedView *parent);
 
48
    DItemDelegate(DCategorizedView* parent);
49
49
    ~DItemDelegate();
50
50
 
51
51
    /// Returns the gridsize to be set by the view. It's sizeHint plus spacing.
64
64
     *  the index, and optionally a parameter into which, if the return value is true,
65
65
     *  a rectangle can be written for which the return value will be true as well. */
66
66
    virtual bool acceptsToolTip(const QPoint& pos, const QRect& visualRect,
67
 
                                const QModelIndex& index, QRect *tooltipRect = 0) const = 0;
 
67
                                const QModelIndex& index, QRect* tooltipRect = 0) const = 0;
68
68
    virtual bool acceptsActivation(const QPoint& pos, const QRect& visualRect,
69
 
                                   const QModelIndex& index, QRect *activationRect = 0) const = 0;
 
69
                                   const QModelIndex& index, QRect* activationRect = 0) const = 0;
70
70
 
71
71
    // to be called by DCategorizedView only
72
 
    virtual void mouseMoved(QMouseEvent *e, const QRect& visualRect, const QModelIndex& index) = 0;
 
72
    virtual void mouseMoved(QMouseEvent* e, const QRect& visualRect, const QModelIndex& index) = 0;
73
73
 
74
 
    static QString squeezedText(const QFontMetrics &fm, int width, const QString& text);
 
74
    static QString squeezedText(const QFontMetrics& fm, int width, const QString& text);
75
75
    static QString dateToString(const QDateTime& datetime);
76
76
 
77
77
Q_SIGNALS: