You are not logged in.

Dear visitor, welcome to KDE-Forum.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.

ckult2

Unregistered

1

Thursday, April 15th 2004, 10:53am

emulating signal in KDirOperator

how can I send "returnPressed" signal from KDirOpearor's method to qny element in current KFileView*

for examaple

void MyDirOperator::emulClick()
{
KFileItem *item;

item = view()->currentItem();

// now need to emulate pressing return
}

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Thursday, April 15th 2004, 4:59pm

You could set the item selected and then send a QKeyEvent with cod for Enter to the KFileView instance, see QApplication::sendEvent

Cheers,
_
Qt/KDE Developer
Debian User