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; |