Kexi/Junior Jobs/Implement "Do you want to open" question after exporting report

From KDE Community Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Status: DONE, Review: 116746, Target: 2.9, Difficulty: EASY

Proposed and mentored by Jstaniek (talk) 21:51, 7 March 2014 (UTC)

The Goal

Implement "Do you want to open exported document?" question dialog after exporting report to Text/Spreadsheet/as Web Page. Currently the document always opens, what is a usability defect.

This is where the "Export As" command is available for a report:

Requirements

  • Use KMessageBox::questionYesNo() for displaying the dialog
  • For the const KGuiItem& buttonYes argument use KStandardGuiItem::open()
  • For the const KGuiItem& buttonNo argument use KStandardGuiItem::close()
  • This is similar to the question of CSV import: