mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Wrap code for better readability
This commit is contained in:
@@ -34,7 +34,8 @@ TitleBlockProperties::TitleBlockProperties() :
|
||||
/**
|
||||
Destructeur
|
||||
*/
|
||||
TitleBlockProperties::~TitleBlockProperties() {
|
||||
TitleBlockProperties::~TitleBlockProperties()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,7 +74,8 @@ bool TitleBlockProperties::operator!=(const TitleBlockProperties &ip) {
|
||||
Exporte le cartouche sous formes d'attributs XML ajoutes a l'element e.
|
||||
@param e Element XML auquel seront ajoutes des attributs
|
||||
*/
|
||||
void TitleBlockProperties::toXml(QDomElement &e) const {
|
||||
void TitleBlockProperties::toXml(QDomElement &e) const
|
||||
{
|
||||
e.setAttribute("author", author);
|
||||
e.setAttribute("title", title);
|
||||
e.setAttribute("filename", filename);
|
||||
@@ -136,7 +138,8 @@ void TitleBlockProperties::fromXml(const QDomElement &e) {
|
||||
@param settings : setting to use
|
||||
@param prefix : name to use as prefix for this property
|
||||
*/
|
||||
void TitleBlockProperties::toSettings(QSettings &settings, const QString &prefix) const {
|
||||
void TitleBlockProperties::toSettings(QSettings &settings, const QString &prefix) const
|
||||
{
|
||||
settings.setValue(prefix + "title", title);
|
||||
settings.setValue(prefix + "author", author);
|
||||
settings.setValue(prefix + "filename", filename);
|
||||
@@ -192,7 +195,8 @@ TitleBlockProperties TitleBlockProperties::defaultProperties()
|
||||
/**
|
||||
@return La date a utiliser
|
||||
*/
|
||||
QDate TitleBlockProperties::finalDate() const {
|
||||
QDate TitleBlockProperties::finalDate() const
|
||||
{
|
||||
if (useDate == UseDateValue) {
|
||||
return(date);
|
||||
} else {
|
||||
@@ -207,7 +211,8 @@ QDate TitleBlockProperties::finalDate() const {
|
||||
* now pour afficher la date courante (a la creation du schema)
|
||||
* une date au format yyyyMMdd pour utiliser une date fixe
|
||||
*/
|
||||
QString TitleBlockProperties::exportDate() const {
|
||||
QString TitleBlockProperties::exportDate() const
|
||||
{
|
||||
QString date_setting_value;
|
||||
if (useDate == UseDateValue) {
|
||||
if (date.isNull()) date_setting_value = "null";
|
||||
|
||||
Reference in New Issue
Block a user