Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Remove Qt < 5.6 support

parent fd02db9a
......@@ -45,13 +45,7 @@
int main(int argc, char *argv[])
{
// Force QDomDocument to use a deterministic XML attribute order
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
qSetGlobalQHashSeed(0);
#else
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
qt_qhash_seed.store(0);
#endif
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
......
......@@ -228,9 +228,7 @@ void MainWindow::init()
/// Add Widgets
setDockOptions(dockOptions() | QMainWindow::AllowNestedDocks | QMainWindow::AllowTabbedDocks);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
setDockOptions(dockOptions() | QMainWindow::GroupedDragging);
#endif
setTabPosition(Qt::AllDockWidgetAreas, (QTabWidget::TabPosition)KdenliveSettings::tabposition());
m_timelineToolBar = toolBar(QStringLiteral("timelineToolBar"));
m_timelineToolBarContainer = new QWidget(this);
......@@ -3873,7 +3871,6 @@ void MainWindow::updateDockTitleBars(bool isTopLevel)
if (!KdenliveSettings::showtitlebars() || !isTopLevel) {
return;
}
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QList<QDockWidget *> docks = pCore->window()->findChildren<QDockWidget *>();
for (int i = 0; i < docks.count(); ++i) {
QDockWidget *dock = docks.at(i);
......@@ -3912,7 +3909,6 @@ void MainWindow::updateDockTitleBars(bool isTopLevel)
dock->setTitleBarWidget(new QWidget);
}
}
#endif
}
void MainWindow::slotToggleAutoPreview(bool enable)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment