CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_LD_FLAGS
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp: In member function ‘virtual void KGantt::HeaderWidget::mousePressEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:82:29: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
82 | int mousePosX = event->x();
| ~~~~~~~~^~
In file included from /usr/include/qt6/QtGui/QPaintEvent:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:19:
/usr/include/qt6/QtGui/qevent.h:226:16: note: declared here
226 | inline int x() const { return qRound(position().x()); }
| ^
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:83:74: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
83 | m_headerType = grid->sectionHandleAtPos( view()->mapToScene( event->x(), 0 ).x(), event->pos().y(), geometry() );
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:226:16: note: declared here
226 | inline int x() const { return qRound(position().x()); }
| ^
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp: In member function ‘virtual void KGantt::HeaderWidget::mouseReleaseEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:100:53: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
100 | int mousePosX = view()->mapToScene( event->x(), 0 ).x();
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:226:16: note: declared here
226 | inline int x() const { return qRound(position().x()); }
| ^
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:108:31: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
108 | m_mousePosX = event->x();
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:226:16: note: declared here
226 | inline int x() const { return qRound(position().x()); }
| ^
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp: In member function ‘virtual void KGantt::HeaderWidget::mouseMoveEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:117:29: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
117 | int mousePosX = event->x();
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:226:16: note: declared here
226 | inline int x() const { return qRound(position().x()); }
| ^
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttgraphicsview.cpp:118:47: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
118 | qreal gridX = view()->mapToScene( event->x(), 0.0 ).x();
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:226:16: note: declared here
226 | inline int x() const { return qRound(position().x()); }
| ^
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp: In member function ‘virtual void KChart::Chart::mousePressEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1685:55: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1685 | const QPoint pos = mapFromGlobal( event->globalPos() );
| ~~~~~~~~~~~~~~~~^~
In file included from /usr/include/qt6/QtGui/QPaintEvent:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:19:
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1689:76: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1689 | QMouseEvent ev( QEvent::MouseButtonPress, pos, event->globalPos(),
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp: In member function ‘virtual void KChart::Chart::mouseDoubleClickEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1699:55: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1699 | const QPoint pos = mapFromGlobal( event->globalPos() );
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1703:76: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1703 | QMouseEvent ev( QEvent::MouseButtonPress, pos, event->globalPos(),
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp: In member function ‘virtual void KChart::Chart::mouseMoveEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1720:55: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1720 | const QPoint pos = mapFromGlobal( event->globalPos() );
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1723:65: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1723 | QMouseEvent ev( QEvent::MouseMove, pos, event->globalPos(),
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp: In member function ‘virtual void KChart::Chart::mouseReleaseEvent(QMouseEvent*)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1739:55: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1739 | const QPoint pos = mapFromGlobal( event->globalPos() );
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KChart/KChartChart.cpp:1742:74: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
1742 | QMouseEvent ev( QEvent::MouseButtonRelease, pos, event->globalPos(),
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:224:19: note: declared here
224 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp: In constructor ‘KGantt::ItemDelegate::Private::Private()’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp:48:68: warning: ‘static QFontMetrics QApplication::fontMetrics()’ is deprecated: Use the QFontMetricsF constructor instead. [-Wdeprecated-declarations]
48 | QLinearGradient taskgrad( 0., 0., 0., QApplication::fontMetrics().height() );
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/qt6/QtWidgets/QApplication:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp:17:
/usr/include/qt6/QtWidgets/qapplication.h:70:25: note: declared here
70 | static QFontMetrics fontMetrics();
| ^~~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp:52:71: warning: ‘static QFontMetrics QApplication::fontMetrics()’ is deprecated: Use the QFontMetricsF constructor instead. [-Wdeprecated-declarations]
52 | QLinearGradient summarygrad( 0., 0., 0., QApplication::fontMetrics().height() );
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtWidgets/qapplication.h:70:25: note: declared here
70 | static QFontMetrics fontMetrics();
| ^~~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp:56:69: warning: ‘static QFontMetrics QApplication::fontMetrics()’ is deprecated: Use the QFontMetricsF constructor instead. [-Wdeprecated-declarations]
56 | QLinearGradient eventgrad( 0., 0., 0., QApplication::fontMetrics().height() );
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtWidgets/qapplication.h:70:25: note: declared here
70 | static QFontMetrics fontMetrics();
| ^~~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp: In member function ‘QPen KGantt::ItemDelegate::Private::constraintPen(const QPointF&, const QPointF&, const KGantt::Constraint&, const QStyleOptionGraphicsItem&)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp:87:28: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
87 | if ( dataPen.canConvert( QVariant::Pen ) ) {
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qlocale.h:7,
from /usr/include/qt6/QtWidgets/qstyleoption.h:8,
from /usr/include/qt6/QtWidgets/qabstractitemdelegate.h:9,
from /usr/include/qt6/QtWidgets/qitemdelegate.h:8,
from /usr/include/qt6/QtWidgets/QItemDelegate:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate_p.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttitemdelegate.cpp:9:
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp: In member function ‘void KGantt::SummaryHandlingProxyModel::Private::insertInCache(const KGantt::SummaryHandlingProxyModel*, const QModelIndex&) const’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:49:31: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
49 | if ( !tmpsv.canConvert( QVariant::DateTime ) ||
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qabstractitemmodel.h:12,
from /usr/include/qt6/QtCore/qabstractproxymodel.h:7,
from /usr/include/qt6/QtCore/QAbstractProxyModel:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttforwardingproxymodel.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:9:
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:50:30: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
50 | !tmpev.canConvert( QVariant::DateTime ) ) {
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:56:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
56 | if ( tmpsv.type() == QVariant::DateTime && !tmpsv.value().isValid()) continue;
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:57:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
57 | if ( tmpev.type() == QVariant::DateTime && !tmpev.value().isValid()) continue;
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:61:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
61 | if ( tmpsv.type() == QVariant::String && tmpsv.value().isEmpty()) continue;
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:62:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
62 | if ( tmpev.type() == QVariant::String && tmpev.value().isEmpty()) continue;
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:70:27: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
70 | if ( tmpssv.canConvert( QVariant::DateTime )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:71:33: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
71 | && !( tmpssv.canConvert( QVariant::String ) && tmpssv.toString().isEmpty() )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:74:27: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
74 | if ( tmpsev.canConvert( QVariant::DateTime )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttsummaryhandlingproxymodel.cpp:75:33: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
75 | && !( tmpsev.canConvert( QVariant::String ) && tmpsev.toString().isEmpty() )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp: In member function ‘virtual qreal KGantt::DateTimeGrid::mapToChart(const QVariant&) const’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:393:28: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
393 | if ( ! value.canConvert( QVariant::DateTime ) ||
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qlocale.h:7,
from /usr/include/qt6/QtCore/qcalendar.h:10,
from /usr/include/qt6/QtCore/qdatetime.h:8,
from /usr/include/qt6/QtCore/QDateTime:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttglobal.h:17,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttabstractgrid.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:9:
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:394:22: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
394 | ( value.type() == QVariant::String && value.toString().isEmpty() ) )
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp: In member function ‘virtual KGantt::Span KGantt::DateTimeGrid::mapToChart(const QModelIndex&) const’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:415:23: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
415 | if ( sv.canConvert( QVariant::DateTime ) &&
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:416:22: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
416 | ev.canConvert( QVariant::DateTime ) &&
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:417:14: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
417 | !(sv.type() == QVariant::String && sv.toString().isEmpty()) &&
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:418:14: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
418 | !(ev.type() == QVariant::String && ev.toString().isEmpty())
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:430:23: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
430 | if ( sv.canConvert( QVariant::DateTime ) && !(sv.type() == QVariant::String && sv.toString().isEmpty()) ) {
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:430:58: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
430 | if ( sv.canConvert( QVariant::DateTime ) && !(sv.type() == QVariant::String && sv.toString().isEmpty()) ) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp: In member function ‘void KGantt::DateTimeGrid::Private::getAutomaticFormatters(KGantt::DateTimeScaleFormatter**, KGantt::DateTimeScaleFormatter**)’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:724:49: warning: ‘static QFontMetrics QApplication::fontMetrics()’ is deprecated: Use the QFontMetricsF constructor instead. [-Wdeprecated-declarations]
724 | const qreal tabw = QApplication::fontMetrics().boundingRect( QLatin1String( "XXXXX" ) ).width();
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/qt6/QtWidgets/QApplication:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttdatetimegrid.cpp:14:
/usr/include/qt6/QtWidgets/qapplication.h:70:25: note: declared here
70 | static QFontMetrics fontMetrics();
| ^~~~~~~~~~~
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttlegend.cpp: In member function ‘virtual QRect KGantt::Legend::drawItem(QPainter*, const QModelIndex&, const QPoint&) const’:
/var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttlegend.cpp:119:83: warning: ‘QAbstractItemDelegate* QAbstractItemView::itemDelegate(const QModelIndex&) const’ is deprecated: Use itemDelegateForIndex instead [-Wdeprecated-declarations]
119 | ItemDelegate* const delegate = qobject_cast< ItemDelegate* >( itemDelegate( index ) );
| ~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/qt6/QtWidgets/QAbstractItemView:1,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttlegend.h:12,
from /var/pisi/kdiagram-3.0.1-38/work/kdiagram-3.0.1/src/KGantt/kganttlegend.cpp:9:
/usr/include/qt6/QtWidgets/qabstractitemview.h:195:28: note: declared here
195 | QAbstractItemDelegate *itemDelegate(const QModelIndex &index) const
| ^~~~~~~~~~~~