diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-08-02 10:45:40 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-08-02 11:49:50 +0000 |
commit | 2e5f1d3926cb6c6fdbbf5f86e10059e396c3604c (patch) | |
tree | bf1fab8c3a4c5f33cfa7ac48d9eb5e38f6f7458a | |
parent | 0562c1112ce30a6e9ea842722eb236e0b5fa1265 (diff) |
Screen Capture Example: Fix some typos
Change-Id: I3a97cf173d8cdd1014689040937ffdb5a28c3d26
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
(cherry picked from commit 213e32ff5d3c674413049684cbccc9b6e5fb3b4c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/multimedia/screencapture/doc/src/screencapture.qdoc | 4 | ||||
-rw-r--r-- | examples/multimedia/screencapture/screencapturepreview.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/multimedia/screencapture/doc/src/screencapture.qdoc b/examples/multimedia/screencapture/doc/src/screencapture.qdoc index ad03ff617..26abc1535 100644 --- a/examples/multimedia/screencapture/doc/src/screencapture.qdoc +++ b/examples/multimedia/screencapture/doc/src/screencapture.qdoc @@ -23,9 +23,9 @@ The example consists of three custom classes. The UI and all screen capture functionality is implemented in the class ScreenCapturePreview. The classes - ScreenlListModel and WindowListModel only serves as models behind the two + ScreenListModel and WindowListModel only serve as models behind the two QListView widgets. The main function creates a ScreenCapturePreview object, - which in turn creates an instance of either QScreenCapture or QWindowCapture, + which in turn creates instances of QScreenCapture and QWindowCapture, and a QMediaCaptureSession and QVideoWidget, in addition to all the UI widgets. The screen and window models are populated with the return values of diff --git a/examples/multimedia/screencapture/screencapturepreview.cpp b/examples/multimedia/screencapture/screencapturepreview.cpp index 86472bc7c..d6720775b 100644 --- a/examples/multimedia/screencapture/screencapturepreview.cpp +++ b/examples/multimedia/screencapture/screencapturepreview.cpp @@ -98,10 +98,10 @@ void ScreenCapturePreview::onCurrentWindowSelectionChanged(QItemSelection select if (auto indexes = selection.indexes(); !indexes.empty()) { auto window = windowListModel->window(indexes.front()); if (!window.isValid()) { - const auto questionResust = QMessageBox::question( + const auto questionResult = QMessageBox::question( this, tr("Invalid window"), tr("The window is no longer valid. Update the list of windows?")); - if (questionResust == QMessageBox::Yes) { + if (questionResult == QMessageBox::Yes) { updateActive(SourceType::Window, false); windowListView->clearSelection(); |