~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/widgetfloater.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
30
30
 
31
31
// Local
32
32
 
33
 
namespace Gwenview {
34
 
 
 
33
namespace Gwenview
 
34
{
35
35
 
36
36
struct WidgetFloaterPrivate;
37
37
 
40
40
 * another (the parent), ensuring the child remains aligned as specified by
41
41
 * setAlignment() whenever either widget get resized.
42
42
 */
43
 
class GWENVIEWLIB_EXPORT WidgetFloater : public QObject {
44
 
        Q_OBJECT
 
43
class GWENVIEWLIB_EXPORT WidgetFloater : public QObject
 
44
{
 
45
    Q_OBJECT
45
46
public:
46
 
        WidgetFloater(QWidget* parent);
47
 
        ~WidgetFloater();
48
 
 
49
 
        void setChildWidget(QWidget*);
50
 
 
51
 
        void setAlignment(Qt::Alignment);
52
 
 
53
 
        void setHorizontalMargin(int);
54
 
        int horizontalMargin() const;
55
 
 
56
 
        void setVerticalMargin(int);
57
 
        int verticalMargin() const;
 
47
    WidgetFloater(QWidget* parent);
 
48
    ~WidgetFloater();
 
49
 
 
50
    void setChildWidget(QWidget*);
 
51
 
 
52
    void setAlignment(Qt::Alignment);
 
53
 
 
54
    void setHorizontalMargin(int);
 
55
    int horizontalMargin() const;
 
56
 
 
57
    void setVerticalMargin(int);
 
58
    int verticalMargin() const;
58
59
 
59
60
protected:
60
 
        bool eventFilter(QObject*, QEvent*);
 
61
    bool eventFilter(QObject*, QEvent*);
61
62
 
62
63
private:
63
 
        WidgetFloaterPrivate* const d;
 
64
    WidgetFloaterPrivate* const d;
64
65
};
65
66
 
66
 
 
67
67
} // namespace
68
68
 
69
69
#endif /* WIDGETFLOATER_H */