[Kst] Easy bug with ASCII field names
Peter Kümmel
syntheticpp at gmx.net
Tue Nov 17 11:33:32 CET 2009
Brisset, Nicolas wrote:
> - the file requester that is launched when one clicks on the icon right
> of the lineedit is special (I don't know how, haven't taken time to look
> at it) but it is sometimes painfully slow and clicking on a file to
> select it can take seconds (I'd say approximately the time it takes to
> instantiate a datasource: can it be that selecting a file at this stage
> already calls all datasource plugins to know if they understand it?)
Yes, each click on a files triggers a currentChanged signal which is connected
to a DataSourceSelectorDialog::currentChanged and this calls DataSource::validSource
DataSourceSelectorDialog::DataSourceSelectorDialog(QString &file, QWidget *parent)
: QFileDialog(parent) {
setFileMode(QFileDialog::Directory);
selectFile(file);
currentChanged(file);
connect(this, SIGNAL(currentChanged(const QString &)), this, SLOT(currentChanged(const
QString &)));
}
Peter
More information about the Kst
mailing list