Qt 4.8
Public Functions | Public Variables | List of all members
QShortcutPrivate Class Reference
Inheritance diagram for QShortcutPrivate:
QObjectPrivate QObjectData

Public Functions

 QShortcutPrivate ()
 
void redoGrab (QShortcutMap &map)
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

bool sc_autorepeat
 
Qt::ShortcutContext sc_context
 
bool sc_enabled
 
int sc_id
 
QKeySequence sc_sequence
 
QString sc_whatsthis
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Detailed Description

Definition at line 158 of file qshortcut.cpp.

Constructors and Destructors

◆ QShortcutPrivate()

QShortcutPrivate::QShortcutPrivate ( )
inline

Definition at line 162 of file qshortcut.cpp.

Functions

◆ redoGrab()

void QShortcutPrivate::redoGrab ( QShortcutMap map)

Definition at line 172 of file qshortcut.cpp.

173 {
174  Q_Q(QShortcut);
175  if (!parent) {
176  qWarning("QShortcut: No widget parent defined");
177  return;
178  }
179 
180  if (sc_id)
181  map.removeShortcut(sc_id, q);
182  if (sc_sequence.isEmpty())
183  return;
185  if (!sc_enabled)
186  map.setShortcutEnabled(false, sc_id, q);
187  if (!sc_autorepeat)
188  map.setShortcutAutoRepeat(false, sc_id, q);
189 }
int setShortcutEnabled(bool enable, int id, QObject *owner, const QKeySequence &key=QKeySequence())
Changes the enable state of a shortcut to enable.
The QShortcut class is used to create keyboard shortcuts.
Definition: qshortcut.h:57
#define Q_Q(Class)
Definition: qglobal.h:2483
Qt::ShortcutContext sc_context
Definition: qshortcut.cpp:164
Q_CORE_EXPORT void qWarning(const char *,...)
bool isEmpty() const
Returns true if the key sequence is empty; otherwise returns false.
QKeySequence sc_sequence
Definition: qshortcut.cpp:163
int setShortcutAutoRepeat(bool on, int id, QObject *owner, const QKeySequence &key=QKeySequence())
Changes the auto repeat state of a shortcut to enable.
int removeShortcut(int id, QObject *owner, const QKeySequence &key=QKeySequence())
Removes a shortcut from the global map.
QObject * parent
Definition: qobject.h:92
int addShortcut(QObject *owner, const QKeySequence &key, Qt::ShortcutContext context)
Adds a shortcut to the global map.

Properties

◆ sc_autorepeat

bool QShortcutPrivate::sc_autorepeat

Definition at line 166 of file qshortcut.cpp.

Referenced by redoGrab().

◆ sc_context

Qt::ShortcutContext QShortcutPrivate::sc_context

Definition at line 164 of file qshortcut.cpp.

Referenced by redoGrab().

◆ sc_enabled

bool QShortcutPrivate::sc_enabled

Definition at line 165 of file qshortcut.cpp.

Referenced by redoGrab().

◆ sc_id

int QShortcutPrivate::sc_id

Definition at line 167 of file qshortcut.cpp.

Referenced by redoGrab().

◆ sc_sequence

QKeySequence QShortcutPrivate::sc_sequence

Definition at line 163 of file qshortcut.cpp.

Referenced by redoGrab().

◆ sc_whatsthis

QString QShortcutPrivate::sc_whatsthis

Definition at line 168 of file qshortcut.cpp.


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