Skip to content

Commit

Permalink
src:Fix context menu position
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
  • Loading branch information
QQxiaoming committed Nov 10, 2023
1 parent ea024b1 commit f99a109
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ MainWindow::MainWindow(QString dir, StartupUIMode mode, QLocale::Language lang,
delete menu;
return;
}
menu->move(cursor().pos());
menu->move(cursor().pos()+QPoint(5,5));
menu->show();
});
connect(mainWidgetGroup->sessionTab,&SessionTab::dragTabMoved,this,[=](int from, int to, SessionTab *toTab){
Expand Down Expand Up @@ -627,7 +627,7 @@ void MainWindow::floatingWindow(MainWidgetGroup *g, int index) {
moveToAnotherTab(newGroup,0,1);
dialog->close();
});
menu->move(cursor().pos());
menu->move(cursor().pos()+QPoint(5,5));
menu->show();
});
connect(group->commandWidget, &CommandWidget::sendData, this, [=](const QByteArray &data) {
Expand Down
2 changes: 1 addition & 1 deletion src/sessionmanagerwidget/sessionmanagertreeview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void SessionManagerTreeView::contextMenuEvent(QContextMenuEvent *event) {
}

if(!contextMenu->isEmpty()) {
contextMenu->move(cursor().pos());
contextMenu->move(cursor().pos()+QPoint(5,5));
contextMenu->show();
}
}
Expand Down

0 comments on commit f99a109

Please sign in to comment.