Changeset View
Changeset View
Standalone View
Standalone View
src/view/katemessagewidget.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
48 | m_messageWidget->setCloseButtonVisible(false); | 48 | m_messageWidget->setCloseButtonVisible(false); | ||
49 | 49 | | |||
50 | l->addWidget(m_messageWidget); | 50 | l->addWidget(m_messageWidget); | ||
51 | setLayout(l); | 51 | setLayout(l); | ||
52 | 52 | | |||
53 | // tell the widget to always use the minimum size. | 53 | // tell the widget to always use the minimum size. | ||
54 | setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); | 54 | setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); | ||
55 | 55 | | |||
56 | // install event filter so we catch the end of the hide animation | | |||
57 | m_messageWidget->installEventFilter(this); | | |||
58 | | ||||
59 | // by default, hide widgets | 56 | // by default, hide widgets | ||
60 | m_messageWidget->hide(); | 57 | m_messageWidget->hide(); | ||
61 | hide(); | 58 | hide(); | ||
62 | 59 | | |||
63 | // create animation controller, and connect widgetHidden() to showNextMessage() | 60 | // create animation controller, and connect widgetHidden() to showNextMessage() | ||
64 | m_animation = new KateAnimation(m_messageWidget, applyFadeEffect ? KateAnimation::FadeEffect : KateAnimation::GrowEffect); | 61 | m_animation = new KateAnimation(m_messageWidget, applyFadeEffect ? KateAnimation::FadeEffect : KateAnimation::GrowEffect); | ||
65 | connect(m_animation, SIGNAL(widgetHidden()), this, SLOT(showNextMessage())); | 62 | connect(m_animation, SIGNAL(widgetHidden()), this, SLOT(showNextMessage())); | ||
66 | 63 | | |||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |