KDECore
KKeyServer::Sym Struct Reference
Represents a key symbol. More...
#include <kkeyserver_x11.h>
Public Member Functions | |
uint | getModsRequired () const |
uint | getSymVariation () const |
bool | init (const QString &s) |
bool | initQt (int keyQt) |
operator uint () const | |
Sym & | operator= (uint sym) |
int | qt () const |
Sym (const QString &s) | |
Sym (uint sym) | |
Sym () | |
QString | toString () const |
QString | toStringInternal () const |
Public Attributes | |
uint | m_sym |
Detailed Description
Represents a key symbol.
- See also:
- KKey
Definition at line 47 of file kkeyserver_x11.h.
Constructor & Destructor Documentation
KKeyServer::Sym::Sym | ( | ) | [inline] |
KKeyServer::Sym::Sym | ( | uint | sym | ) | [inline] |
Creates asymbol with the given value.
- Parameters:
-
sym the value
Definition at line 60 of file kkeyserver_x11.h.
KKeyServer::Sym::Sym | ( | const QString & | s | ) | [inline] |
Creates a symbol from the given string description.
- Parameters:
-
s the description of the symbol
- See also:
- toString()
Definition at line 67 of file kkeyserver_x11.h.
Member Function Documentation
uint KKeyServer::Sym::getModsRequired | ( | ) | const |
Returns the mods that are required for this symbol as ORed KKey::ModFlag's.
For example, Break requires a Ctrl to be valid.
- Returns:
- the required KKey::ModFlag's
- See also:
- KKey::ModFlag
uint KKeyServer::Sym::getSymVariation | ( | ) | const |
TODO: please find out what this method does and document it.
Initializes the key with the given string description.
- Parameters:
-
s the string description
- Returns:
- true if successful, false otherwise
- See also:
- toString()
bool KKeyServer::Sym::initQt | ( | int | keyQt | ) |
Initializes the symbol with the given Qt key code.
- Parameters:
-
keyQt the qt key code
- Returns:
- true if successful, false otherwise
- See also:
- Qt::Key
KKeyServer::Sym::operator uint | ( | ) | const [inline] |
Sym& KKeyServer::Sym::operator= | ( | uint | sym | ) | [inline] |
int KKeyServer::Sym::qt | ( | ) | const |
Returns the qt key code of the symbol.
- Returns:
- the qt key code
QString KKeyServer::Sym::toString | ( | ) | const |
Returns the string representation of the symbol.
- Returns:
- the string representation of the symbol
QString KKeyServer::Sym::toStringInternal | ( | ) | const |
For internal use only.
Member Data Documentation
The documentation for this struct was generated from the following file: