# class KRockerGesture

###

Module | kdeui
Namespace |
Class | KRockerGesture
Inherits |

### methods

- KRockerGesture ( )

  returns ctor

  Create a new invalid rocker gesture.

- KRockerGesture (hold, thenPush)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  hold | Qt.MouseButton |
  thenPush | Qt.MouseButton |

  Creates a new gesture consisting of given buttons.

  description - create gesture according to this

- KRockerGesture (description)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  description | QString |

  Creates a new gesture from a string description.

  description - create gesture according to this

- KRockerGesture (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | KRockerGesture |

  Copies the given gesture.

  other - gesture to copy

- getButtons (hold, thenPush)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  hold | Qt.MouseButton |
  thenPush | Qt.MouseButton |

  Write the button combination to hold and thenPush

- hashable ( )

  returns uint

  Return an opaque value for use in hash tables

- isValid ( )

  returns bool

  Return true if this gesture is valid.

- mouseButtonName (button)

  returns QString
  static

  Argument | Type | Default
  --- | --- | ---
  button | Qt.MouseButton |

  Return a user-friendly name for the mouse button button

- operator != (other)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  other | KRockerGesture |

  Return the opposite of operator==()

- operator == (other)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  other | KRockerGesture |

  Return whether this gesture is equal to the other gesture.

- rockerName ( )

  returns QString

  Return a user-friendly name of the button combination.

- setButtons (hold, thenPush)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  hold | Qt.MouseButton |
  thenPush | Qt.MouseButton |

  set button combination to trigger

- toString ( )

  returns QString

  Return a string representation of this gesture. Return an empty string if invalid. This function is mainly for use with config files.

  See also rockerName()