okular/generators/poppler/pdfsettingswidget.h
Sune Vuorela a9717a8e5f Use CI environment for clang/clazy
In order to be able to also do this with Qt6 we can't currently rely on
'random distro' to be able to give us an environment sufficient for
running clang and clazy, so use the CI system setup instead

A side effect is that we get a newer clazy and clang-tidy and thus is a
few more issues to either ignore or fix.

Also, ask ninja to continue as long as possible rather than stop at
first error to be able to get succes in as few runs as possible
2023-12-15 09:39:03 +00:00

43 lines
1.1 KiB
C++

/*
SPDX-FileCopyrightText: 2019 Bubli <Katarina.Behrens@cib.de>
SPDX-FileCopyrightText: 2020 Albert Astals Cid <albert.astals.cid@kdab.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef PDFSETTINGSWIDGET_H
#define PDFSETTINGSWIDGET_H
#include <QWidget>
#include "ui_pdfsettingswidget.h"
#include <poppler-form.h>
#include <poppler-version.h>
#define POPPLER_VERSION_MACRO ((POPPLER_VERSION_MAJOR << 16) | (POPPLER_VERSION_MINOR << 8) | (POPPLER_VERSION_MICRO))
class QTreeWidget;
class PDFSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit PDFSettingsWidget(QWidget *parent = nullptr);
bool event(QEvent *e) override;
#if POPPLER_VERSION_MACRO >= QT_VERSION_CHECK(23, 06, 0)
static std::optional<Poppler::CryptoSignBackend> settingStringToPopplerEnum(QStringView backend);
static QString popplerEnumToSettingString(Poppler::CryptoSignBackend backend);
#endif
private:
void warnRestartNeeded();
QTreeWidget *m_tree = nullptr;
bool m_certificatesAsked = false;
bool m_warnedAboutRestart = false;
Ui_PDFSettingsWidgetBase m_pdfsw;
};
#endif