Commit ec40556e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without deprecated method

parent c8112eb2
......@@ -66,7 +66,9 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
WindowSystem
)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
endif()
add_subdirectory(data)
add_subdirectory(src)
......
......@@ -46,7 +46,7 @@ AppChooserDialog::AppChooserDialog(const QStringList &choices, const QString &de
QVBoxLayout *vboxLayout = new QVBoxLayout(this);
vboxLayout->setSpacing(20);
vboxLayout->setMargin(20);
vboxLayout->setContentsMargins(20, 20, 20, 20);
QLabel *label = new QLabel(this);
label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
......
......@@ -679,7 +679,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle,
qCDebug(XdgDesktopPortalKdePrint) << "---------------------------";
qCDebug(XdgDesktopPortalKdePrint) << resultingPageSetup;
uint token = QDateTime::currentDateTime().toTime_t();
uint token = QDateTime::currentDateTime().toSecsSinceEpoch();
results.insert(QStringLiteral("settings"), resultingSettings);
results.insert(QStringLiteral("page-setup"), resultingPageSetup);
results.insert(QStringLiteral("token"), token);
......
......@@ -43,7 +43,7 @@ ScreenCastWidget::ScreenCastWidget(QWidget *parent)
}
}
setItemSelected(itemAt(0, 0), true);
itemAt(0, 0)->setSelected(true);
}
ScreenCastWidget::~ScreenCastWidget()
......
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