chore: bump deprecated cutoff to Qt 6.4.3 (#6169)

This commit is contained in:
nerix
2025-04-26 13:36:09 +02:00
committed by GitHub
parent 6fe6843cbd
commit 01e7050ffc
15 changed files with 134 additions and 118 deletions
+11 -11
View File
@@ -116,24 +116,23 @@ NotebookTab::NotebookTab(Notebook *notebook)
// XXX: this doesn't update after changing hotkeys
this->menu_.addAction(
"Close Tab",
[this]() {
this->notebook_->removePage(this->page);
},
getApp()->getHotkeys()->getDisplaySequence(HotkeyCategory::Window,
"removeTab"));
this->menu_.addAction("Close Tab",
getApp()->getHotkeys()->getDisplaySequence(
HotkeyCategory::Window, "removeTab"),
[this]() {
this->notebook_->removePage(this->page);
});
this->menu_.addAction(
"Popup Tab",
getApp()->getHotkeys()->getDisplaySequence(HotkeyCategory::Window,
"popup", {{"window"}}),
[this]() {
if (auto *container = dynamic_cast<SplitContainer *>(this->page))
{
container->popup();
}
},
getApp()->getHotkeys()->getDisplaySequence(HotkeyCategory::Window,
"popup", {{"window"}}));
});
this->menu_.addAction("Duplicate Tab", [this]() {
this->notebook_->duplicatePage(this->page);
@@ -908,7 +907,8 @@ void NotebookTab::mousePressEvent(QMouseEvent *event)
switch (event->button())
{
case Qt::RightButton: {
this->menu_.popup(event->globalPos() + QPoint(0, 8));
this->menu_.popup(event->globalPosition().toPoint() +
QPoint(0, 8));
}
break;
default:;