Wrap code for better readability

This commit is contained in:
Simon De Backer
2020-08-20 17:45:24 +02:00
parent d1c91a7fc2
commit 88686b3cbf
11 changed files with 152 additions and 58 deletions

View File

@@ -41,7 +41,10 @@ QetGraphicsTableFactory::QetGraphicsTableFactory()
*/
void QetGraphicsTableFactory::createAndAddNomenclature(Diagram *diagram)
{
QScopedPointer<AddTableDialog> d(new AddTableDialog(new ElementQueryWidget(), diagram->views().first()));
QScopedPointer<AddTableDialog> d(
new AddTableDialog(
new ElementQueryWidget(),
diagram->views().first()));
d->setWindowTitle(QObject::tr("Ajouter une nomenclature"));
if (d->exec()) {
@@ -57,7 +60,10 @@ void QetGraphicsTableFactory::createAndAddNomenclature(Diagram *diagram)
*/
void QetGraphicsTableFactory::createAndAddSummary(Diagram *diagram)
{
QScopedPointer<AddTableDialog> d(new AddTableDialog(new SummaryQueryWidget(), diagram->views().first()));
QScopedPointer<AddTableDialog> d(
new AddTableDialog(
new SummaryQueryWidget(),
diagram->views().first()));
d->setWindowTitle(QObject::tr("Ajouter un sommaire"));
if (d->exec()) {