#include <ext/app/exttesttools/testabilityutils.h>
class TestabilityUtils : public TasCoreUtils, public TasCoreUtils |
TasServiveBase is an abstract base class for tasplugin services.
Public Member Functions | |
---|---|
virtual | ~TestabilityUtils() |
QGraphicsWidget * | castToGraphicsWidget(QGraphicsItem *) |
QWidget * | getApplicationWindow() |
ItemLocationDetails | getItemLocationDetails(QGraphicsItem *, TasCommand *) |
QGraphicsView * | getViewForItem(QGraphicsItem *) |
QString | graphicsItemId(QGraphicsItem *) |
bool | isBlackListed() |
bool | isCustomTraverse() |
bool | isItemBlackListed(QString, QString) |
bool | isItemInView(QGraphicsView *, QGraphicsItem *) |
bool | isVisibilityCheckOn() |
QGraphicsProxyWidget * | parentProxy(QWidget *) |
QPoint | proxyCoordinates(QGraphicsItem *, bool) |
QWidget * | viewPortAndPosition(QGraphicsItem *, QPoint &) |
Protected Member Functions | |
---|---|
QGraphicsItem * | findFromObject(const QString &, QObject *) |
QGraphicsItem * | findGraphicsItem(const QString &) |
QWidget * | findWidget(const QString &) |
QGraphicsItem * | lookForMatch(QList< QGraphicsItem * >, const QString &) |
bool | verifyGraphicsItemMatch(const QString &, QGraphicsItem *) |
~TestabilityUtils | ( | ) | [inline, virtual] |
QGraphicsWidget * | castToGraphicsWidget | ( | QGraphicsItem * | graphicsItem | ) | [static] |
QGraphicsItem * | findFromObject | ( | const QString & | id, |
QObject * | object | |||
) | [protected] |
Looks for a graphicsitem with thte given id from the children of the given object.
QGraphicsItem * | findGraphicsItem | ( | const QString & | id | ) | [protected] |
Casting direclty from the id does not work so we need to look for the object with a matching id.
Get the correct QGraphicsItem for the given object id. Looks for the item from graphicsviews and scenes
QWidget * | findWidget | ( | const QString & | id | ) | [protected] |
Casting directly from the id does not work so we need to look for the object with a matching id.
QWidget * | getApplicationWindow | ( | ) | [static] |
ItemLocationDetails | getItemLocationDetails | ( | QGraphicsItem * | graphicsItem, |
TasCommand * | command = 0 | |||
) | [static] |
QGraphicsView * | getViewForItem | ( | QGraphicsItem * | graphicsItem | ) | [static] |
QString | graphicsItemId | ( | QGraphicsItem * | graphicsItem | ) | [static] |
bool | isBlackListed | ( | ) | [static] |
bool | isCustomTraverse | ( | ) | [static] |
Return true if widgets belongs to custom traversed object, i.e. Will be traversed even if not visible
bool | isItemBlackListed | ( | QString | objectName, |
QString | className | |||
) | [static] |
bool | isItemInView | ( | QGraphicsView * | view, |
QGraphicsItem * | graphicsItem | |||
) | [static] |
See if the GraphicsItems region intersects the viewports visible region.
bool | isVisibilityCheckOn | ( | ) | [static] |
QGraphicsItem * | lookForMatch | ( | QList< QGraphicsItem * > | itemList, |
const QString & | targetId | |||
) | [protected] |
Iterates a list of graphicsitems looking for a match for the given id. NULL is returned if a match is not found.
QGraphicsProxyWidget * | parentProxy | ( | QWidget * | widget | ) | [static] |
Returns the Proxy Widget if any parent widget has a proxy
QPoint | proxyCoordinates | ( | QGraphicsItem * | item, |
bool | absolute = true | |||
) | [static] |
bool | verifyGraphicsItemMatch | ( | const QString & | targetId, |
QGraphicsItem * | source | |||
) | [protected] |
Verifys that a given GraphicsItem refences matches to the given id. If the item is a decendant of QObject (e.g. GraphicsWIdget) then the verification is done by casting the item to object and then making the comparison. Returns true if the given item matches.
QWidget * | viewPortAndPosition | ( | QGraphicsItem * | graphicsItem, |
QPoint & | point | |||
) | [static] |
Gets the viewport widget for the item through the scene and graphics view. Can be null if the viewport could not be determined. Sets the point to be the screen coordinate at the center point of the QGraphicsitem.