You are not logged in.

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