24 QObjectList children = w->children();
25 for (
int i = 0; i < children.size(); i++ )
27 QwtPicker* picker = qobject_cast< QwtPicker* >( children[i] );
92 setAttribute( Qt::WA_TransparentForMouseEvents );
93 setAttribute( Qt::WA_NoSystemBackground );
94 setFocusPolicy( Qt::NoFocus );
111 Qt::KeyboardModifiers modifiers )
119 Qt::KeyboardModifiers& modifiers )
const
133 Qt::KeyboardModifiers modifiers )
141 Qt::KeyboardModifiers& modifiers )
const
172 if ( parentWidget() )
173 return parentWidget()->cursor();
194 QWidget* w = parentWidget();
199 w->installEventFilter(
this );
203 w->removeEventFilter(
this );
260 r.moveCenter( QPointF( r.center().x() + dx, r.center().y() + dy ) );
265 QPainter painter( &pm );
271 painter.drawPixmap( r.toRect(), masked );
283 painter.begin(
this );
284 painter.setClipRegion( event->region() );
285 painter.drawPixmap( 0, 0, pm );
308 #if QT_VERSION >= 0x050000
309 return parentWidget()->grab( parentWidget()->rect() );
311 return QPixmap::grabWidget( parentWidget() );
332 if (
object == NULL ||
object != parentWidget() )
335 switch ( event->type() )
337 case QEvent::MouseButtonPress:
342 case QEvent::MouseMove:
347 case QEvent::MouseButtonRelease:
352 case QEvent::KeyPress:
357 case QEvent::KeyRelease:
389 QWidget* w = parentWidget();
399 setGeometry( parentWidget()->rect() );
403 for (
int i = 0; i < pickers.size(); i++ )
409 for (
int i = 0; i < pickers.size(); i++ )
426 QPoint pos = mouseEvent->pos();
432 if ( pos !=
m_data->
pos && rect().contains( pos ) )
458 QPoint pos = mouseEvent->pos();
504 Q_UNUSED( keyEvent );
513 QWidget* w = parentWidget();
521 if ( w->testAttribute( Qt::WA_SetCursor ) )
543 #include "moc_qwt_panner.cpp"