1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-01 02:42:39 +08:00
Qt-Advanced-Docking-System/AdvancedDockingSystem/src/ContainerWidget.cpp

59 lines
1.9 KiB
C++
Raw Normal View History

//============================================================================
/// \file ContainerWidget.cpp
/// \author Uwe Kindler
/// \date 03.02.2017
/// \brief Implementation of CContainerWidget
//============================================================================
//============================================================================
// INCLUDES
//============================================================================
#include "ads/ContainerWidget.h"
#include <QDebug>
2015-12-09 19:21:38 +08:00
#include <QPaintEvent>
#include <QPainter>
#include <QContextMenuEvent>
#include <QMenu>
#include <QSplitter>
#include <QDataStream>
#include <QtGlobal>
#include <QGridLayout>
#include <QPoint>
#include <QApplication>
#include "ads/Internal.h"
#include "ads/SectionWidget.h"
#include "ads/SectionTitleWidget.h"
#include "ads/SectionContentWidget.h"
#include "ads/DropOverlay.h"
#include "ads/Serialization.h"
2015-12-09 19:21:38 +08:00
namespace ads
2015-12-09 19:21:38 +08:00
{
//============================================================================
CContainerWidget::CContainerWidget(QWidget *parent)
: QFrame(parent)
2015-12-09 19:21:38 +08:00
{
m_SectionDropOverlay = new DropOverlay(this, DropOverlay::ModeSectionOverlay);
m_ContainerDropOverlay = new DropOverlay(this, DropOverlay::ModeContainerOverlay);
m_ContainerDropOverlay->setAttribute(Qt::WA_TransparentForMouseEvents);
m_ContainerDropOverlay->setWindowFlags(m_ContainerDropOverlay->windowFlags() | Qt::WindowTransparentForInput);
m_MainLayout = new QGridLayout();
m_MainLayout->setContentsMargins(0, 1, 0, 0);
m_MainLayout->setSpacing(0);
setLayout(m_MainLayout);
}
//============================================================================
CContainerWidget::~CContainerWidget()
{
}
} // namespace ads
//---------------------------------------------------------------------------
// EOF ContainerWidget.cpp