|
|
@ -324,6 +324,7 @@ void UBDockPalette::toggleCollapseExpand() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// The palette must be collapsed
|
|
|
|
// The palette must be collapsed
|
|
|
|
mLastWidth = width(); |
|
|
|
mLastWidth = width(); |
|
|
|
|
|
|
|
update(); |
|
|
|
resize(0, height()); |
|
|
|
resize(0, height()); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
@ -702,6 +703,7 @@ void UBTabDockPalette::mouseMoveEvent(QMouseEvent *event) |
|
|
|
case eUBDockOrientation_Left: |
|
|
|
case eUBDockOrientation_Left: |
|
|
|
p.setX(p.x() + dock->width()); |
|
|
|
p.setX(p.x() + dock->width()); |
|
|
|
if(p.x() < dock->collapseWidth() && p.x() >= dock->minimumWidth()) { |
|
|
|
if(p.x() < dock->collapseWidth() && p.x() >= dock->minimumWidth()) { |
|
|
|
|
|
|
|
dock->update(); |
|
|
|
dock->resize(0, dock->height()); |
|
|
|
dock->resize(0, dock->height()); |
|
|
|
dock->mLastWidth = dock->collapseWidth() + 1; |
|
|
|
dock->mLastWidth = dock->collapseWidth() + 1; |
|
|
|
dock->mResized = true; |
|
|
|
dock->mResized = true; |
|
|
@ -714,6 +716,7 @@ void UBTabDockPalette::mouseMoveEvent(QMouseEvent *event) |
|
|
|
case eUBDockOrientation_Right: |
|
|
|
case eUBDockOrientation_Right: |
|
|
|
p.setX(p.x() - 2 * dock->border()); |
|
|
|
p.setX(p.x() - 2 * dock->border()); |
|
|
|
if((dock->x() + p.x() > dock->parentWidget()->width() - dock->collapseWidth()) && (dock->x() + p.x() < dock->parentWidget()->width())) { |
|
|
|
if((dock->x() + p.x() > dock->parentWidget()->width() - dock->collapseWidth()) && (dock->x() + p.x() < dock->parentWidget()->width())) { |
|
|
|
|
|
|
|
dock->update(); |
|
|
|
dock->resize(0, dock->height()); |
|
|
|
dock->resize(0, dock->height()); |
|
|
|
dock->mLastWidth = dock->collapseWidth() + 1; |
|
|
|
dock->mLastWidth = dock->collapseWidth() + 1; |
|
|
|
dock->mResized = true; |
|
|
|
dock->mResized = true; |
|
|
|