KKeyServer::Sym Struct Reference
Represents a key symbol. More...
#include <kkeyserver_x11.h>
Public Methods | |
Sym () | |
Creates a null symbol. | |
Sym (uint sym) | |
Creates asymbol with the given value. | |
Sym (const QString &s) | |
Creates a symbol from the given string description. | |
bool | initQt (int keyQt) |
Initializes the symbol with the given Qt key code. | |
bool | init (const QString &s) |
Initializes the key with the given string description. | |
int | qt () const |
Returns the qt key code of the symbol. | |
QString | toString () const |
Returns the string representation of the symbol. | |
uint | getModsRequired () const |
Returns the mods that are required for this symbol as ORed KKey::ModFlag's. | |
uint | getSymVariation () const |
TODO: please find out what this method does and document it. | |
operator uint () const | |
Casts the symbol to its integer representation. | |
Sym & | operator= (uint sym) |
Overloaded operator to convert ints to Sym. | |
Public Attributes | |
uint | m_sym |
the actual value of the symbol |
Detailed Description
Represents a key symbol.
- See also:
- KKey , KKeyServer
Definition at line 27 of file kkeyserver_x11.h.
Constructor & Destructor Documentation
|
Creates a null symbol.
Definition at line 34 of file kkeyserver_x11.h. References m_sym. |
|
Creates asymbol with the given value.
Definition at line 40 of file kkeyserver_x11.h. References m_sym. |
|
Creates a symbol from the given string description.
Definition at line 47 of file kkeyserver_x11.h. References init(). |
Member Function Documentation
|
Initializes the symbol with the given Qt key code.
|
|
Initializes the key with the given string description.
Referenced by Sym(). |
|
Returns the qt key code of the symbol.
|
|
Returns the string representation of the symbol.
|
|
Returns the mods that are required for this symbol as ORed KKey::ModFlag's. For example, Break requires a Ctrl to be valid.
|
|
TODO: please find out what this method does and document it.
|
|
Casts the symbol to its integer representation.
Definition at line 100 of file kkeyserver_x11.h. References m_sym. |
|
Overloaded operator to convert ints to Sym.
Definition at line 105 of file kkeyserver_x11.h. References m_sym. |
Member Data Documentation
|
the actual value of the symbol
Definition at line 31 of file kkeyserver_x11.h. Referenced by operator uint(), operator=(), and Sym(). |
The documentation for this struct was generated from the following file: