mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix source typo 'minimumRowHeigth'
This commit is contained in:
committed by
Laurent Trinques
parent
a1f9d05f1c
commit
8242e4cfd7
@@ -65,7 +65,7 @@ void QetGraphicsTableItem::adjustTableToFolio(
|
|||||||
|
|
||||||
//Calcul the maximum row to display to fit the nomenclature into diagram
|
//Calcul the maximum row to display to fit the nomenclature into diagram
|
||||||
auto available_height = drawable_rect.height() - table->pos().y();
|
auto available_height = drawable_rect.height() - table->pos().y();
|
||||||
auto min_row_height = table->minimumRowHeigth();
|
auto min_row_height = table->minimumRowHeight();
|
||||||
table->setDisplayNRow(int(floor(available_height/min_row_height))); //Convert a double to int, but max_row_to_display is already rounded an integer so we assume everything is ok
|
table->setDisplayNRow(int(floor(available_height/min_row_height))); //Convert a double to int, but max_row_to_display is already rounded an integer so we assume everything is ok
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -564,10 +564,10 @@ void QetGraphicsTableItem::initLink()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief QetGraphicsTableItem::minimumRowHeigth
|
@brief QetGraphicsTableItem::minimumRowHeight
|
||||||
@return the minimum height of a row
|
@return the minimum height of a row
|
||||||
*/
|
*/
|
||||||
int QetGraphicsTableItem::minimumRowHeigth() const
|
int QetGraphicsTableItem::minimumRowHeight() const
|
||||||
{
|
{
|
||||||
return m_minimum_row_height;
|
return m_minimum_row_height;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class QetGraphicsTableItem : public QetGraphicsItem
|
|||||||
void setToMinimumHeight();
|
void setToMinimumHeight();
|
||||||
void initLink();
|
void initLink();
|
||||||
QUuid uuid() const {return m_uuid;}
|
QUuid uuid() const {return m_uuid;}
|
||||||
int minimumRowHeigth() const;
|
int minimumRowHeight() const;
|
||||||
|
|
||||||
QDomElement toXml(QDomDocument &dom_document) const;
|
QDomElement toXml(QDomDocument &dom_document) const;
|
||||||
void fromXml(const QDomElement &dom_element);
|
void fromXml(const QDomElement &dom_element);
|
||||||
|
|||||||
Reference in New Issue
Block a user