Qt 4.8
Functions
qsoftkeymanager.cpp File Reference
#include "qapplication.h"
#include "qevent.h"
#include "qbitmap.h"
#include "private/qsoftkeymanager_p.h"
#include "private/qaction_p.h"
#include "private/qsoftkeymanager_common_p.h"

Go to the source code of this file.

Functions

static bool isChildOf (const QWidget *c, const QWidget *p)
 

Function Documentation

◆ isChildOf()

static bool isChildOf ( const QWidget c,
const QWidget p 
)
static

Definition at line 231 of file qsoftkeymanager.cpp.

Referenced by QSoftKeyManager::softkeySource().

232 {
233  while (c) {
234  if (c == p)
235  return true;
236  c = c->parentWidget();
237  }
238  return false;
239 }
QWidget * parentWidget() const
Returns the parent of this widget, or 0 if it does not have any parent widget.
Definition: qwidget.h:1035