mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Merge branch 'tanaxiusi-master'
This commit is contained in:
commit
a566ea64be
@ -489,6 +489,8 @@ bool ContainerWidget::restoreState(const QByteArray& data)
|
|||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
in >> cnt;
|
in >> cnt;
|
||||||
|
|
||||||
|
if(cnt > 0)
|
||||||
|
{
|
||||||
// Create dummy section, required to call hideSectionContent() later.
|
// Create dummy section, required to call hideSectionContent() later.
|
||||||
SectionWidget* sw = new SectionWidget(this);
|
SectionWidget* sw = new SectionWidget(this);
|
||||||
sections.append(sw);
|
sections.append(sw);
|
||||||
@ -510,6 +512,7 @@ bool ContainerWidget::restoreState(const QByteArray& data)
|
|||||||
contentsToHide.append(sc);
|
contentsToHide.append(sc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (mode == 1)
|
else if (mode == 1)
|
||||||
{
|
{
|
||||||
success = restoreSectionWidgets(in, version, NULL, sections, contentsToHide);
|
success = restoreSectionWidgets(in, version, NULL, sections, contentsToHide);
|
||||||
|
@ -189,7 +189,7 @@ void SectionTitleWidget::mouseMoveEvent(QMouseEvent* ev)
|
|||||||
SectionWidget* section = NULL;
|
SectionWidget* section = NULL;
|
||||||
|
|
||||||
// Move already existing FloatingWidget
|
// Move already existing FloatingWidget
|
||||||
if (_fw)
|
if (_fw && (ev->buttons() & Qt::LeftButton))
|
||||||
{
|
{
|
||||||
const QPoint moveToPos = ev->globalPos() - (_dragStartPos + QPoint(ADS_WINDOW_FRAME_BORDER_WIDTH, ADS_WINDOW_FRAME_BORDER_WIDTH));
|
const QPoint moveToPos = ev->globalPos() - (_dragStartPos + QPoint(ADS_WINDOW_FRAME_BORDER_WIDTH, ADS_WINDOW_FRAME_BORDER_WIDTH));
|
||||||
_fw->move(moveToPos);
|
_fw->move(moveToPos);
|
||||||
|
Loading…
Reference in New Issue
Block a user