work save

This commit is contained in:
royqh1979 2021-09-04 22:15:02 +08:00
parent 959ac42226
commit 097236eb59
2 changed files with 12 additions and 0 deletions

View File

@ -1112,6 +1112,12 @@ void MainWindow::buildContextMenus()
ui->watchView->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->watchView,&QWidget::customContextMenuRequested,
this, &MainWindow::onWatchViewContextMenu);
ui->EditorTabsLeft->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->EditorTabsLeft,&QWidget::customContextMenuRequested,
this, &MainWindow::onEditorTabContextMenu);
ui->EditorTabsRight->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->EditorTabsRight,&QWidget::customContextMenuRequested,
this, &MainWindow::onEditorTabContextMenu);
}
@ -1248,6 +1254,11 @@ void MainWindow::onEditorContextMenu(const QPoint &pos)
}
void MainWindow::onEditorTabContextMenu(const QPoint &pos)
{
}
void MainWindow::onFileChanged(const QString &path)
{
Editor *e = mEditorList->getOpenedEditorByFilename(path);

View File

@ -119,6 +119,7 @@ public slots:
void onEndParsing(int total, int updateView);
void onEvalValueReady(const QString& value);
void onEditorContextMenu(const QPoint& pos);
void onEditorTabContextMenu(const QPoint& pos);
private:
void openFiles(const QStringList& files);