-rw-r--r-- | library/datebookmonth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/datebookmonth.cpp b/library/datebookmonth.cpp index b2074e6..f4b3e6b 100644 --- a/library/datebookmonth.cpp +++ b/library/datebookmonth.cpp | |||
@@ -33,49 +33,49 @@ | |||
33 | #include <qpopupmenu.h> | 33 | #include <qpopupmenu.h> |
34 | 34 | ||
35 | 35 | ||
36 | DateBookMonthHeader::DateBookMonthHeader( QWidget *parent, const char *name ) | 36 | DateBookMonthHeader::DateBookMonthHeader( QWidget *parent, const char *name ) |
37 | : QHBox( parent, name ) | 37 | : QHBox( parent, name ) |
38 | { | 38 | { |
39 | setBackgroundMode( PaletteButton ); | 39 | setBackgroundMode( PaletteButton ); |
40 | 40 | ||
41 | begin = new QToolButton( this ); | 41 | begin = new QToolButton( this ); |
42 | begin->setFocusPolicy(NoFocus); | 42 | begin->setFocusPolicy(NoFocus); |
43 | begin->setPixmap( Resource::loadPixmap( "start" ) ); | 43 | begin->setPixmap( Resource::loadPixmap( "start" ) ); |
44 | begin->setAutoRaise( TRUE ); | 44 | begin->setAutoRaise( TRUE ); |
45 | begin->setFixedSize( begin->sizeHint() ); | 45 | begin->setFixedSize( begin->sizeHint() ); |
46 | 46 | ||
47 | back = new QToolButton( this ); | 47 | back = new QToolButton( this ); |
48 | back->setFocusPolicy(NoFocus); | 48 | back->setFocusPolicy(NoFocus); |
49 | back->setPixmap( Resource::loadPixmap( "back" ) ); | 49 | back->setPixmap( Resource::loadPixmap( "back" ) ); |
50 | back->setAutoRaise( TRUE ); | 50 | back->setAutoRaise( TRUE ); |
51 | back->setFixedSize( back->sizeHint() ); | 51 | back->setFixedSize( back->sizeHint() ); |
52 | 52 | ||
53 | month = new QComboBox( FALSE, this ); | 53 | month = new QComboBox( FALSE, this ); |
54 | for ( int i = 0; i < 12; ++i ) | 54 | for ( int i = 0; i < 12; ++i ) |
55 | month->insertItem( Calendar::nameOfMonth( i + 1 ) ); | 55 | month->insertItem( Calendar::nameOfMonth( i + 1 ) ); |
56 | 56 | ||
57 | year = new QSpinBox( 1970, 2037, 1, this ); | 57 | year = new QSpinBox( 1752, 8000, 1, this ); |
58 | 58 | ||
59 | next = new QToolButton( this ); | 59 | next = new QToolButton( this ); |
60 | next->setFocusPolicy(NoFocus); | 60 | next->setFocusPolicy(NoFocus); |
61 | next->setPixmap( Resource::loadPixmap( "forward" ) ); | 61 | next->setPixmap( Resource::loadPixmap( "forward" ) ); |
62 | next->setAutoRaise( TRUE ); | 62 | next->setAutoRaise( TRUE ); |
63 | next->setFixedSize( next->sizeHint() ); | 63 | next->setFixedSize( next->sizeHint() ); |
64 | 64 | ||
65 | end = new QToolButton( this ); | 65 | end = new QToolButton( this ); |
66 | end->setFocusPolicy(NoFocus); | 66 | end->setFocusPolicy(NoFocus); |
67 | end->setPixmap( Resource::loadPixmap( "finish" ) ); | 67 | end->setPixmap( Resource::loadPixmap( "finish" ) ); |
68 | end->setAutoRaise( TRUE ); | 68 | end->setAutoRaise( TRUE ); |
69 | end->setFixedSize( end->sizeHint() ); | 69 | end->setFixedSize( end->sizeHint() ); |
70 | 70 | ||
71 | connect( month, SIGNAL( activated( int ) ), | 71 | connect( month, SIGNAL( activated( int ) ), |
72 | this, SLOT( updateDate() ) ); | 72 | this, SLOT( updateDate() ) ); |
73 | connect( year, SIGNAL( valueChanged( int ) ), | 73 | connect( year, SIGNAL( valueChanged( int ) ), |
74 | this, SLOT( updateDate() ) ); | 74 | this, SLOT( updateDate() ) ); |
75 | connect( begin, SIGNAL( clicked() ), | 75 | connect( begin, SIGNAL( clicked() ), |
76 | this, SLOT( firstMonth() ) ); | 76 | this, SLOT( firstMonth() ) ); |
77 | connect( end, SIGNAL( clicked() ), | 77 | connect( end, SIGNAL( clicked() ), |
78 | this, SLOT( lastMonth() ) ); | 78 | this, SLOT( lastMonth() ) ); |
79 | connect( back, SIGNAL( clicked() ), | 79 | connect( back, SIGNAL( clicked() ), |
80 | this, SLOT( monthBack() ) ); | 80 | this, SLOT( monthBack() ) ); |
81 | connect( next, SIGNAL( clicked() ), | 81 | connect( next, SIGNAL( clicked() ), |