mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
|
Index: plasma/desktop/shell/panelcontroller.cpp
|
||
|
===================================================================
|
||
|
--- plasma/desktop/shell/panelcontroller.cpp.orig
|
||
|
+++ plasma/desktop/shell/panelcontroller.cpp
|
||
|
@@ -663,6 +663,8 @@ void PanelController::mouseMoveFilter(QM
|
||
|
newX = qMin(newX, screenGeom.left() + screenGeom.width()/3);
|
||
|
move(newX, pos().y());
|
||
|
resizeFrameHeight(geometry().left() - screenGeom.left());
|
||
|
+ m_sizeTool->setText(i18n("Width: %1", geometry().left() - screenGeom.left()));
|
||
|
+
|
||
|
break;
|
||
|
}
|
||
|
case Plasma::RightEdge: {
|
||
|
@@ -671,6 +673,8 @@ void PanelController::mouseMoveFilter(QM
|
||
|
newX = qMax(newX, screenGeom.left() + 2*(screenGeom.width()/3) - width());
|
||
|
move(newX, pos().y());
|
||
|
resizeFrameHeight(screenGeom.right() - geometry().right());
|
||
|
+ m_sizeTool->setText(i18n("Width: %1", screenGeom.right() - geometry().right()));
|
||
|
+
|
||
|
break;
|
||
|
}
|
||
|
case Plasma::TopEdge: {
|
||
|
@@ -679,6 +683,9 @@ void PanelController::mouseMoveFilter(QM
|
||
|
newY = qMin(newY, screenGeom.top() + screenGeom.height()/3);
|
||
|
move(pos().x(), newY);
|
||
|
resizeFrameHeight(geometry().top() - screenGeom.top());
|
||
|
+ m_sizeTool->setText(i18n("Height: %1", geometry().top() - screenGeom.top()));
|
||
|
+
|
||
|
+
|
||
|
break;
|
||
|
}
|
||
|
case Plasma::BottomEdge:
|
||
|
@@ -688,6 +695,8 @@ void PanelController::mouseMoveFilter(QM
|
||
|
newY = qMax(newY, screenGeom.top() + 2*(screenGeom.height()/3) - height());
|
||
|
move(pos().x(), newY);
|
||
|
resizeFrameHeight(screenGeom.bottom() - geometry().bottom());
|
||
|
+ m_sizeTool->setText(i18n("Height: %1", screenGeom.bottom() - geometry().bottom()));
|
||
|
+
|
||
|
break;
|
||
|
}
|
||
|
}
|