[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: two questions :(
From: Krasu <ksquirrel () tut ! by>
Date: 2005-11-28 18:14:13
Message-ID: web-25729316 () tut ! by
[Download RAW message or body]
Hi. i have two questions difficult to me:
1) Sidebar. Can I create sidebar in my program, like in Konqueror ? Something like \
Sidebar *sb = new SideBar(this); sb->addWidget(myWidget1); \
sb->addWidget(myDirOperator1); sb->addWidget(myAnotherWidget1); ?
2) KDirOperator. It seemed that finishedLoading() signal doesn't guarantee that all \
items already been sorted.
code:
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 after directory been loaded ? Many thanks.
Regards, Krasu. ---Хочешь вкусно перекусить? Загляни в синема - кафе "Дом" и \
закажи один издомашних обедов от 8 тыс. Мы находимся по адресу: Минск, \
Красноармейская,3(Центральный дом офицеров), 768-90-73, http://www.cafedomby, \
info@cafedom.by >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to \
unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic