~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/libs/widgets/common/dpopupmenu.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.2.15 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080717202539-6n7dtirbkoo7qvhd
Tags: 2:0.9.4-1
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 * 
10
10
 * Copyright (C) 1996-2000 the kicker authors.
11
11
 * Copyright (C) 2005 Mark Kretschmann <markey@web.de>
12
 
 * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
12
 * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
13
13
 *
14
14
 * This program is free software; you can redistribute it
15
15
 * and/or modify it under the terms of the GNU General
48
48
 
49
49
class DIGIKAM_EXPORT DPopupMenu : public KPopupMenu
50
50
{
51
 
    Q_OBJECT
52
51
 
53
52
public:
54
53
 
55
 
    DPopupMenu(QWidget *parent = 0, const char *name = 0);
 
54
    DPopupMenu(QWidget *parent=0, const char *name=0);
 
55
    ~DPopupMenu();
56
56
 
57
 
    int sidePixmapWidth() const { return _dpopupmenu_sidePixmap_.width(); }
 
57
    int sidePixmapWidth() const;
58
58
 
59
59
private:
60
60
 
67
67
    /** Calculates a color that matches the current colorscheme */
68
68
    QColor calcPixmapColor();
69
69
 
70
 
    void setMinimumSize( const QSize& s );
71
 
    void setMaximumSize( const QSize& s );
72
 
    void setMinimumSize( int w, int h );
73
 
    void setMaximumSize( int w, int h );
74
 
 
75
 
    void resizeEvent( QResizeEvent* e );
76
 
    void resize( int width, int height );
77
 
 
78
 
    void paintEvent( QPaintEvent* e );
79
 
 
80
 
private:
81
 
 
82
 
    static QImage _dpopupmenu_sidePixmap_;
83
 
    static QColor _dpopupmenu_sidePixmapColor_;
 
70
    void setMinimumSize(const QSize& s);
 
71
    void setMaximumSize(const QSize& s);
 
72
    void setMinimumSize(int w, int h);
 
73
    void setMaximumSize(int w, int h);
 
74
 
 
75
    void resizeEvent(QResizeEvent* e);
 
76
    void resize(int width, int height);
 
77
 
 
78
    void paintEvent(QPaintEvent* e);
84
79
};
85
80
 
86
81
}  // namespace Digikam