data/test/cpp/a22f594b97679a06129baec831bbca7d3118a1c8tst_qfavoriteservicesmodel.cpp
void tst_QFavoriteServicesModel::init()
{
    QFavoriteServicesModel model;
    int max = model.rowCount();
    for(int i = 0; i<max; i++)
        model.remove(model.index(0));
}
/*!
    init() function called before each testcase.
    empties the table
*/
init() function called before each testcase.
empties the table
init () function called before each testcase . empties the table
void tst_QFavoriteServicesModel::init()
{
    QFavoriteServicesModel model;
    int max = model.rowCount();
    for(int i = 0; i<max; i++)
        model.remove(model.index(0));
}
void tst_QFavoriteServicesModel :: init ( ) { QFavoriteServicesModel model ; int max = model . rowCount ( ) ; for ( int i = 0 ; i < max ; i ++ ) model . remove ( model . index ( 0 ) ) ; }
init() function called before each testcase.
init () function called before each testcase .