Skip to content

Feature/printawards - added print awards for the relays and added basic designer #1176

Draft
lukaskett wants to merge 16 commits into
Quick-Box:mainfrom
lukaskett:feature/print-awards
Draft

Feature/printawards - added print awards for the relays and added basic designer #1176
lukaskett wants to merge 16 commits into
Quick-Box:mainfrom
lukaskett:feature/print-awards

Conversation

@lukaskett

Copy link
Copy Markdown
Collaborator

@fvacek fvacek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. cannot test because designer crash on exit
  2. please fix clang tidy errors

ui->edFilter->setText(opts.value("classFilterText").toString());
ui->chkClassFilterDoesntMatch->setChecked(opts.value("invertClassFilter", false).toBool());
int ft = opts.value("classFilterType", 0).toInt();
if (ft == 1) ui->btRegExp->setChecked(true);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use always braces and body on newline with if

halign: Frame.AlignHCenter
textStyle: myStyle.textStyleBold
text: root.eventConfig.director()
text: root.eventConfig.director

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2026-06-28T19:53:39[reportviewwidget.cpp:78]|I| Show report: /home/fanda/b/quickbox/quickevent/app/quickevent/reports/Runs/qml/reports/awards/results_stage_awards.qml
QQmlExpression: Expression file:///home/fanda/b/quickbox/quickevent/app/quickevent/reports/Runs/qml/reports/awards/results_stage_awards.qml:142:11 depends on non-bindable properties:
    Event::EventConfig::director
QQmlExpression: Expression file:///home/fanda/b/quickbox/quickevent/app/quickevent/reports/Runs/qml/reports/awards/results_stage_awards.qml:117:10 depends on non-bindable properties:
    Event::EventConfig::mainReferee
file:///home/fanda/b/quickbox/quickevent/app/quickevent/reports/Runs/qml/reports/awards/results_stage_awards.qml:117: TypeError: Property 'mainReferee' of object Event::EventConfig(0x563b1c438b00) is not a function
file:///home/fanda/b/quickbox/quickevent/app/quickevent/reports/Runs/qml/reports/awards/results_stage_awards.qml:142: TypeError: Property 'director' of object Event::EventConfig(0x563b1c438b00) is not a function

class AwardDesignerDialog;
}

class AwardDesignerDialog : public QDialog

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2026-06-28T19:59:53[runsplugin.cpp:952]|I| QVariantMap Runs::RunsPlugin::printAwardsOptionsWithDialog(const QVariantMap &)
ASSERT failure in AwardDesignerScene: "Called object is not of the correct type (class destructor may have already run)", file /home/fanda/app/qt5/6.10.1/gcc_64/include/QtCore/qobjectdefs_impl.h, line 106
22:00:46: The command "/home/fanda/b/quickbox/quickevent/app/quickevent/quickevent -v tablemodel:M" terminated abnormally.

error when designer is closed

connect(m_scene, &AwardDesignerScene::selectedItemChanged,
this, &AwardDesignerDialog::onSelectedItemChanged);

connect(ui->btnAddField, &QPushButton::clicked, this, &AwardDesignerDialog::onAddFieldClicked);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra spaces everywhere please

connect(ui->btnFitView, &QPushButton::clicked, this, [this]() {
ui->graphicsView->fitInView(m_scene->sceneRect(), Qt::KeepAspectRatio);
});
connect(ui->btnZoomIn, &QPushButton::clicked, this, [this]() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ is not very descriptive icon for zoom-in

AwardDesigner::Design currentDesign() const;
QString designName() const;

private Q_SLOTS:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private Q_SLOTS:
private:

{
QString name = ui->edDesignName->text().trimmed();
if (name.isEmpty()) {
QMessageBox::warning(this, tr("Uložit návrh"), tr("Zadejte prosím název návrhu."));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

English phrases everywhere please

return false;
}
QString key = dbKey(name);
QString json = QString::fromUtf8(QJsonDocument(toJson()).toJson(QJsonDocument::Compact));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expanded json pls

return d;
}

QJsonObject Item::toJson() const

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@fvacek

fvacek commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Report preview is not working

@fvacek

fvacek commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

This patch introduces new report system to QE, what is rather big change. I'm afraid that some AI solution cannot be used without some architectural discussion. I agree that QML reports are not ideal and idea of designer is beautiful, but if I commit this change, then every reports should be covered by the new system. I do not like to have awards solved by AI slop without any connection to QE reporting system, sorry.

I was thinking about QE new reporting system already and if I would make decision, than I would try Typst!. https://typst.app/ Then we can generate any of current QE report (including awards) and get rid of QML.

I really do not believe, that QE can be sustainably developed by applying ad-hoc AI patches without bigger plan.

I also really appreciate idea of better reports system, ideally with designer. So thank you to open this topic and we can start to work on that.

@fvacek fvacek marked this pull request as draft June 28, 2026 20:26
@lukaskett

Copy link
Copy Markdown
Collaborator Author

Printing awards is cool feature that saves time and stress in my point of view. But prepare QML template, load it and use it is too complicated at this moment.

When fixing few issue I got an idea of the designer that could make it more user friendly and simply configurable.

I agree that it needs more discussion, it is mainly POC to show another approach that is more focused on basic users. We can close PR or I can try to finish requested changes to start with simple designer. Let me know.

I am happy that you like the idea and you were also thinking about it already👌You are the one who knows QE into details and you should decide which reporting system suits QE needs the best.

@fvacek

fvacek commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

What is your opinion on using Typst! for QE report rendering?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tisk diplomů - špatná první stránka

2 participants