mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Update toolwindowmanager to d520d7a
This commit is contained in:
@@ -180,11 +180,7 @@ void ToolWindowManagerTabBar::paintEvent(QPaintEvent *event) {
|
||||
else if(m_close.hover)
|
||||
buttonOpt.state |= QStyle::State_Raised | QStyle::State_MouseOver;
|
||||
|
||||
if (style()->styleHint(QStyle::SH_DockWidget_ButtonsHaveFrame, 0, this)) {
|
||||
style()->drawPrimitive(QStyle::PE_PanelButtonTool, &buttonOpt, &p, this);
|
||||
}
|
||||
|
||||
style()->drawComplexControl(QStyle::CC_ToolButton, &buttonOpt, &p, this);
|
||||
style()->drawPrimitive(QStyle::PE_IndicatorTabClose, &buttonOpt, &p, this);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -304,6 +300,16 @@ void ToolWindowManagerTabBar::mouseMoveEvent(QMouseEvent *event) {
|
||||
update();
|
||||
}
|
||||
|
||||
void ToolWindowManagerTabBar::leaveEvent(QEvent *) {
|
||||
m_pin.hover = false;
|
||||
m_pin.clicked = false;
|
||||
|
||||
m_close.hover = false;
|
||||
m_close.clicked = false;
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
void ToolWindowManagerTabBar::mouseReleaseEvent(QMouseEvent *event) {
|
||||
QTabBar::mouseReleaseEvent(event);
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ protected:
|
||||
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
|
||||
void mouseMoveEvent(QMouseEvent *) Q_DECL_OVERRIDE;
|
||||
void mouseReleaseEvent(QMouseEvent *) Q_DECL_OVERRIDE;
|
||||
void leaveEvent(QEvent *) Q_DECL_OVERRIDE;
|
||||
|
||||
//! Reimplemented from QTabWidget::QTabBar to enable/disable 'real' closable tabs.
|
||||
virtual void tabInserted(int index) Q_DECL_OVERRIDE;
|
||||
|
||||
Reference in New Issue
Block a user