gui: mainwindow: Fix typo in method name

This commit is contained in:
Albert S. 2022-11-22 20:29:32 +01:00
부모 20a1f8b2cd
커밋 57f0afaf91
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제

파일 보기

@ -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());
}

파일 보기

@ -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();