equal
deleted
inserted
replaced
219 d->replaceScrollBar(scrollBar); |
219 d->replaceScrollBar(scrollBar); |
220 } |
220 } |
221 |
221 |
222 bool HgWidget::eventFilter(QObject *obj,QEvent *event) |
222 bool HgWidget::eventFilter(QObject *obj,QEvent *event) |
223 { |
223 { |
224 Q_D(HgWidget); |
224 // function is not used anymore, that is, event filter is not installed. |
225 switch (event->type() ) |
225 // Kept to keep the binary compability. |
226 { |
|
227 case QEvent::ApplicationActivate: |
|
228 { |
|
229 // d->gainedForeground(); |
|
230 break; |
|
231 } |
|
232 case QEvent::ApplicationDeactivate: |
|
233 { |
|
234 // d->lostForeground(); |
|
235 break; |
|
236 } |
|
237 case QEvent::GraphicsSceneResize: |
|
238 { |
|
239 d->adjustGeometry(); |
|
240 break; |
|
241 } |
|
242 default: |
|
243 break; |
|
244 } |
|
245 return QObject::eventFilter(obj, event); |
226 return QObject::eventFilter(obj, event); |
246 } |
227 } |
247 |
228 |
248 bool HgWidget::event(QEvent *event) |
229 bool HgWidget::event(QEvent *event) |
249 { |
230 { |