Changeset View
Changeset View
Standalone View
Standalone View
src/konqframestatusbar.cpp
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 85 | { | |||
---|---|---|---|---|---|
88 | const QPixmap &pixmap = (isChecked() || isDown()) ? connectPixmap() : noConnectPixmap(); | 88 | const QPixmap &pixmap = (isChecked() || isDown()) ? connectPixmap() : noConnectPixmap(); | ||
89 | p.drawPixmap( | 89 | p.drawPixmap( | ||
90 | (width() - pixmap.width()) / 2, | 90 | (width() - pixmap.width()) / 2, | ||
91 | (height() - pixmap.height()) / 2, | 91 | (height() - pixmap.height()) / 2, | ||
92 | pixmap); | 92 | pixmap); | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | KonqFrameStatusBar::KonqFrameStatusBar(KonqFrame *_parent) | 95 | KonqFrameStatusBar::KonqFrameStatusBar(KonqFrame *_parent) | ||
96 | : KStatusBar(_parent), | 96 | : QStatusBar(_parent), | ||
97 | m_pParentKonqFrame(_parent), | 97 | m_pParentKonqFrame(_parent), | ||
98 | m_pStatusLabel(Q_NULLPTR) | 98 | m_pStatusLabel(Q_NULLPTR) | ||
99 | { | 99 | { | ||
100 | setSizeGripEnabled(false); | 100 | setSizeGripEnabled(false); | ||
101 | 101 | | |||
102 | // TODO remove active view indicator and use a different bg color like dolphin does? | 102 | // TODO remove active view indicator and use a different bg color like dolphin does? | ||
103 | // Works nicely for file management, but not so much with other parts... | 103 | // Works nicely for file management, but not so much with other parts... | ||
104 | m_led = new QLabel(this); | 104 | m_led = new QLabel(this); | ||
▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 188 | if (o == m_pStatusLabel && e->type() == QEvent::MouseButtonPress) { | |||
194 | return true; | 194 | return true; | ||
195 | } else if (o == this && e->type() == QEvent::ApplicationPaletteChange) { | 195 | } else if (o == this && e->type() == QEvent::ApplicationPaletteChange) { | ||
196 | //unsetPalette(); | 196 | //unsetPalette(); | ||
197 | setPalette(QPalette()); | 197 | setPalette(QPalette()); | ||
198 | updateActiveStatus(); | 198 | updateActiveStatus(); | ||
199 | return true; | 199 | return true; | ||
200 | } | 200 | } | ||
201 | 201 | | |||
202 | return KStatusBar::eventFilter(o, e); | 202 | return QStatusBar::eventFilter(o, e); | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | void KonqFrameStatusBar::message(const QString &msg) | 205 | void KonqFrameStatusBar::message(const QString &msg) | ||
206 | { | 206 | { | ||
207 | // We don't use the message()/clear() mechanism of QStatusBar because | 207 | // We don't use the message()/clear() mechanism of QStatusBar because | ||
208 | // it really looks ugly (the label border goes away, the active-view indicator | 208 | // it really looks ugly (the label border goes away, the active-view indicator | ||
209 | // is hidden...) | 209 | // is hidden...) | ||
210 | QString saveMsg = m_savedMessage; | 210 | QString saveMsg = m_savedMessage; | ||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |