Public feed #889418

Something

public text v1 · immutable
Raw Edit
·published 2008-02-02 22:02 UTC
rendered paste body
The error : 

/usr/include/qt4/Qt/qtooltip.h: In constructor 'RecipeListToolTip::RecipeListToolTip(RecipeListView*)':
/usr/include/qt4/Qt/qtooltip.h:50: error: 'QToolTip::QToolTip()' is private
/home/sauve/krecipes/src/widgets/recipelistview.cpp:78: error: within this context

In the recipelistview.cpp file I have :

class RecipeListToolTip : public QToolTip
{
public:
        RecipeListToolTip( RecipeListView *view ) : m_view(view) <=========== line 78
        {}

        void maybeTip( const QPoint &point )
        {
                Q3ListViewItem *item = m_view->itemAt( point );
                if ( item ) {
                        QString text = m_view->tooltip(item,0);
                        if ( !text.isEmpty() )
                                showText( point, text, m_view->viewport(), m_view->itemRect( item ) );
                }
        }

private:
        RecipeListView *m_view;

};