examples/itemviews/fetchmore/window.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    57     view->setModel(model);
    57     view->setModel(model);
    58 
    58 
    59     logViewer = new QTextBrowser;
    59     logViewer = new QTextBrowser;
    60     logViewer->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));
    60     logViewer->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));
    61 
    61 
    62     connect(lineEdit, SIGNAL(textChanged(const QString &)),
    62     connect(lineEdit, SIGNAL(textChanged(QString)),
    63             model, SLOT(setDirPath(const QString &)));
    63             model, SLOT(setDirPath(QString)));
    64     connect(lineEdit, SIGNAL(textChanged(const QString &)),
    64     connect(lineEdit, SIGNAL(textChanged(QString)),
    65             logViewer, SLOT(clear()));
    65             logViewer, SLOT(clear()));
    66     connect(model, SIGNAL(numberPopulated(int)),
    66     connect(model, SIGNAL(numberPopulated(int)),
    67             this, SLOT(updateLog(int)));
    67             this, SLOT(updateLog(int)));
    68     
    68     
    69     QGridLayout *layout = new QGridLayout;
    69     QGridLayout *layout = new QGridLayout;