Diffstat (limited to 'core/pim/datebook/datebookdayallday.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayallday.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/datebook/datebookdayallday.cpp b/core/pim/datebook/datebookdayallday.cpp index 6014eca..2294f3c 100644 --- a/core/pim/datebook/datebookdayallday.cpp +++ b/core/pim/datebook/datebookdayallday.cpp | |||
@@ -37,13 +37,14 @@ DatebookdayAllday::DatebookdayAllday(DateBookDB* db, QWidget* parent, const cha | |||
37 | setMinimumSize( QSize( 0, 0 ) ); | 37 | setMinimumSize( QSize( 0, 0 ) ); |
38 | setMaximumHeight(3* (QFontMetrics(font()).height()+4) ); | 38 | setMaximumHeight(3* (QFontMetrics(font()).height()+4) ); |
39 | 39 | ||
40 | m_MainFrame = new QFrame(viewport()); | 40 | m_MainFrame = new QFrame(viewport()); |
41 | m_MainFrame->setFrameStyle(QFrame::NoFrame|QFrame::Plain); | 41 | m_MainFrame->setFrameStyle(QFrame::NoFrame|QFrame::Plain); |
42 | setFrameStyle(QFrame::NoFrame|QFrame::Plain); | 42 | setFrameStyle(QFrame::NoFrame|QFrame::Plain); |
43 | setResizePolicy( QScrollView::AutoOneFit ); | 43 | setResizePolicy( QScrollView::Default ); |
44 | setHScrollBarMode( AlwaysOff ); | ||
44 | addChild(m_MainFrame); | 45 | addChild(m_MainFrame); |
45 | 46 | ||
46 | datebookdayalldayLayout = new QVBoxLayout( m_MainFrame ); | 47 | datebookdayalldayLayout = new QVBoxLayout( m_MainFrame ); |
47 | datebookdayalldayLayout->setSpacing( 0 ); | 48 | datebookdayalldayLayout->setSpacing( 0 ); |
48 | datebookdayalldayLayout->setMargin( 0 ); | 49 | datebookdayalldayLayout->setMargin( 0 ); |
49 | 50 | ||
@@ -62,12 +63,13 @@ DatebookdayAllday::~DatebookdayAllday() | |||
62 | } | 63 | } |
63 | 64 | ||
64 | DatebookAlldayDisp* DatebookdayAllday::addEvent(const EffectiveEvent&ev) | 65 | DatebookAlldayDisp* DatebookdayAllday::addEvent(const EffectiveEvent&ev) |
65 | { | 66 | { |
66 | DatebookAlldayDisp * lb; | 67 | DatebookAlldayDisp * lb; |
67 | lb = new DatebookAlldayDisp(dateBook,ev,m_MainFrame,NULL); | 68 | lb = new DatebookAlldayDisp(dateBook,ev,m_MainFrame,NULL); |
69 | lb->show(); | ||
68 | datebookdayalldayLayout->addWidget(lb); | 70 | datebookdayalldayLayout->addWidget(lb); |
69 | subWidgets.append(lb); | 71 | subWidgets.append(lb); |
70 | 72 | ||
71 | connect(lb,SIGNAL(displayMe(const Event &)),lblDesc,SLOT(disp_event(const Event&))); | 73 | connect(lb,SIGNAL(displayMe(const Event &)),lblDesc,SLOT(disp_event(const Event&))); |
72 | ++item_count; | 74 | ++item_count; |
73 | 75 | ||