equal
deleted
inserted
replaced
175 directoryComboBox->setSizeAdjustPolicy( |
175 directoryComboBox->setSizeAdjustPolicy( |
176 QComboBox::AdjustToMinimumContentsLength); |
176 QComboBox::AdjustToMinimumContentsLength); |
177 directoryComboBox->setSizePolicy(QSizePolicy::Expanding, |
177 directoryComboBox->setSizePolicy(QSizePolicy::Expanding, |
178 QSizePolicy::Preferred); |
178 QSizePolicy::Preferred); |
179 |
179 |
180 connect(fileNameComboBox, SIGNAL(editTextChanged(const QString &)), |
180 connect(fileNameComboBox, SIGNAL(editTextChanged(QString)), |
181 this, SLOT(update())); |
181 this, SLOT(update())); |
182 connect(directoryComboBox, SIGNAL(currentIndexChanged(const QString &)), |
182 connect(directoryComboBox, SIGNAL(currentIndexChanged(QString)), |
183 this, SLOT(update())); |
183 this, SLOT(update())); |
184 } |
184 } |
185 |
185 |
186 void FindFileDialog::createFilesTree() |
186 void FindFileDialog::createFilesTree() |
187 { |
187 { |
189 foundFilesTree->setColumnCount(1); |
189 foundFilesTree->setColumnCount(1); |
190 foundFilesTree->setHeaderLabels(QStringList(tr("Matching Files"))); |
190 foundFilesTree->setHeaderLabels(QStringList(tr("Matching Files"))); |
191 foundFilesTree->setRootIsDecorated(false); |
191 foundFilesTree->setRootIsDecorated(false); |
192 foundFilesTree->setSelectionMode(QAbstractItemView::SingleSelection); |
192 foundFilesTree->setSelectionMode(QAbstractItemView::SingleSelection); |
193 |
193 |
194 connect(foundFilesTree, SIGNAL(itemActivated(QTreeWidgetItem *, int)), |
194 connect(foundFilesTree, SIGNAL(itemActivated(QTreeWidgetItem*,int)), |
195 this, SLOT(openFile(QTreeWidgetItem *))); |
195 this, SLOT(openFile(QTreeWidgetItem*))); |
196 } |
196 } |
197 |
197 |
198 void FindFileDialog::createLabels() |
198 void FindFileDialog::createLabels() |
199 { |
199 { |
200 directoryLabel = new QLabel(tr("Search in:")); |
200 directoryLabel = new QLabel(tr("Search in:")); |