Home · All Namespaces · All Classes
Public Types | Public Member Functions

LayoutVisualizationWrapper Class Reference

#include <layoutvisualizationwrapper.h>

List of all members.

Public Types

enum  WrappingMode { NoWrap, WrapRightEdgeToLeft, WrapLeftEdgeToRight }

Public Member Functions

 LayoutVisualizationWrapper (QGraphicsLinearLayout &layout)
virtual ~LayoutVisualizationWrapper ()
void setWrappingMode (WrappingMode mode)

Detailed Description

A helper class for wrapping the visual appearance of a widget that has a linear layout. The visualization wrapper shows the right edge of the widget next to the left edge and vice versa.

Only the visual appearance gets wrapped, nothing is done to the actual layout or its contents.

Note:
This class only works with horizontal linear layouts. With vertical layouts this class has no effect.
Changing the layout's contents after giving the layout to this helper and setting a wrapping mode might lead to unwanted results.

Member Enumeration Documentation

The wrapping mode.

Enumerator:
NoWrap 

No wrapping used.

WrapRightEdgeToLeft 

Wrap the right edge next to the left edge.

WrapLeftEdgeToRight 

Wrap the left edge next to the right edge.


Constructor & Destructor Documentation

LayoutVisualizationWrapper::LayoutVisualizationWrapper ( QGraphicsLinearLayout &  layout  ) 

Constructs a new layout visualization wrapper using layout.

Parameters:
layout the layout that gets wrapped.
LayoutVisualizationWrapper::~LayoutVisualizationWrapper (  )  [virtual]

Destructor.


Member Function Documentation

void LayoutVisualizationWrapper::setWrappingMode ( LayoutVisualizationWrapper::WrappingMode  mode  ) 

Sets the wrapping mode.

Parameters:
mode the new wrapping mode.

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

Copyright © 2011 Nokia Corporation Generated on Thu Jul 7 2011 22:14:50
Doxygen 1.7.1
MeeGo Touch