0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-31 13:21:22 +03:00

Qt6 support added

This commit is contained in:
fralx
2021-01-20 14:47:05 +03:00
parent e3356a3d00
commit 81f27782be
39 changed files with 759 additions and 204 deletions

View File

@@ -38,11 +38,20 @@ ObjectBrowser::ObjectBrowser(QWidget *parent)
:QWidget(parent), m_designerWidget(NULL), m_mainWindow(NULL),
m_changingItemSelection(false), m_movingItem(false)
{
QVBoxLayout *layout = new QVBoxLayout(this);
setLayout(layout);
layout->setMargin(Const::DOCKWIDGET_MARGINS);
QVBoxLayout *l = new QVBoxLayout(this);
setLayout(l);
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 3)
l->setContentsMargins(
Const::DOCKWIDGET_MARGINS,
Const::DOCKWIDGET_MARGINS,
Const::DOCKWIDGET_MARGINS,
Const::DOCKWIDGET_MARGINS
);
#else
l->setMargin(Const::DOCKWIDGET_MARGINS);
#endif
m_treeView = new QTreeWidget(this);
layout->addWidget(m_treeView);
l->addWidget(m_treeView);
m_treeView->headerItem()->setText(0,tr("Objects"));
m_treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
}