mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-03 11:00:53 +01:00
Mod doc set style de same
This commit is contained in:
@@ -32,13 +32,13 @@
|
||||
ElementPictureFactory* ElementPictureFactory::m_factory = nullptr;
|
||||
|
||||
/**
|
||||
* @brief ElementPictureFactory::getPictures
|
||||
* Set the picture of the element at location.
|
||||
* Note, picture can be null
|
||||
* @param location
|
||||
* @param picture
|
||||
* @param low_picture
|
||||
*/
|
||||
@brief ElementPictureFactory::getPictures
|
||||
Set the picture of the element at location.
|
||||
Note, picture can be null
|
||||
@param location
|
||||
@param picture
|
||||
@param low_picture
|
||||
*/
|
||||
void ElementPictureFactory::getPictures(const ElementsLocation &location, QPicture &picture, QPicture &low_picture)
|
||||
{
|
||||
if(!location.exist()) {
|
||||
@@ -68,11 +68,11 @@ void ElementPictureFactory::getPictures(const ElementsLocation &location, QPictu
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPictureFactory::pixmap
|
||||
* @param location
|
||||
* @return the pixmap of the element at @location
|
||||
* Note pixmap can be null
|
||||
*/
|
||||
@brief ElementPictureFactory::pixmap
|
||||
@param location
|
||||
@return the pixmap of the element at @location
|
||||
Note pixmap can be null
|
||||
*/
|
||||
QPixmap ElementPictureFactory::pixmap(const ElementsLocation &location)
|
||||
{
|
||||
QUuid uuid = location.uuid();
|
||||
@@ -113,10 +113,10 @@ QPixmap ElementPictureFactory::pixmap(const ElementsLocation &location)
|
||||
|
||||
|
||||
/**
|
||||
* @brief ElementPictureFactory::getPrimitives
|
||||
* @param location
|
||||
* @return The primtive used to draw the element at @location
|
||||
*/
|
||||
@brief ElementPictureFactory::getPrimitives
|
||||
@param location
|
||||
@return The primtive used to draw the element at @location
|
||||
*/
|
||||
ElementPictureFactory::primitives ElementPictureFactory::getPrimitives(const ElementsLocation &location)
|
||||
{
|
||||
if(!m_primitives_H.contains(location.uuid()))
|
||||
@@ -132,15 +132,15 @@ ElementPictureFactory::~ElementPictureFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPictureFactory::build
|
||||
* Build the picture from location.
|
||||
* @param location
|
||||
* @param picture
|
||||
* @param low_picture
|
||||
* if @picture and/or @low_picture are not null this function draw on it and don't store it.
|
||||
* if null, this function create a QPicture for normal and low zoom, draw on it and store it in m_pictures_H and m_low_pictures_H
|
||||
* @return
|
||||
*/
|
||||
@brief ElementPictureFactory::build
|
||||
Build the picture from location.
|
||||
@param location
|
||||
@param picture
|
||||
@param low_picture
|
||||
if @picture and/or @low_picture are not null this function draw on it and don't store it.
|
||||
if null, this function create a QPicture for normal and low zoom, draw on it and store it in m_pictures_H and m_low_pictures_H
|
||||
@return
|
||||
*/
|
||||
bool ElementPictureFactory::build(const ElementsLocation &location, QPicture *picture, QPicture *low_picture)
|
||||
{
|
||||
QDomElement dom = location.xml();
|
||||
@@ -542,11 +542,11 @@ void ElementPictureFactory::parseText(const QDomElement &dom, QPainter &painter,
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPictureFactory::setPainterStyle
|
||||
* apply the style store in dom to painter.
|
||||
* @param dom
|
||||
* @param painter
|
||||
*/
|
||||
@brief ElementPictureFactory::setPainterStyle
|
||||
apply the style store in dom to painter.
|
||||
@param dom
|
||||
@param painter
|
||||
*/
|
||||
void ElementPictureFactory::setPainterStyle(const QDomElement &dom, QPainter &painter) const
|
||||
{
|
||||
QPen pen = painter.pen();
|
||||
|
||||
Reference in New Issue
Block a user