16 #include <QDragEnterEvent>
17 #include <QDragLeaveEvent>
18 #include <QApplication>
26 this->tabBar()->setFixedHeight(40);
32 if (ev->pos().y() > 43)
37 const QMimeData* mimeData = ev->mimeData();
38 QStringList mimeFormats = mimeData->formats();
39 for (
const QString&
format : mimeFormats)
41 QByteArray encoded = mimeData->data(
format);
42 QDataStream stream(&encoded, QIODevice::ReadOnly);
46 while (!stream.atEnd())
50 if (!curve_name.isEmpty())
52 curves.push_back(curve_name);
61 if (ev->pos().y() > 43)
72 QApplication::restoreOverrideCursor();
79 QApplication::restoreOverrideCursor();