added Alt+LeftClick to move splits around

This commit is contained in:
fourtf
2018-01-17 01:19:42 +01:00
parent 6f95a219a7
commit 0a3c6e29c7
7 changed files with 113 additions and 37 deletions
+21
View File
@@ -582,6 +582,13 @@ void ChannelView::leaveEvent(QEvent *)
void ChannelView::mouseMoveEvent(QMouseEvent *event)
{
if (event->modifiers() & (Qt::AltModifier | Qt::ControlModifier)) {
this->unsetCursor();
event->ignore();
return;
}
if (singletons::SettingManager::getInstance().pauseChatHover.getValue()) {
this->pause(300);
}
@@ -639,6 +646,13 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
void ChannelView::mousePressEvent(QMouseEvent *event)
{
if (event->modifiers() & (Qt::AltModifier | Qt::ControlModifier)) {
this->unsetCursor();
event->ignore();
return;
}
if (singletons::SettingManager::getInstance().linksDoubleClickOnly.getValue()) {
this->pause(200);
}
@@ -689,6 +703,13 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
void ChannelView::mouseReleaseEvent(QMouseEvent *event)
{
if (event->modifiers() & (Qt::AltModifier | Qt::ControlModifier)) {
this->unsetCursor();
event->ignore();
return;
}
if (!this->isMouseDown) {
// We didn't grab the mouse press, so we shouldn't be handling the mouse
// release