Logo Search packages:      
Sourcecode: synaptiks version File versions  Download package

void Touchpad::setCornerButtons ( const QByteArray &  buttons ) [slot]

Set the mouse buttons triggered by tapping the touchpad corners.

The list of buttons must have at least four elements, less elements cause an error, more elements are silently ignored.

buttonsthe list of buttons
true, if successful, false otherwise.
See also:

Definition at line 346 of file touchpad.cpp.

    Q_ASSERT(buttons.size() >= 4);
    QList<uchar> values = d->device->property<uchar>(TAP_ACTION);
    std::copy(buttons.begin(), buttons.begin()+4, values.begin());
    d->device->setProperty(TAP_ACTION, values);

Generated by  Doxygen 1.6.0   Back to index