|
ORE Studio 0.0.4
|
Widget for displaying country version history. More...
#include <CountryHistoryDialog.hpp>
Inherits QWidget.

Signals | |
| void | statusChanged (const QString &message) |
| void | errorOccurred (const QString &error_message) |
| void | openVersionRequested (const refdata::domain::country &country, int versionNumber) |
| Emitted when user requests to open a version in read-only mode. | |
| void | revertVersionRequested (const refdata::domain::country &country) |
| Emitted when user requests to revert to a selected version. | |
Public Member Functions | |
| CountryHistoryDialog (QString alpha2_code, ClientManager *clientManager, QWidget *parent=nullptr) | |
| void | loadHistory () |
| void | setImageCache (ImageCache *imageCache) |
| Set the image cache for displaying country flags. | |
| QSize | sizeHint () const override |
| void | markAsStale () |
| Mark the history data as stale and reload. | |
| QString | alpha2Code () const |
| Returns the alpha-2 code of the country. | |
| const std::vector< refdata::domain::country > & | getHistory () const |
| Returns the loaded history vector for version navigation. | |
Widget for displaying country version history.
| void markAsStale | ( | ) |
Mark the history data as stale and reload.
Called when a notification is received indicating this country has changed on the server. Automatically reloads the history data.
|
signal |
Emitted when user requests to open a version in read-only mode.
| country | The country data at the selected version. |
| versionNumber | The version number being viewed. |
|
signal |
Emitted when user requests to revert to a selected version.
| country | The country data to revert to. |