10 #include <QDragEnterEvent> 11 #include <QDragLeaveEvent> 12 #include <QApplication> 21 this->tabBar()->setFixedHeight(40);
27 if( ev->pos().y() > 43 )
32 const QMimeData *mimeData = ev->mimeData();
33 QStringList mimeFormats = mimeData->formats();
34 for(
const QString&
format: mimeFormats)
36 QByteArray encoded = mimeData->data(
format );
37 QDataStream stream(&encoded, QIODevice::ReadOnly);
41 while (!stream.atEnd())
45 if(!curve_name.isEmpty()) {
46 curves.push_back(curve_name);
50 if(
format.contains(
"plot_area") && curves.size() == 1 )
52 QApplication::setOverrideCursor(QCursor(Qt::DragMoveCursor));
63 if( ev->pos().y() > 43 )
74 QApplication::restoreOverrideCursor();
81 QApplication::restoreOverrideCursor();
std::string format(const std::string &, const time_point< seconds > &, const femtoseconds &, const time_zone &)