shubham added inline comments.

INLINE COMMENTS

> annotationwidgets.cpp:817
>  {
> -    QWidget * widget = new QWidget();
> -    QVBoxLayout * lay = new QVBoxLayout( widget );
> -    lay->setMargin( 0 );
> -    QGroupBox * gb = new QGroupBox( widget );
> -    lay->addWidget( gb );
> -    gb->setTitle( i18n( "Caret Symbol" ) );
> -    QHBoxLayout * gblay = new QHBoxLayout( gb );
> -    m_pixmapSelector = new PixmapPreviewSelector( gb );
> -    gblay->addWidget( m_pixmapSelector );
> +    QWidget * widget = (QWidget*)formlayout->parent();
> +

Why not use qobject_cast here and cases above?

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D21730

To: simgunz
Cc: shubham, ngraham, okular-devel, joaonetto, tfella, darcyshen, aacid

Reply via email to