Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QDirectFbKeyMap Class Reference

#include <qdirectfbconvenience.h>

+ Inheritance diagram for QDirectFbKeyMap:
+ Collaboration diagram for QDirectFbKeyMap:

Public Member Functions

 QDirectFbKeyMap ()
 
- Public Member Functions inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key >
 QHash () noexcept=default
 Constructs an empty hash.
 
 QHash (std::initializer_list< std::pair< DFBInputDeviceKeySymbol, Qt::Key > > list)
 
 QHash (const QHash &other) noexcept
 Constructs a copy of other.
 
 QHash (QHash &&other) noexcept
 Move-constructs a QHash instance, making it point at the same object that other was pointing to.
 
 QHash (InputIterator f, InputIterator l)
 
 QHash (InputIterator f, InputIterator l)
 
 ~QHash ()
 Destroys the hash.
 
QHashoperator= (const QHash &other) noexcept(std::is_nothrow_destructible< Node >::value)
 Assigns other to this hash and returns a reference to this hash.
 
void swap (QHash &other) noexcept
 
QTypeTraits::compare_eq_result_container< QHash, AKey, AToperator== (const QHash &other) const noexcept
 Returns true if other is equal to this hash; otherwise returns false.
 
QTypeTraits::compare_eq_result_container< QHash, AKey, AToperator!= (const QHash &other) const noexcept
 Returns true if other is not equal to this hash; otherwise returns false.
 
qsizetype size () const noexcept
 Returns the number of items in the hash.
 
bool isEmpty () const noexcept
 Returns true if the hash contains no items; otherwise returns false.
 
qsizetype capacity () const noexcept
 Returns the number of buckets in the QHash's internal hash table.
 
void reserve (qsizetype size)
 Ensures that the QHash's internal hash table has space to store at least size items without having to grow the hash table.
 
void squeeze ()
 Reduces the size of the QHash's internal hash table to save memory.
 
void detach ()
 
bool isDetached () const noexcept
 
bool isSharedWith (const QHash &other) const noexcept
 
void clear () noexcept(std::is_nothrow_destructible< Node >::value)
 Removes all items from the hash and frees up all memory used by it.
 
bool remove (const DFBInputDeviceKeySymbol &key)
 Removes the item that has the key from the hash.
 
qsizetype removeIf (Predicate pred)
 
Qt::Key take (const DFBInputDeviceKeySymbol &key)
 Removes the item with the key from the hash and returns the value associated with it.
 
bool contains (const DFBInputDeviceKeySymbol &key) const noexcept
 Returns true if the hash contains an item with the key; otherwise returns false.
 
qsizetype count (const DFBInputDeviceKeySymbol &key) const noexcept
 Returns the number of items associated with the key.
 
qsizetype count () const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as size().
 
DFBInputDeviceKeySymbol key (const Qt::Key &value) const noexcept
 
DFBInputDeviceKeySymbol key (const Qt::Key &value, const DFBInputDeviceKeySymbol &defaultKey) const noexcept
 
Qt::Key value (const DFBInputDeviceKeySymbol &key) const noexcept
 
Qt::Key value (const DFBInputDeviceKeySymbol &key, const Qt::Key &defaultValue) const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the value associated with the key.
 
Qt::Keyoperator[] (const DFBInputDeviceKeySymbol &key)
 Returns the value associated with the key as a modifiable reference.
 
const Qt::Key operator[] (const DFBInputDeviceKeySymbol &key) const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as value().
 
QList< DFBInputDeviceKeySymbol > keys () const
 Returns a list containing all the keys in the hash, in an arbitrary order.
 
QList< DFBInputDeviceKeySymbol > keys (const Qt::Key &value) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns a list containing all the keys associated with value value, in an arbitrary order.
 
QList< Qt::Keyvalues () const
 Returns a list containing all the values in the hash, in an arbitrary order.
 
iterator begin ()
 Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
 
const_iterator begin () const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const_iterator cbegin () const noexcept
 
const_iterator constBegin () const noexcept
 Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
 
iterator end () noexcept
 Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last item in the hash.
 
const_iterator end () const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const_iterator cend () const noexcept
 
const_iterator constEnd () const noexcept
 Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last item in the hash.
 
key_iterator keyBegin () const noexcept
 
key_iterator keyEnd () const noexcept
 
key_value_iterator keyValueBegin ()
 
const_key_value_iterator keyValueBegin () const noexcept
 
key_value_iterator keyValueEnd ()
 
const_key_value_iterator keyValueEnd () const noexcept
 
const_key_value_iterator constKeyValueBegin () const noexcept
 
const_key_value_iterator constKeyValueEnd () const noexcept
 
auto asKeyValueRange () &
 
auto asKeyValueRange () const &
 
auto asKeyValueRange () &&
 
auto asKeyValueRange () const &&
 
iterator erase (const_iterator it)
 
std::pair< iterator, iteratorequal_range (const DFBInputDeviceKeySymbol &key)
 
std::pair< const_iterator, const_iteratorequal_range (const DFBInputDeviceKeySymbol &key) const noexcept
 
iterator find (const DFBInputDeviceKeySymbol &key)
 Returns an iterator pointing to the item with the key in the hash.
 
const_iterator find (const DFBInputDeviceKeySymbol &key) const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const_iterator constFind (const DFBInputDeviceKeySymbol &key) const noexcept
 
iterator insert (const DFBInputDeviceKeySymbol &key, const Qt::Key &value)
 Inserts a new item with the key and a value of value.
 
void insert (const QHash &hash)
 
iterator emplace (const DFBInputDeviceKeySymbol &key, Args &&... args)
 
iterator emplace (DFBInputDeviceKeySymbol &&key, Args &&... args)
 Inserts a new element into the container.
 
float load_factor () const noexcept
 Returns the current load factor of the QHash's internal hash table.
 
size_t bucket_count () const noexcept
 
bool empty () const noexcept
 This function is provided for STL compatibility.
 

Additional Inherited Members

- Public Types inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key >
using key_type
 Typedef for Key.
 
using mapped_type
 Typedef for T.
 
using value_type
 
using size_type
 Typedef for int.
 
using difference_type
 Typedef for ptrdiff_t.
 
using reference
 
using const_reference
 
typedef QKeyValueIterator< const DFBInputDeviceKeySymbol &, const Qt::Key &, const_iteratorconst_key_value_iterator
 \inmodule QtCore
 
typedef QKeyValueIterator< const DFBInputDeviceKeySymbol &, Qt::Key &, iteratorkey_value_iterator
 \inmodule QtCore
 
typedef iterator Iterator
 Qt-style synonym for QHash::iterator.
 
typedef const_iterator ConstIterator
 Qt-style synonym for QHash::const_iterator.
 
- Static Public Member Functions inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key >
static float max_load_factor () noexcept
 
static size_t max_bucket_count () noexcept
 

Detailed Description

Definition at line 19 of file qdirectfbconvenience.h.

Constructor & Destructor Documentation

◆ QDirectFbKeyMap()

QDirectFbKeyMap::QDirectFbKeyMap ( )

Definition at line 222 of file qdirectfbconvenience.cpp.

References QHash< DFBInputDeviceKeySymbol, Qt::Key >::insert(), Qt::Key_0, Qt::Key_1, Qt::Key_2, Qt::Key_3, Qt::Key_4, Qt::Key_5, Qt::Key_6, Qt::Key_7, Qt::Key_8, Qt::Key_9, Qt::Key_A, Qt::Key_Alt, Qt::Key_AltGr, Qt::Key_Ampersand, Qt::Key_Apostrophe, Qt::Key_AsciiCircum, Qt::Key_AsciiTilde, Qt::Key_Asterisk, Qt::Key_At, Qt::Key_AudioForward, Qt::Key_AudioRewind, Qt::Key_B, Qt::Key_Back, Qt::Key_Backslash, Qt::Key_Backspace, Qt::Key_Bar, Qt::Key_Blue, Qt::Key_BraceLeft, Qt::Key_BraceRight, Qt::Key_BracketLeft, Qt::Key_BracketRight, Qt::Key_C, Qt::Key_CapsLock, Qt::Key_CD, Qt::Key_ChannelDown, Qt::Key_ChannelUp, Qt::Key_Clear, Qt::Key_Colon, Qt::Key_Comma, Qt::Key_Control, Qt::Key_D, Qt::Key_Dead_Abovedot, Qt::Key_Dead_Abovering, Qt::Key_Dead_Acute, Qt::Key_Dead_Breve, Qt::Key_Dead_Caron, Qt::Key_Dead_Cedilla, Qt::Key_Dead_Circumflex, Qt::Key_Dead_Diaeresis, Qt::Key_Dead_Doubleacute, Qt::Key_Dead_Grave, Qt::Key_Dead_Iota, Qt::Key_Dead_Macron, Qt::Key_Dead_Ogonek, Qt::Key_Dead_Semivoiced_Sound, Qt::Key_Dead_Tilde, Qt::Key_Dead_Voiced_Sound, Qt::Key_Delete, Qt::Key_Dollar, Qt::Key_Down, Qt::Key_E, Qt::Key_End, Qt::Key_Equal, Qt::Key_Escape, Qt::Key_Exclam, Qt::Key_Exit, Qt::Key_F, Qt::Key_F1, Qt::Key_F10, Qt::Key_F11, Qt::Key_F12, Qt::Key_F2, Qt::Key_F3, Qt::Key_F4, Qt::Key_F5, Qt::Key_F6, Qt::Key_F7, Qt::Key_F8, Qt::Key_F9, Qt::Key_Favorites, Qt::Key_Forward, Qt::Key_G, Qt::Key_Greater, Qt::Key_Green, Qt::Key_Guide, Qt::Key_H, Qt::Key_Help, Qt::Key_Home, Qt::Key_HomePage, Qt::Key_Hyper_L, Qt::Key_I, Qt::Key_Info, Qt::Key_Insert, Qt::Key_J, Qt::Key_K, Qt::Key_L, Qt::Key_LaunchMail, Qt::Key_Left, Qt::Key_Less, Qt::Key_M, Qt::Key_MediaNext, Qt::Key_MediaPlay, Qt::Key_MediaPrevious, Qt::Key_MediaRecord, Qt::Key_MediaStop, Qt::Key_MediaTogglePlayPause, Qt::Key_Menu, Qt::Key_Meta, Qt::Key_Minus, Qt::Key_N, Qt::Key_NumberSign, Qt::Key_NumLock, Qt::Key_O, Qt::Key_OpenUrl, Qt::Key_P, Qt::Key_PageDown, Qt::Key_PageUp, Qt::Key_ParenLeft, Qt::Key_ParenRight, Qt::Key_Pause, Qt::Key_Percent, Qt::Key_Period, Qt::Key_Phone, Qt::Key_Plus, Qt::Key_Print, Qt::Key_Q, Qt::Key_Question, Qt::Key_QuoteDbl, Qt::Key_R, Qt::Key_Red, Qt::Key_Return, Qt::Key_Right, Qt::Key_S, Qt::Key_ScrollLock, Qt::Key_Select, Qt::Key_Semicolon, Qt::Key_Settings, Qt::Key_Shift, Qt::Key_Slash, Qt::Key_Space, Qt::Key_Subtitle, Qt::Key_Super_L, Qt::Key_T, Qt::Key_Tab, Qt::Key_Time, Qt::Key_U, Qt::Key_Underscore, Qt::Key_Up, Qt::Key_V, Qt::Key_VolumeDown, Qt::Key_VolumeMute, Qt::Key_VolumeUp, Qt::Key_W, Qt::Key_X, Qt::Key_Y, Qt::Key_Yellow, and Qt::Key_Z.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: