mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Wrap code for better readability
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
/**
|
||||
Constructor
|
||||
*/
|
||||
TitleBlockCell::TitleBlockCell() {
|
||||
TitleBlockCell::TitleBlockCell()
|
||||
{
|
||||
cell_type = TitleBlockCell::EmptyCell;
|
||||
num_row = num_col = -1;
|
||||
row_span = col_span = 0;
|
||||
@@ -20,27 +21,31 @@ TitleBlockCell::TitleBlockCell() {
|
||||
/**
|
||||
Destructor
|
||||
*/
|
||||
TitleBlockCell::~TitleBlockCell() {
|
||||
TitleBlockCell::~TitleBlockCell()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
@return the type of this cell
|
||||
*/
|
||||
TitleBlockCell::TemplateCellType TitleBlockCell::type() const {
|
||||
TitleBlockCell::TemplateCellType TitleBlockCell::type() const
|
||||
{
|
||||
return(cell_type);
|
||||
}
|
||||
|
||||
/**
|
||||
@return the horizontal alignment of this cell
|
||||
*/
|
||||
int TitleBlockCell::horizontalAlign() const {
|
||||
int TitleBlockCell::horizontalAlign() const
|
||||
{
|
||||
return(alignment & Qt::AlignHorizontal_Mask);
|
||||
}
|
||||
|
||||
/**
|
||||
@return the vertical alignment of this cell
|
||||
*/
|
||||
int TitleBlockCell::verticalAlign() const {
|
||||
int TitleBlockCell::verticalAlign() const
|
||||
{
|
||||
return(alignment & Qt::AlignVertical_Mask);
|
||||
}
|
||||
|
||||
@@ -131,7 +136,8 @@ QString TitleBlockCell::attributeName(const QString &attribute) {
|
||||
/**
|
||||
@return true if this cell spans over other cells, false otherwise.
|
||||
*/
|
||||
bool TitleBlockCell::spans() const {
|
||||
bool TitleBlockCell::spans() const
|
||||
{
|
||||
return(row_span || col_span);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user