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

« back to all changes in this revision

Viewing changes to lib/invisiblebuttongroup.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>
32
32
 
33
33
class QAbstractButton;
34
34
 
35
 
namespace Gwenview {
36
 
 
 
35
namespace Gwenview
 
36
{
37
37
 
38
38
struct InvisibleButtonGroupPrivate;
39
39
/**
75
75
 * group->addButton(ui->detailRadioButton, 2);
76
76
 * @endcode
77
77
 */
78
 
class GWENVIEWLIB_EXPORT InvisibleButtonGroup : public QWidget {
79
 
        Q_OBJECT
80
 
        Q_PROPERTY(int current READ selected WRITE setSelected)
 
78
class GWENVIEWLIB_EXPORT InvisibleButtonGroup : public QWidget
 
79
{
 
80
    Q_OBJECT
 
81
    Q_PROPERTY(int current READ selected WRITE setSelected)
81
82
public:
82
 
        explicit InvisibleButtonGroup(QWidget* parent = 0);
83
 
        ~InvisibleButtonGroup();
84
 
 
85
 
        int selected() const;
86
 
 
87
 
        void addButton(QAbstractButton* button, int id);
 
83
    explicit InvisibleButtonGroup(QWidget* parent = 0);
 
84
    ~InvisibleButtonGroup();
 
85
 
 
86
    int selected() const;
 
87
 
 
88
    void addButton(QAbstractButton* button, int id);
88
89
 
89
90
public Q_SLOTS:
90
 
        void setSelected(int id);
 
91
    void setSelected(int id);
91
92
 
92
93
Q_SIGNALS:
93
 
        void selectionChanged(int id);
 
94
    void selectionChanged(int id);
94
95
 
95
96
private:
96
 
        InvisibleButtonGroupPrivate* const d;
 
97
    InvisibleButtonGroupPrivate* const d;
97
98
};
98
99
 
99
 
 
100
100
} // namespace
101
101
 
102
102
#endif /* INVISIBLEBUTTONGROUP_H */