Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed * QString::medRef() has been removed. Use QString::mid() again. * QTextStream::setCodec has been removed * Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible * Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation * QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins() * QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch() * QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
This commit is contained in:
@@ -1489,11 +1489,6 @@ void TreeWidget::startDrag(Qt::DropActions supportedActions)
|
||||
}
|
||||
}
|
||||
|
||||
QMimeData* TreeWidget::mimeData(const QList<QTreeWidgetItem*> items) const
|
||||
{
|
||||
return QTreeWidget::mimeData(items);
|
||||
}
|
||||
|
||||
bool TreeWidget::dropMimeData(QTreeWidgetItem* parent, int index,
|
||||
const QMimeData* data, Qt::DropAction action)
|
||||
{
|
||||
@@ -3028,7 +3023,7 @@ TreePanel::TreePanel(const char* name, QWidget* parent)
|
||||
|
||||
auto pLayout = new QVBoxLayout(this);
|
||||
pLayout->setSpacing(0);
|
||||
pLayout->setMargin(0);
|
||||
pLayout->setContentsMargins(0, 0, 0, 0);
|
||||
pLayout->addWidget(this->treeWidget);
|
||||
connect(this->treeWidget, SIGNAL(emitSearchObjects()),
|
||||
this, SLOT(showEditor()));
|
||||
@@ -3116,7 +3111,7 @@ TreeDockWidget::TreeDockWidget(Gui::Document* pcDocument, QWidget* parent)
|
||||
auto panel = new TreePanel("TreeView", this);
|
||||
auto pLayout = new QGridLayout(this);
|
||||
pLayout->setSpacing(0);
|
||||
pLayout->setMargin(0);
|
||||
pLayout->setContentsMargins(0, 0, 0, 0);
|
||||
pLayout->addWidget(panel, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user