gui: mainwindow: Fix typo in method name

Esse commit está contido em:
Albert S. 2022-11-22 20:29:32 +01:00
commit 57f0afaf91
2 arquivos alterados com 4 adições e 4 exclusões

Ver arquivo

@ -661,7 +661,7 @@ void MainWindow::previewReceived(QSharedPointer<PreviewResult> preview, unsigned
{
QFileInfo fileInfo{docPath};
QMenu menu("labeRightClick", this);
createSearchResutlMenu(menu, fileInfo);
createSearchResultMenu(menu, fileInfo);
menu.addAction("Copy page number",
[previewPage] { QGuiApplication::clipboard()->setText(QString::number(previewPage)); });
menu.exec(QCursor::pos());
@ -998,7 +998,7 @@ void MainWindow::handleSearchError(QString error)
ui->lblSearchResults->setText("Error:" + error);
}
void MainWindow::createSearchResutlMenu(QMenu &menu, const QFileInfo &fileInfo)
void MainWindow::createSearchResultMenu(QMenu &menu, const QFileInfo &fileInfo)
{
menu.addAction("Copy filename to clipboard",
[&fileInfo] { QGuiApplication::clipboard()->setText(fileInfo.fileName()); });
@ -1062,7 +1062,7 @@ void MainWindow::showSearchResultsContextMenu(const QPoint &point)
}
QFileInfo pathinfo(item->text(1));
QMenu menu("SearchResults", this);
createSearchResutlMenu(menu, pathinfo);
createSearchResultMenu(menu, pathinfo);
menu.exec(QCursor::pos());
}

Ver arquivo

@ -56,7 +56,7 @@ class MainWindow : public QMainWindow
void keyPressEvent(QKeyEvent *event) override;
void handleSearchResults(const QVector<SearchResult> &results);
void handleSearchError(QString error);
void createSearchResutlMenu(QMenu &menu, const QFileInfo &fileInfo);
void createSearchResultMenu(QMenu &menu, const QFileInfo &fileInfo);
void openDocument(QString path, int num);
void openFile(QString path);
void initSettingsTabs();