29 columns_header_height(20.0),
30 display_columns(true),
33 rows_header_width(20.0),
66 return(!(*
this == bp));
77 e.setAttribute(
"rowsize", QString(
"%1").arg(
rows_height));
79 e.setAttribute(
"displayrows",
display_rows ?
"true" :
"false");
87 if (e.hasAttribute(
"cols"))
columns_count = e.attribute(
"cols").toInt();
88 if (e.hasAttribute(
"colsize"))
columns_width = e.attribute(
"colsize").toInt();
89 if (e.hasAttribute(
"rows"))
rows_count = e.attribute(
"rows").toInt();
90 if (e.hasAttribute(
"rowsize"))
rows_height = e.attribute(
"rowsize").toInt();
91 if (e.hasAttribute(
"displaycols"))
display_columns = e.attribute(
"displaycols") ==
"true";
92 if (e.hasAttribute(
"displayrows"))
display_rows = e.attribute(
"displayrows") ==
"true";
104 settings.setValue(prefix +
"rows",
rows_count);
105 settings.setValue(prefix +
"rowsize",
rows_height);
106 settings.setValue(prefix +
"displayrows",
display_rows);
virtual ~BorderProperties()
void toXml(QDomElement &) const
qreal columns_width
Columns width.
qreal columns_header_height
Column headers height.
void fromSettings(QSettings &, const QString &=QString())
static BorderProperties defaultProperties()
BorderProperties::defaultProperties.
bool operator!=(const BorderProperties &)
bool operator==(const BorderProperties &)
qreal rows_height
Rows height.
void toSettings(QSettings &, const QString &=QString()) const
int columns_count
Columns count.
bool display_rows
Whether to display row headers.
void fromXml(QDomElement &)
qreal rows_header_width
Row headers width.
int rows_count
Rows count.
bool display_columns
Whether to display column headers.