LogbookWidget.3 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .TH "LogbookWidget" 3 "Sat May 1 2021" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. LogbookWidget \- The \fBLogbookWidget\fP displays data from the database in a QSqlTableView fed by a QSqlQuery Model\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <logbookwidget\&.h>\fP
  11. .PP
  12. Inherits QWidget\&.
  13. .SS "Public Slots"
  14. .in +1c
  15. .ti -1c
  16. .RI "void \fBrefresh\fP ()"
  17. .br
  18. .RI "\fBLogbookWidget::refresh\fP Refreshes the view to reflect changes in the database\&. "
  19. .ti -1c
  20. .RI "void \fBonLogbookWidget_viewSelectionChanged\fP (\fBSettingsWidget::SettingSignal\fP signal)"
  21. .br
  22. .ti -1c
  23. .RI "void \fBrepopulateModel\fP ()"
  24. .br
  25. .RI "\fBLogbookWidget::repopulateModel\fP (public slot) - cleanly re-populates the model to cater for a change to the database connection (for example, when a backup is created or restored) "
  26. .in -1c
  27. .SS "Public Member Functions"
  28. .in +1c
  29. .ti -1c
  30. .RI "\fBLogbookWidget\fP (QWidget *parent=nullptr)"
  31. .br
  32. .in -1c
  33. .SH "Detailed Description"
  34. .PP
  35. The \fBLogbookWidget\fP displays data from the database in a QSqlTableView fed by a QSqlQuery Model\&.
  36. The \fBLogbookWidget\fP is the primary display interface for flights logged in the database\&. It fetches and stores flight data from the database via a QSqlQueryModel and displays it in a QTableView\&. With the way the flight data is written in the database, it would not be human-readable, so some processing is done on the database side to present a nicely formatted, human-readable display\&. This is achieved by means of a \fCSQL View\fP\&.
  37. .PP
  38. The user can select a view from a list of available views in the \fBSettingsWidget\fP\&.
  39. .SH "Author"
  40. .PP
  41. Generated automatically by Doxygen for openPilotLog from the source code\&.