gui: mainwindow: Fix typo in method name
This commit is contained in:
parent
20a1f8b2cd
commit
57f0afaf91
@ -661,7 +661,7 @@ void MainWindow::previewReceived(QSharedPointer<PreviewResult> preview, unsigned
|
|||||||
{
|
{
|
||||||
QFileInfo fileInfo{docPath};
|
QFileInfo fileInfo{docPath};
|
||||||
QMenu menu("labeRightClick", this);
|
QMenu menu("labeRightClick", this);
|
||||||
createSearchResutlMenu(menu, fileInfo);
|
createSearchResultMenu(menu, fileInfo);
|
||||||
menu.addAction("Copy page number",
|
menu.addAction("Copy page number",
|
||||||
[previewPage] { QGuiApplication::clipboard()->setText(QString::number(previewPage)); });
|
[previewPage] { QGuiApplication::clipboard()->setText(QString::number(previewPage)); });
|
||||||
menu.exec(QCursor::pos());
|
menu.exec(QCursor::pos());
|
||||||
@ -998,7 +998,7 @@ void MainWindow::handleSearchError(QString error)
|
|||||||
ui->lblSearchResults->setText("Error:" + 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",
|
menu.addAction("Copy filename to clipboard",
|
||||||
[&fileInfo] { QGuiApplication::clipboard()->setText(fileInfo.fileName()); });
|
[&fileInfo] { QGuiApplication::clipboard()->setText(fileInfo.fileName()); });
|
||||||
@ -1062,7 +1062,7 @@ void MainWindow::showSearchResultsContextMenu(const QPoint &point)
|
|||||||
}
|
}
|
||||||
QFileInfo pathinfo(item->text(1));
|
QFileInfo pathinfo(item->text(1));
|
||||||
QMenu menu("SearchResults", this);
|
QMenu menu("SearchResults", this);
|
||||||
createSearchResutlMenu(menu, pathinfo);
|
createSearchResultMenu(menu, pathinfo);
|
||||||
menu.exec(QCursor::pos());
|
menu.exec(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ class MainWindow : public QMainWindow
|
|||||||
void keyPressEvent(QKeyEvent *event) override;
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void handleSearchResults(const QVector<SearchResult> &results);
|
void handleSearchResults(const QVector<SearchResult> &results);
|
||||||
void handleSearchError(QString error);
|
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 openDocument(QString path, int num);
|
||||||
void openFile(QString path);
|
void openFile(QString path);
|
||||||
void initSettingsTabs();
|
void initSettingsTabs();
|
||||||
|
Loading…
Reference in New Issue
Block a user