mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix various typos in source documentation and comments
Found via `codespell`
This commit is contained in:
committed by
Laurent Trinques
parent
1eed13c617
commit
a76e5446aa
@@ -31,7 +31,7 @@ set(QET_DIR ${PROJECT_SOURCE_DIR})
|
|||||||
# Add sub directories
|
# Add sub directories
|
||||||
option(PACKAGE_TESTS "Build the tests" ON)
|
option(PACKAGE_TESTS "Build the tests" ON)
|
||||||
if(PACKAGE_TESTS)
|
if(PACKAGE_TESTS)
|
||||||
message("Add sub directorie tests")
|
message("Add sub directory tests")
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ The main goal of the developers is to provide a libre, easy to use and effective
|
|||||||
### Version
|
### Version
|
||||||
|
|
||||||
The current stable version is 0.80 and was released on 2021.02.21.
|
The current stable version is 0.80 and was released on 2021.02.21.
|
||||||
Once it has been officialy released, the stable version is always frozen and is no longer developed.
|
Once it has been officially released, the stable version is always frozen and is no longer developed.
|
||||||
|
|
||||||
New functionalities, bug and issue fixings are further made in the development version (currently 0.9), which can also be [downloaded](https://qelectrotech.org/download.html).
|
New functionalities, bug and issue fixings are further made in the development version (currently 0.9), which can also be [downloaded](https://qelectrotech.org/download.html).
|
||||||
|
|
||||||
Users who want to test and take benefits from the last software implementations should use the development version. But... use it at your own risk, since things are sometimes broken or only partialy implemented until they are done!
|
Users who want to test and take benefits from the last software implementations should use the development version. But... use it at your own risk, since things are sometimes broken or only partially implemented until they are done!
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ The software is licensed under [GNU/GPL](https://www.gnu.org/licenses/old-licens
|
|||||||
You are free to use, copy, modify and redistribute it under the terms of the license.
|
You are free to use, copy, modify and redistribute it under the terms of the license.
|
||||||
|
|
||||||
|
|
||||||
Like many other open source softwares, QElectroTech is provided as it is, without any warranty.
|
Like many other open source software, QElectroTech is provided as is, without any warranty.
|
||||||
|
|
||||||
### Development / technical choices
|
### Development / technical choices
|
||||||
|
|
||||||
|
|||||||
@@ -108,15 +108,15 @@ DiagramContext BorderTitleBlock::titleblockInformation() const
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief BorderTitleBlock::titleBlockRectForQPainter
|
@brief BorderTitleBlock::titleBlockRectForQPainter
|
||||||
@return The title block rect to use with the QPainter in the method draw.
|
@return The title block rect to use with the QPainter in the draw method.
|
||||||
The returned rect is alway horizontal
|
The returned rect is always horizontal
|
||||||
(like displayed at the bottom of rect) only the top left change of pos
|
(as displayed at the bottom of rect) only the top left change of pos
|
||||||
according to the edge where the title block need to be displayed.
|
according to the edge where the title block needs to be displayed.
|
||||||
Rect according to edge:
|
Rect according to edge:
|
||||||
Bottom : top left is at the bottom left edge of the diagram rect.
|
Bottom : top left is at the bottom left edge of the diagram rect.
|
||||||
Right : top left is at the bottom right of diagram rect.
|
Right : top left is at the bottom right of diagram rect.
|
||||||
Befor use this rect you need to rotate the QPainter by -90°
|
Before using this rect you need to rotate the QPainter by -90°
|
||||||
for snap the rect at the right edge of diagram.
|
to snap the rect at the right edge of diagram.
|
||||||
*/
|
*/
|
||||||
QRectF BorderTitleBlock::titleBlockRectForQPainter() const
|
QRectF BorderTitleBlock::titleBlockRectForQPainter() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ bool ConductorNumExport::toCsv()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ConductorNumExport::wiresNum
|
@brief ConductorNumExport::wiresNum
|
||||||
@return the wire num formated in csv
|
@return the wire num formatted in csv
|
||||||
*/
|
*/
|
||||||
QString ConductorNumExport::wiresNum() const
|
QString ConductorNumExport::wiresNum() const
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ void ConductorNumExport::fillHash()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//We must to define if the connected terminal is a folio report, if it is the case
|
//We must define if the connected terminal is a folio report, if it is the case
|
||||||
//we don't add the num to the hash because the terminal doesn't represent a real terminal.
|
//we don't add the num to the hash because the terminal doesn't represent a real terminal.
|
||||||
if(!(c->terminal1->parentElement()->linkType() & Element::AllReport))
|
if(!(c->terminal1->parentElement()->linkType() & Element::AllReport))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ ConductorProperties::~ConductorProperties()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ConductorProperties::toXml
|
@brief ConductorProperties::toXml
|
||||||
Export conductor propertie, in the XML element 'e'
|
Export conductor properties to the XML element 'e'
|
||||||
@param e the xml element
|
@param e the xml element
|
||||||
*/
|
*/
|
||||||
void ConductorProperties::toXml(QDomElement &e) const
|
void ConductorProperties::toXml(QDomElement &e) const
|
||||||
@@ -308,7 +308,7 @@ void ConductorProperties::toXml(QDomElement &e) const
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ConductorProperties::fromXml
|
@brief ConductorProperties::fromXml
|
||||||
Import conductor propertie, from the attribute of the xml element 'e'
|
Import conductor properties from the attribute of the xml element 'e'
|
||||||
@param e the xml document
|
@param e the xml document
|
||||||
*/
|
*/
|
||||||
void ConductorProperties::fromXml(QDomElement &e)
|
void ConductorProperties::fromXml(QDomElement &e)
|
||||||
|
|||||||
@@ -890,8 +890,8 @@ QDomDocument Diagram::toXml(bool whole_content) {
|
|||||||
if (whole_content)
|
if (whole_content)
|
||||||
list_conductors << cond;
|
list_conductors << cond;
|
||||||
/* When we did not export the whole diagram,
|
/* When we did not export the whole diagram,
|
||||||
* we must to remove the non selected conductors.
|
* we must remove the non-selected conductors.
|
||||||
* At this step that mean a conductor which one
|
* At this step that means a conductor which one
|
||||||
* of these two element are not selected
|
* of these two element are not selected
|
||||||
*/
|
*/
|
||||||
else if (cond->terminal1->parentItem()->isSelected()
|
else if (cond->terminal1->parentItem()->isSelected()
|
||||||
@@ -1279,8 +1279,8 @@ bool Diagram::fromXml(QDomElement &document,
|
|||||||
QStringLiteral("-1")).toInt());
|
QStringLiteral("-1")).toInt());
|
||||||
|
|
||||||
/* We try to paste from another project,
|
/* We try to paste from another project,
|
||||||
* then befor paste elements,
|
* then before paste elements,
|
||||||
* we must to import the definition of the pasted elements
|
* we must import the definition of the pasted elements
|
||||||
* (owned by other project)
|
* (owned by other project)
|
||||||
* in the embedded collection of this project
|
* in the embedded collection of this project
|
||||||
*/
|
*/
|
||||||
@@ -1547,7 +1547,7 @@ void Diagram::refreshContents()
|
|||||||
/**
|
/**
|
||||||
@brief Diagram::addItem
|
@brief Diagram::addItem
|
||||||
Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item)
|
Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item)
|
||||||
Do some specific operation if item need it (for exemple an element)
|
Do some specific operation if item need it (for example an element)
|
||||||
@param item
|
@param item
|
||||||
*/
|
*/
|
||||||
void Diagram::addItem(QGraphicsItem *item)
|
void Diagram::addItem(QGraphicsItem *item)
|
||||||
@@ -1578,7 +1578,7 @@ void Diagram::addItem(QGraphicsItem *item)
|
|||||||
/**
|
/**
|
||||||
@brief Diagram::removeItem
|
@brief Diagram::removeItem
|
||||||
Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item)
|
Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item)
|
||||||
Do some specific operation if item need it (for exemple an element)
|
Do some specific operation if item need it (for example an element)
|
||||||
@param item
|
@param item
|
||||||
*/
|
*/
|
||||||
void Diagram::removeItem(QGraphicsItem *item)
|
void Diagram::removeItem(QGraphicsItem *item)
|
||||||
@@ -2268,7 +2268,7 @@ DiagramPosition Diagram::convertPosition(const QPointF &pos) {
|
|||||||
/**
|
/**
|
||||||
@brief Diagram::snapToGrid
|
@brief Diagram::snapToGrid
|
||||||
Return a nearest snap point of p
|
Return a nearest snap point of p
|
||||||
@param p point to find the nearest snaped point
|
@param p point to find the nearest snapped point
|
||||||
@return
|
@return
|
||||||
*/
|
*/
|
||||||
QPointF Diagram::snapToGrid(const QPointF &p)
|
QPointF Diagram::snapToGrid(const QPointF &p)
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ inline bool Diagram::displayGrid() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief Diagram::setUseBorder
|
@brief Diagram::setUseBorder
|
||||||
Set whether the diagram border (including rows/colums headers and the title
|
Set whether the diagram border (including rows/columns headers and the title
|
||||||
block) should be rendered along with the diagram. When set to false, the size
|
block) should be rendered along with the diagram. When set to false, the size
|
||||||
of the smallest rectangle containing all items is considered as the diagram
|
of the smallest rectangle containing all items is considered as the diagram
|
||||||
size.
|
size.
|
||||||
@@ -362,7 +362,7 @@ inline bool Diagram::useBorder() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief Diagram::setBorderOptions
|
@brief Diagram::setBorderOptions
|
||||||
Set the rendering options for the diagram border (including rows/colums
|
Set the rendering options for the diagram border (including rows/columns
|
||||||
headers and the title block)
|
headers and the title block)
|
||||||
@param bo Enabled options ORed together
|
@param bo Enabled options ORed together
|
||||||
@see BorderOptions
|
@see BorderOptions
|
||||||
@@ -375,7 +375,7 @@ inline void Diagram::setBorderOptions(Diagram::BorderOptions bo) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief Diagram::borderOptions
|
@brief Diagram::borderOptions
|
||||||
@return The rendering optios for the diagram border
|
@return The rendering options for the diagram border
|
||||||
@see setBorderOptions
|
@see setBorderOptions
|
||||||
*/
|
*/
|
||||||
inline Diagram::BorderOptions Diagram::borderOptions() {
|
inline Diagram::BorderOptions Diagram::borderOptions() {
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
/**
|
/**
|
||||||
@brief PasteDiagramCommand::PasteDiagramCommand
|
@brief PasteDiagramCommand::PasteDiagramCommand
|
||||||
Constructor
|
Constructor
|
||||||
@param dia : diagram where we must to paste
|
@param dia : diagram where we must paste
|
||||||
@param c : content to past
|
@param c : content to paste
|
||||||
@param parent : parent undo command
|
@param parent : parent undo command
|
||||||
*/
|
*/
|
||||||
PasteDiagramCommand::PasteDiagramCommand( Diagram *dia, const DiagramContent &c, QUndoCommand *parent) :
|
PasteDiagramCommand::PasteDiagramCommand( Diagram *dia, const DiagramContent &c, QUndoCommand *parent) :
|
||||||
@@ -64,7 +64,7 @@ void PasteDiagramCommand::undo()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief PasteDiagramCommand::redo
|
@brief PasteDiagramCommand::redo
|
||||||
Redo this commnand
|
Redo this command
|
||||||
*/
|
*/
|
||||||
void PasteDiagramCommand::redo()
|
void PasteDiagramCommand::redo()
|
||||||
{
|
{
|
||||||
@@ -244,7 +244,7 @@ void MoveElementsCommand::move(const QPointF &actual_movement)
|
|||||||
| dc::ElementTextFields
|
| dc::ElementTextFields
|
||||||
| dc::Tables))
|
| dc::Tables))
|
||||||
{
|
{
|
||||||
//If curent item have parent, and parent item is in content_to_move
|
//If current item has parent, and parent item is in content_to_move
|
||||||
//we don't apply movement to this item, because this item will be moved by is parent.
|
//we don't apply movement to this item, because this item will be moved by is parent.
|
||||||
if (qgi->parentItem())
|
if (qgi->parentItem())
|
||||||
if (content_to_move.items().contains(qgi->parentItem()))
|
if (content_to_move.items().contains(qgi->parentItem()))
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class MoveConductorsTextsCommand : public QUndoCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief The ChangeDiagramTextCommand class
|
@brief The ChangeDiagramTextCommand class
|
||||||
This commad modifies a text item.
|
This command modifies a text item.
|
||||||
*/
|
*/
|
||||||
class ChangeDiagramTextCommand : public QUndoCommand {
|
class ChangeDiagramTextCommand : public QUndoCommand {
|
||||||
// constructors, destructor
|
// constructors, destructor
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ bool DiagramContent::potentialIsManaged(QList<Conductor *> conductors)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief DiagramContent::hasTextEditing
|
@brief DiagramContent::hasTextEditing
|
||||||
@return true if handle a text currently in editing intercation
|
@return true if handle a text currently in editing interaction
|
||||||
*/
|
*/
|
||||||
bool DiagramContent::hasTextEditing()
|
bool DiagramContent::hasTextEditing()
|
||||||
{
|
{
|
||||||
@@ -436,7 +436,7 @@ int DiagramContent::count(int filter) const
|
|||||||
@param filter
|
@param filter
|
||||||
@return A string that describe the items of the diagram
|
@return A string that describe the items of the diagram
|
||||||
content according to filter.
|
content according to filter.
|
||||||
Exemple : X elements, Y conductors etc....
|
Example : X elements, Y conductors etc....
|
||||||
*/
|
*/
|
||||||
QString DiagramContent::sentence(int filter) const
|
QString DiagramContent::sentence(int filter) const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
* designation -> exhaustive comment used to explain what the element does.
|
* designation -> exhaustive comment used to explain what the element does.
|
||||||
* description -> exhaustive description used to explain what the element does.
|
* description -> exhaustive description used to explain what the element does.
|
||||||
* plant -> the plant assigned to the element
|
* plant -> the plant assigned to the element
|
||||||
* comment -> a little comment wich can be displayed in the folio
|
* comment -> a little comment which can be displayed in the folio
|
||||||
* manufacturer -> the manufacturer of the element
|
* manufacturer -> the manufacturer of the element
|
||||||
* manufacturer_reference -> the manufacturer reference of the element
|
* manufacturer_reference -> the manufacturer reference of the element
|
||||||
* quantity -> quantity of the element
|
* quantity -> quantity of the element
|
||||||
|
|||||||
@@ -914,7 +914,7 @@ void DiagramView::adjustSceneRect()
|
|||||||
QSettings settings;
|
QSettings settings;
|
||||||
if (settings.value("diagrameditor/zoom-out-beyond-of-folio", false).toBool())
|
if (settings.value("diagrameditor/zoom-out-beyond-of-folio", false).toBool())
|
||||||
{
|
{
|
||||||
//When zoom out beyong of folio is active,
|
//When zoom out beyond of folio is active,
|
||||||
//we always adjust the scene rect to be 1/3 bigger than the wiewport
|
//we always adjust the scene rect to be 1/3 bigger than the wiewport
|
||||||
QRectF vpbr = mapToScene(viewport()->rect()).boundingRect();
|
QRectF vpbr = mapToScene(viewport()->rect()).boundingRect();
|
||||||
vpbr.adjust(0, 0, vpbr.width()/3, vpbr.height()/3);
|
vpbr.adjust(0, 0, vpbr.width()/3, vpbr.height()/3);
|
||||||
@@ -1225,7 +1225,7 @@ void DiagramView::contextMenuEvent(QContextMenuEvent *e)
|
|||||||
m_diagram->clearSelection();
|
m_diagram->clearSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
// At this step qgi can be deleted for exemple if qgi is a QetGraphicsHandlerItem.
|
// At this step qgi can be deleted for example if qgi is a QetGraphicsHandlerItem.
|
||||||
// When we call clearSelection the parent item of the handler
|
// When we call clearSelection the parent item of the handler
|
||||||
// is deselected and so delete all handlers, in this case,
|
// is deselected and so delete all handlers, in this case,
|
||||||
// qgi become a dangling pointer.
|
// qgi become a dangling pointer.
|
||||||
|
|||||||
@@ -109,9 +109,9 @@ class DiagramView : public QGraphicsView
|
|||||||
void titleChanged(DiagramView *, const QString &);
|
void titleChanged(DiagramView *, const QString &);
|
||||||
/// Signal emitted when users wish to locate an element from the diagram within elements collection
|
/// Signal emitted when users wish to locate an element from the diagram within elements collection
|
||||||
void findElementRequired(const ElementsLocation &);
|
void findElementRequired(const ElementsLocation &);
|
||||||
/// Signal emmitted when diagram must be show
|
/// Signal emitted when diagram must be show
|
||||||
void showDiagram (Diagram *);
|
void showDiagram (Diagram *);
|
||||||
/// Signal emmtted when free rubberband changed.
|
/// Signal emitted when free rubberband changed.
|
||||||
/// When free rubberband selection ends this signal will be emitted with null value.
|
/// When free rubberband selection ends this signal will be emitted with null value.
|
||||||
void freeRubberBandChanged(QPolygonF polygon);
|
void freeRubberBandChanged(QPolygonF polygon);
|
||||||
|
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ void ElementDialog::checkAccept()
|
|||||||
/**
|
/**
|
||||||
@brief ElementDialog::location
|
@brief ElementDialog::location
|
||||||
@return The selected location or a null location if user has selected nothing
|
@return The selected location or a null location if user has selected nothing
|
||||||
or selection isn't compatible with the curent mode
|
or selection isn't compatible with the current mode
|
||||||
*/
|
*/
|
||||||
ElementsLocation ElementDialog::location() const
|
ElementsLocation ElementDialog::location() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ QVector <QPointer<Element>> ElementProvider::freeElement(ElementData::Types filt
|
|||||||
QVector<QPointer<Element>> free_elmt;
|
QVector<QPointer<Element>> free_elmt;
|
||||||
QList<Element *> elmt_list;
|
QList<Element *> elmt_list;
|
||||||
|
|
||||||
//serch in all diagram
|
//search in all diagram
|
||||||
for (const auto &diagram_ : qAsConst(m_diagram_list))
|
for (const auto &diagram_ : qAsConst(m_diagram_list))
|
||||||
{
|
{
|
||||||
//get all element in diagram d
|
//get all element in diagram d
|
||||||
@@ -124,7 +124,7 @@ QVector<QPointer<Element>> ElementProvider::find(ElementData::Types elmt_type) c
|
|||||||
@brief ElementProvider::table
|
@brief ElementProvider::table
|
||||||
@param table
|
@param table
|
||||||
@param model
|
@param model
|
||||||
@return All tables wich display the derivated class of model (if set)
|
@return All tables which display the derivated class of model (if set)
|
||||||
and not already in all the chain of next/previous table of table (if set)
|
and not already in all the chain of next/previous table of table (if set)
|
||||||
If table and model are nullptr, return every tables
|
If table and model are nullptr, return every tables
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ void ElementsCategoryEditor::acceptCreation()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//User must enter a directorie name
|
//User must enter a directory name
|
||||||
if (!m_file_line_edit -> isValid()) {
|
if (!m_file_line_edit -> isValid()) {
|
||||||
QET::QetMessageBox::critical(this,
|
QET::QetMessageBox::critical(this,
|
||||||
tr("Nom interne manquant", "message box title"),
|
tr("Nom interne manquant", "message box title"),
|
||||||
|
|||||||
@@ -138,16 +138,16 @@ void ElementsMover::continueMovement(const QPointF &movement)
|
|||||||
for (auto &conductor : m_moved_content.m_conductors_to_update)
|
for (auto &conductor : m_moved_content.m_conductors_to_update)
|
||||||
{
|
{
|
||||||
#if TODO_LIST
|
#if TODO_LIST
|
||||||
#pragma message("@TODO fix this problem correctly, probably we must to see conductor class.")
|
#pragma message("@TODO fix this problem correctly, probably we must see conductor class.")
|
||||||
#endif
|
#endif
|
||||||
//Due to a weird behavior, we must to ensure that the position of the conductor is to (0,0).
|
//Due to a weird behavior, we must ensure that the position of the conductor is (0,0).
|
||||||
//If not, in some unknown case the function QGraphicsScene::itemsBoundingRect() return a rectangle
|
//If not, in some unknown case the function QGraphicsScene::itemsBoundingRect() return a rectangle
|
||||||
//that take in acount the pos() of the conductor, even if the bounding rect returned by the conductor is not in the pos().
|
//that take into account the pos() of the conductor, even if the bounding rect returned by the conductor is not in the pos().
|
||||||
//For the user this situation appear when the top right of the folio is not at the top right of the graphicsview,
|
//For the user this situation appears when the top right of the folio is not at the top right of the graphicsview,
|
||||||
//but displaced to the right and/or bottom.
|
//but displaced to the right and/or bottom.
|
||||||
|
|
||||||
//@TODO fix this problem correctly, probably we must to see conductor class.
|
//@TODO fix this problem correctly, probably we must see conductor class.
|
||||||
// if (c->pos() != QPointF(0,0)) { //<- they work, but the conductor text return to her original pos when the pos is set by user and not auto
|
// if (c->pos() != QPointF(0,0)) { //<- they work, but the conductor text return to its original pos when the pos is set by user and not auto
|
||||||
// c->setPos(0,0); // because set the pos to 0,0 so text move to, and after call updatePath but because text pos is user defined
|
// c->setPos(0,0); // because set the pos to 0,0 so text move to, and after call updatePath but because text pos is user defined
|
||||||
// } // we don't move it.
|
// } // we don't move it.
|
||||||
conductor->updatePath();
|
conductor->updatePath();
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ class QStatusBar;
|
|||||||
|
|
||||||
A movement work in 3 steps:
|
A movement work in 3 steps:
|
||||||
1: beginMovement -> init a new movement
|
1: beginMovement -> init a new movement
|
||||||
2: continueMovement -> continue the curent movement
|
2: continueMovement -> continue the current movement
|
||||||
3: endMovement -> finish the curent movement
|
3: endMovement -> finish the current movement
|
||||||
|
|
||||||
A movement in progress must finish befor start a new movement. We can know if
|
A movement in progress must finish before starting a new movement. We can
|
||||||
element mover is ready for a new movement by calling isReady().
|
know if element mover is ready for a new movement by calling isReady().
|
||||||
*/
|
*/
|
||||||
class ElementsMover {
|
class ElementsMover {
|
||||||
// constructors, destructor
|
// constructors, destructor
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ ImportElementTextPattern::ImportElementTextPattern(Element *elmt):
|
|||||||
|
|
||||||
bool ok=false;
|
bool ok=false;
|
||||||
bool erase = false;
|
bool erase = false;
|
||||||
//Remove the .xml extention of the files
|
//Remove the .xml extension of the files
|
||||||
result.replaceInStrings(".xml", "");
|
result.replaceInStrings(".xml", "");
|
||||||
QString name = getName(result, &ok, &erase);
|
QString name = getName(result, &ok, &erase);
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ bool NewElementWizard::validStep2()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief NewElementWizard::createNewElement
|
@brief NewElementWizard::createNewElement
|
||||||
Lauch an element editor for create the new element
|
Launch an element editor to create the new element
|
||||||
*/
|
*/
|
||||||
void NewElementWizard::createNewElement()
|
void NewElementWizard::createNewElement()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -761,13 +761,13 @@ void ProjectView::initWidgets()
|
|||||||
connect(m_tab, SIGNAL(tabBarDoubleClicked(int)), this, SLOT(tabDoubleClicked(int)));
|
connect(m_tab, SIGNAL(tabBarDoubleClicked(int)), this, SLOT(tabDoubleClicked(int)));
|
||||||
connect(m_tab->tabBar(), SIGNAL(tabMoved(int, int)), this, SLOT(tabMoved(int, int)), Qt::QueuedConnection);
|
connect(m_tab->tabBar(), SIGNAL(tabMoved(int, int)), this, SLOT(tabMoved(int, int)), Qt::QueuedConnection);
|
||||||
|
|
||||||
//arrows buttton to return on first view
|
//arrows button to return on first view
|
||||||
QToolButton *m_first_view_button =new QToolButton;
|
QToolButton *m_first_view_button =new QToolButton;
|
||||||
m_first_view_button->setDefaultAction(m_first_view);
|
m_first_view_button->setDefaultAction(m_first_view);
|
||||||
m_first_view_button->setAutoRaise(true);
|
m_first_view_button->setAutoRaise(true);
|
||||||
m_tab->setCornerWidget(m_first_view_button, Qt::TopLeftCorner);
|
m_tab->setCornerWidget(m_first_view_button, Qt::TopLeftCorner);
|
||||||
|
|
||||||
//arrows buttton to go on last view
|
//arrows button to go on last view
|
||||||
QToolButton *m_end_view_button =new QToolButton;
|
QToolButton *m_end_view_button =new QToolButton;
|
||||||
m_end_view_button->setDefaultAction(m_end_view);
|
m_end_view_button->setDefaultAction(m_end_view);
|
||||||
m_end_view_button->setAutoRaise(true);
|
m_end_view_button->setAutoRaise(true);
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace QET {
|
|||||||
|
|
||||||
/// Supported types of interactive scaling, typically for a single element primitive
|
/// Supported types of interactive scaling, typically for a single element primitive
|
||||||
enum ScalingMethod {
|
enum ScalingMethod {
|
||||||
FreeScaling, ///< do not interfer with the default scaling process
|
FreeScaling, ///< do not interfere with the default scaling process
|
||||||
SnapScalingPointToGrid, ///< snap the point used to define the new bounding rectangle to the grid
|
SnapScalingPointToGrid, ///< snap the point used to define the new bounding rectangle to the grid
|
||||||
RoundScaleRatios ///< adjust the scaling movement so that the induced scaling ratios are rounded
|
RoundScaleRatios ///< adjust the scaling movement so that the induced scaling ratios are rounded
|
||||||
};
|
};
|
||||||
@@ -128,7 +128,7 @@ namespace QET {
|
|||||||
Retry, ///< The operation must be tried again
|
Retry, ///< The operation must be tried again
|
||||||
Ignore, ///< Skip the current item
|
Ignore, ///< Skip the current item
|
||||||
Erase, ///< Erase the target content
|
Erase, ///< Erase the target content
|
||||||
Abort, ///< abort the whole operation, ignoring the curent item
|
Abort, ///< abort the whole operation, ignoring the current item
|
||||||
Managed, ///< the current item was handled by the Strategy object: do not treat it and continue
|
Managed, ///< the current item was handled by the Strategy object: do not treat it and continue
|
||||||
Rename ///< the target has to be renamed
|
Rename ///< the target has to be renamed
|
||||||
};
|
};
|
||||||
@@ -152,7 +152,7 @@ namespace QET {
|
|||||||
enum QetCollection {
|
enum QetCollection {
|
||||||
Common, ///< From common collection
|
Common, ///< From common collection
|
||||||
Custom, ///< From user collection
|
Custom, ///< From user collection
|
||||||
Embedded ///< From an embedded collection (a project for exemple)
|
Embedded ///< From an embedded collection (a project for example)
|
||||||
};
|
};
|
||||||
|
|
||||||
QString qetCollectionToString (const QetCollection &c);
|
QString qetCollectionToString (const QetCollection &c);
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ TitleBlockTemplatesFilesCollection *QETApp::customTitleBlockTemplatesCollection(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief QETApp::availableTitleBlockTemplatesCollections
|
@brief QETApp::availableTitleBlockTemplatesCollections
|
||||||
@return the list of all available title block tempaltes collections,
|
@return the list of all available title block templates collections,
|
||||||
beginning with the common and custom ones, plus the projects-embedded ones.
|
beginning with the common and custom ones, plus the projects-embedded ones.
|
||||||
*/
|
*/
|
||||||
QList<TitleBlockTemplatesCollection *> QETApp::availableTitleBlockTemplatesCollections()
|
QList<TitleBlockTemplatesCollection *> QETApp::availableTitleBlockTemplatesCollections()
|
||||||
@@ -554,7 +554,8 @@ QString QETApp::commonElementsDir()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief QETApp::customElementsDir
|
@brief QETApp::customElementsDir
|
||||||
@return the dir path of user elements collection ened by a "/" separator
|
@return the dir path of user elements collection appended with a
|
||||||
|
"/" separator
|
||||||
*/
|
*/
|
||||||
QString QETApp::customElementsDir()
|
QString QETApp::customElementsDir()
|
||||||
{
|
{
|
||||||
@@ -905,7 +906,7 @@ void QETApp::overrideCommonElementsDir(const QString &new_ced) {
|
|||||||
/**
|
/**
|
||||||
@brief QETApp::overrideCommonTitleBlockTemplatesDir
|
@brief QETApp::overrideCommonTitleBlockTemplatesDir
|
||||||
Define the path of the directory containing the common title block
|
Define the path of the directory containing the common title block
|
||||||
tempaltes collection.
|
templates collection.
|
||||||
@param new_ctbtd
|
@param new_ctbtd
|
||||||
*/
|
*/
|
||||||
void QETApp::overrideCommonTitleBlockTemplatesDir(const QString &new_ctbtd) {
|
void QETApp::overrideCommonTitleBlockTemplatesDir(const QString &new_ctbtd) {
|
||||||
@@ -2121,8 +2122,8 @@ void QETApp::checkBackupFiles()
|
|||||||
{
|
{
|
||||||
for (QETProject *project : registeredProjects().values())
|
for (QETProject *project : registeredProjects().values())
|
||||||
{
|
{
|
||||||
/* We must to adjust with the flag
|
/* We must adjust with the flag
|
||||||
* QUrl::StripTrailingSlash to compar a path formated
|
* QUrl::StripTrailingSlash to compare a path formatted
|
||||||
* like the path returned by KAutoSaveFile
|
* like the path returned by KAutoSaveFile
|
||||||
*/
|
*/
|
||||||
const QString path = QUrl::fromLocalFile(
|
const QString path = QUrl::fromLocalFile(
|
||||||
@@ -2166,7 +2167,7 @@ void QETApp::checkBackupFiles()
|
|||||||
)
|
)
|
||||||
== QMessageBox::Ok)
|
== QMessageBox::Ok)
|
||||||
{
|
{
|
||||||
//If there is opened editors, we find those who are visible
|
//If there are open editors, find those that are visible
|
||||||
if (diagramEditors().count())
|
if (diagramEditors().count())
|
||||||
{
|
{
|
||||||
diagramEditors().first()->setVisible(true);
|
diagramEditors().first()->setVisible(true);
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class QETApp : public QObject
|
|||||||
bool every_template_reduced;
|
bool every_template_reduced;
|
||||||
bool every_template_visible;
|
bool every_template_visible;
|
||||||
QSignalMapper signal_map;
|
QSignalMapper signal_map;
|
||||||
QETArguments qet_arguments_; ///< Comand-line arguments parser
|
QETArguments qet_arguments_; ///< Command-line arguments parser
|
||||||
/**
|
/**
|
||||||
@brief non_interactive_execution_
|
@brief non_interactive_execution_
|
||||||
Whether the application will end
|
Whether the application will end
|
||||||
|
|||||||
@@ -451,7 +451,7 @@ void QETDiagramEditor::setUpActions()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//Lauch the plugin of terminal generator
|
//Launch the plugin of terminal generator
|
||||||
m_project_terminalBloc = new QAction(QET::Icons::TerminalStrip, tr("Lancer le plugin de création de borniers"), this);
|
m_project_terminalBloc = new QAction(QET::Icons::TerminalStrip, tr("Lancer le plugin de création de borniers"), this);
|
||||||
connect(m_project_terminalBloc, &QAction::triggered, this, &QETDiagramEditor::generateTerminalBlock);
|
connect(m_project_terminalBloc, &QAction::triggered, this, &QETDiagramEditor::generateTerminalBlock);
|
||||||
|
|
||||||
@@ -1390,7 +1390,7 @@ void QETDiagramEditor::selectGroupTriggered(QAction *action)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief QETDiagramEditor::addItemGroupTriggered
|
@brief QETDiagramEditor::addItemGroupTriggered
|
||||||
This slot is called when an item must be added to the curent diagram,
|
This slot is called when an item must be added to the current diagram,
|
||||||
this slot use the DVEventInterface to add item
|
this slot use the DVEventInterface to add item
|
||||||
@param action : Action that describe the item to add.
|
@param action : Action that describe the item to add.
|
||||||
*/
|
*/
|
||||||
@@ -1809,7 +1809,7 @@ void QETDiagramEditor::addProjectView(ProjectView *project_view)
|
|||||||
sub_window -> setWindowIcon(project_view -> windowIcon());
|
sub_window -> setWindowIcon(project_view -> windowIcon());
|
||||||
sub_window -> systemMenu() -> clear();
|
sub_window -> systemMenu() -> clear();
|
||||||
|
|
||||||
//By defaut QMdiSubWindow have a QAction "close" with shortcut QKeySequence::Close
|
//By default QMdiSubWindow have a QAction "close" with shortcut QKeySequence::Close
|
||||||
//But the QAction m_close_file of this class have the same shortcut too.
|
//But the QAction m_close_file of this class have the same shortcut too.
|
||||||
//We remove the shortcut of the QAction of QMdiSubWindow for avoid conflic
|
//We remove the shortcut of the QAction of QMdiSubWindow for avoid conflic
|
||||||
for(QAction *act : sub_window->actions())
|
for(QAction *act : sub_window->actions())
|
||||||
@@ -2062,7 +2062,7 @@ void QETDiagramEditor::projectWasClosed(ProjectView *project_view)
|
|||||||
undo_group.removeStack(project -> undoStack());
|
undo_group.removeStack(project -> undoStack());
|
||||||
QETApp::unregisterProject(project);
|
QETApp::unregisterProject(project);
|
||||||
}
|
}
|
||||||
//When project is closed, a lot of signal are emited, notably if there is an item selected in a diagram.
|
//When project is closed, a lot of signal are emitted, notably if there is an item selected in a diagram.
|
||||||
//In some special case, since signal/slot connection can be direct or queued, some signal are handled after QObject is deleted, and crash qet
|
//In some special case, since signal/slot connection can be direct or queued, some signal are handled after QObject is deleted, and crash qet
|
||||||
//notably in the function Diagram::elements when she call items() (I don't know exactly why).
|
//notably in the function Diagram::elements when she call items() (I don't know exactly why).
|
||||||
//set nullptr to "m_selection_properties_editor->setDiagram()" fix this crash
|
//set nullptr to "m_selection_properties_editor->setDiagram()" fix this crash
|
||||||
|
|||||||
@@ -187,12 +187,12 @@ class QETDiagramEditor : public QETMainWindow
|
|||||||
*m_project_edit_properties, ///< Edit the properties of the current project.
|
*m_project_edit_properties, ///< Edit the properties of the current project.
|
||||||
*m_project_add_diagram, ///< Add a diagram to the current project.
|
*m_project_add_diagram, ///< Add a diagram to the current project.
|
||||||
*m_remove_diagram_from_project, ///< Delete a diagram from the current project
|
*m_remove_diagram_from_project, ///< Delete a diagram from the current project
|
||||||
*m_clean_project, ///< Clean the content of the curent project by removing useless items
|
*m_clean_project, ///< Clean the content of the current project by removing useless items
|
||||||
*m_project_folio_list, ///< Sommaire des schemas
|
*m_project_folio_list, ///< Sommaire des schemas
|
||||||
*m_csv_export, ///< generate nomenclature
|
*m_csv_export, ///< generate nomenclature
|
||||||
*m_add_nomenclature, ///< Add nomenclature graphics item;
|
*m_add_nomenclature, ///< Add nomenclature graphics item;
|
||||||
*m_add_summary, ///<Add summary graphics item
|
*m_add_summary, ///<Add summary graphics item
|
||||||
*m_terminal_strip_dialog = nullptr, ///<Lauch terminal strip dialog
|
*m_terminal_strip_dialog = nullptr, ///<Launch terminal strip dialog
|
||||||
*m_project_terminalBloc, ///< generate terminal block
|
*m_project_terminalBloc, ///< generate terminal block
|
||||||
*m_project_export_conductor_num,///<Export the wire num to csv
|
*m_project_export_conductor_num,///<Export the wire num to csv
|
||||||
*m_export_project_db, ///Export to file the internal database of the current project
|
*m_export_project_db, ///Export to file the internal database of the current project
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#define QET_ICONS_H
|
#define QET_ICONS_H
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
/**
|
/**
|
||||||
This namespace is meant to delare icons used within the QElectroTech
|
This namespace is meant to declare icons used within the QElectroTech
|
||||||
application.
|
application.
|
||||||
*/
|
*/
|
||||||
namespace QET {
|
namespace QET {
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ QString QETInformation::elementInfoToVar(const QString &info)
|
|||||||
* @brief QETInformation::infoToVar
|
* @brief QETInformation::infoToVar
|
||||||
* @param info
|
* @param info
|
||||||
* @return return the string @info prepended by %{ ans appended by }
|
* @return return the string @info prepended by %{ ans appended by }
|
||||||
* exemple : if info is label, the returned string is %{label}
|
* example : if info is label, the returned string is %{label}
|
||||||
*/
|
*/
|
||||||
QString QETInformation::infoToVar(const QString &info)
|
QString QETInformation::infoToVar(const QString &info)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,10 +25,10 @@
|
|||||||
* Inside this namespace you will fin all information used in QElectrotech for
|
* Inside this namespace you will fin all information used in QElectrotech for
|
||||||
* element, conductor and diagram.
|
* element, conductor and diagram.
|
||||||
* Each information have 3 values :
|
* Each information have 3 values :
|
||||||
* #1 the info key = the key of an information as a QString used in the code (exemple : label)
|
* #1 the info key = the key of an information as a QString used in the code (example : label)
|
||||||
* #2 the info key to variable = the key in form of a variable.
|
* #2 the info key to variable = the key in form of a variable.
|
||||||
* This is used by the user to replace a variable by the string of this variable (exemple : %{label})
|
* This is used by the user to replace a variable by the string of this variable (example : %{label})
|
||||||
* #3 the info key translated to the current local (exemple label in dutch = Betriebsmittelkennzeichen)
|
* #3 the info key translated to the current local (example label in dutch = Betriebsmittelkennzeichen)
|
||||||
*/
|
*/
|
||||||
namespace QETInformation
|
namespace QETInformation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -629,7 +629,7 @@ QHash <QString, NumerotationContext> QETProject::folioAutoNum() const
|
|||||||
/**
|
/**
|
||||||
@brief QETProject::addConductorAutoNum
|
@brief QETProject::addConductorAutoNum
|
||||||
Add a new conductor numerotation context. If key already exist,
|
Add a new conductor numerotation context. If key already exist,
|
||||||
replace old context by the new context
|
replace old context with the new context
|
||||||
@param key
|
@param key
|
||||||
@param context
|
@param context
|
||||||
*/
|
*/
|
||||||
@@ -640,7 +640,7 @@ void QETProject::addConductorAutoNum(const QString& key, const NumerotationConte
|
|||||||
/**
|
/**
|
||||||
@brief QETProject::addElementAutoNum
|
@brief QETProject::addElementAutoNum
|
||||||
Add a new element numerotation context. If key already exist,
|
Add a new element numerotation context. If key already exist,
|
||||||
replace old context by the new context
|
replace old context with the new context
|
||||||
@param key
|
@param key
|
||||||
@param context
|
@param context
|
||||||
*/
|
*/
|
||||||
@@ -653,7 +653,7 @@ void QETProject::addElementAutoNum(const QString& key, const NumerotationContext
|
|||||||
/**
|
/**
|
||||||
@brief QETProject::addFolioAutoNum
|
@brief QETProject::addFolioAutoNum
|
||||||
Add a new folio numerotation context. If key already exist,
|
Add a new folio numerotation context. If key already exist,
|
||||||
replace old context by the new context
|
replace old context with the new context
|
||||||
@param key
|
@param key
|
||||||
@param context
|
@param context
|
||||||
*/
|
*/
|
||||||
@@ -1045,7 +1045,7 @@ bool QETProject::isEmpty() const
|
|||||||
/**
|
/**
|
||||||
@brief QETProject::importElement
|
@brief QETProject::importElement
|
||||||
Import the element represented by location
|
Import the element represented by location
|
||||||
to the embbeded collection of this project
|
to the embedded collection of this project
|
||||||
@param location
|
@param location
|
||||||
@return the location of the imported element, location can be null.
|
@return the location of the imported element, location can be null.
|
||||||
*/
|
*/
|
||||||
@@ -1082,7 +1082,7 @@ ElementsLocation QETProject::importElement(ElementsLocation &location)
|
|||||||
if (ied.exec() == QDialog::Accepted) {
|
if (ied.exec() == QDialog::Accepted) {
|
||||||
QET::Action action = ied.action();
|
QET::Action action = ied.action();
|
||||||
|
|
||||||
//Use the exisitng element
|
//Use the exisiting element
|
||||||
if (action == QET::Ignore) {
|
if (action == QET::Ignore) {
|
||||||
return existing_location;
|
return existing_location;
|
||||||
}
|
}
|
||||||
@@ -1211,7 +1211,7 @@ QList<ElementsLocation> QETProject::unusedElements() const
|
|||||||
within this project, false otherwise
|
within this project, false otherwise
|
||||||
*/
|
*/
|
||||||
bool QETProject::usesTitleBlockTemplate(const TitleBlockTemplateLocation &location) {
|
bool QETProject::usesTitleBlockTemplate(const TitleBlockTemplateLocation &location) {
|
||||||
// a diagram can only use a title block template embedded wihtin its parent project
|
// a diagram can only use a title block template embedded within its parent project
|
||||||
if (location.parentProject() != this) return(false);
|
if (location.parentProject() != this) return(false);
|
||||||
|
|
||||||
foreach (Diagram *diagram, diagrams()) {
|
foreach (Diagram *diagram, diagrams()) {
|
||||||
@@ -1641,7 +1641,7 @@ void QETProject::writeProjectPropertiesXml(QDomElement &xml_element) {
|
|||||||
default conductor
|
default conductor
|
||||||
defaut folio report
|
defaut folio report
|
||||||
default Xref
|
default Xref
|
||||||
@param xml_element : xml element to use for store default propertie.
|
@param xml_element : xml element to use to store default properties.
|
||||||
*/
|
*/
|
||||||
void QETProject::writeDefaultPropertiesXml(QDomElement &xml_element)
|
void QETProject::writeDefaultPropertiesXml(QDomElement &xml_element)
|
||||||
{
|
{
|
||||||
@@ -1720,7 +1720,7 @@ void QETProject::writeDefaultPropertiesXml(QDomElement &xml_element)
|
|||||||
@brief QETProject::addDiagram
|
@brief QETProject::addDiagram
|
||||||
Add a diagram in this project
|
Add a diagram in this project
|
||||||
@param diagram added diagram
|
@param diagram added diagram
|
||||||
@param pos postion of the new diagram, by default at the end
|
@param pos position of the new diagram, by default at the end
|
||||||
*/
|
*/
|
||||||
void QETProject::addDiagram(Diagram *diagram, int pos)
|
void QETProject::addDiagram(Diagram *diagram, int pos)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ QBrush QETXML::brushFromXml(const QDomElement &element)
|
|||||||
@brief QETXML::fileSystemDirToXmlCollectionDir
|
@brief QETXML::fileSystemDirToXmlCollectionDir
|
||||||
@param document : owner document of returned QDomElement,
|
@param document : owner document of returned QDomElement,
|
||||||
use to create the QDomElement.
|
use to create the QDomElement.
|
||||||
@param dir : file system direcory to convert to QDomElement directory
|
@param dir : file system directory to convert to QDomElement directory
|
||||||
@param rename : by default the attribute "name" of the returned
|
@param rename : by default the attribute "name" of the returned
|
||||||
QDomElement is the same name of @dir
|
QDomElement is the same name of @dir
|
||||||
but we can override itwith rename
|
but we can override itwith rename
|
||||||
@@ -656,7 +656,7 @@ QDomElement createXmlProperty(const QString& name, const char* value) {
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief propertyInteger
|
* \brief propertyInteger
|
||||||
* Reads an interger from the XML element.
|
* Reads an integer from the XML element.
|
||||||
* \param e DomElement which contains the property attribute
|
* \param e DomElement which contains the property attribute
|
||||||
* \param attribute_name Name of the attribute
|
* \param attribute_name Name of the attribute
|
||||||
* \param entier Return value if success
|
* \param entier Return value if success
|
||||||
@@ -710,7 +710,7 @@ QDomElement createXmlProperty(const QString& name, const QColor value) {
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief PropertiesInterface::propertyInteger
|
* \brief PropertiesInterface::propertyInteger
|
||||||
* Reads an interger from the XML element.
|
* Reads an integer from the XML element.
|
||||||
* \param e DomElement which contains the property attribute
|
* \param e DomElement which contains the property attribute
|
||||||
* \param attribute_name Name of the attribute
|
* \param attribute_name Name of the attribute
|
||||||
* \param entier Return value if success
|
* \param entier Return value if success
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ QTextOrientationWidget::QTextOrientationWidget(QWidget *parent) :
|
|||||||
{
|
{
|
||||||
// chaines par defaut
|
// chaines par defaut
|
||||||
text_size_hash_.insert(tr("Ex.", "Short example string"), -1);
|
text_size_hash_.insert(tr("Ex.", "Short example string"), -1);
|
||||||
text_size_hash_.insert(tr("Exemple", "Longer example string"), -1);
|
text_size_hash_.insert(tr("Example", "Longer example string"), -1);
|
||||||
|
|
||||||
// definit la politique de gestion de la taille de ce widget :
|
// definit la politique de gestion de la taille de ce widget :
|
||||||
// on prefere la sizeHint()
|
// on prefere la sizeHint()
|
||||||
|
|||||||
Reference in New Issue
Block a user