Widget that displays a screenshot thumbnail with a remove button.
More...
#include <QmitkScreenshotWidget.h>
Widget that displays a screenshot thumbnail with a remove button.
Used within the screenshot question widget to show individual screenshots that have been captured or loaded. Each widget shows a preview and allows the user to remove it.
Definition at line 31 of file QmitkScreenshotWidget.h.
◆ QmitkScreenshotWidget() [1/2]
| QmitkScreenshotWidget::QmitkScreenshotWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct an empty screenshot widget.
- Parameters
-
| parent | Optional parent widget. |
◆ QmitkScreenshotWidget() [2/2]
| QmitkScreenshotWidget::QmitkScreenshotWidget |
( |
const QString & |
screenshotPath, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Construct a screenshot widget with an initial screenshot.
- Parameters
-
| screenshotPath | File path to the screenshot image. |
| parent | Optional parent widget. |
◆ ~QmitkScreenshotWidget()
| QmitkScreenshotWidget::~QmitkScreenshotWidget |
( |
| ) |
|
|
override |
◆ GetScreenshotPath()
| QString QmitkScreenshotWidget::GetScreenshotPath |
( |
| ) |
const |
Return the file path of the currently displayed screenshot.
◆ Remove
Emitted when the user clicks the remove button.
- Parameters
-
| sender | Pointer to the widget requesting removal. |
◆ SetScreenshot()
| void QmitkScreenshotWidget::SetScreenshot |
( |
const QString & |
path | ) |
|
Set the screenshot image to display.
- Parameters
-
| path | File path to the screenshot image. |
The documentation for this class was generated from the following file: