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

« back to all changes in this revision

Viewing changes to digikam/kdatepickerpopup.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:
55
55
*/
56
56
class KDatePickerPopup: public KMenu
57
57
{
58
 
  Q_OBJECT
 
58
    Q_OBJECT
59
59
 
60
 
  public:
 
60
public:
61
61
 
62
62
    enum ItemFlag
63
63
    {
76
76
       @param parent The object's parent.
77
77
    */
78
78
    explicit KDatePickerPopup( Items items = DatePicker, const QDate& date = QDate::currentDate(),
79
 
                               QWidget *parent = 0 );
 
79
                               QWidget* parent = 0 );
80
80
 
81
81
    /**
82
82
       @return A pointer to the private variable mDatePicker, an instance of
83
83
       KDatePicker.
84
84
    */
85
 
    KDatePicker *datePicker() const;
 
85
    KDatePicker* datePicker() const;
86
86
 
87
87
    void setDate( const QDate& date );
88
88
 
93
93
    void setItems( int items = 1 );
94
94
#endif
95
95
    /** @return Returns the bitwise result of the active items in the popup. */
96
 
    int items() const { return mItems; }
 
96
    int items() const
 
97
    {
 
98
        return mItems;
 
99
    }
97
100
 
98
 
 Q_SIGNALS:
 
101
Q_SIGNALS:
99
102
 
100
103
    /**
101
104
      This signal emits the new date (selected with datepicker or other
125
128
 
126
129
private:
127
130
 
128
 
    KDatePicker *mDatePicker;
 
131
    KDatePicker* mDatePicker;
129
132
 
130
133
    Items        mItems;
131
134
};