Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
KDirOperator::finishedLoading()
Hi.
It seemed that finishedLoading() signal doesn't guarantee that all items already been sorted.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
MyDirOperator::MyDirOperator(const KURL &url, QWidget *parent, const char *name) :
KDirOperator(url, parent, name)
{
connect(this, SIGNAL(finishedLoading()), this, SLOT(slotFinishedLoading()));
}
void MyDirOperator::slotFinishedLoading()
{
KFileItemList *list = const_cast<KFileItemList *>(items());
KFileItem *first = list->first();
}
|
Now "first" will point to some file, which is
not the first file. Why ? How to determine the first file ?