2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <extensionsystem/pluginview.h>
|
|
|
|
|
#include <extensionsystem/pluginmanager.h>
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QPushButton>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
class PluginDialog : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2016-05-30 23:40:35 +03:00
|
|
|
PluginDialog();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2016-06-27 22:34:13 +03:00
|
|
|
private:
|
2008-12-02 12:01:29 +01:00
|
|
|
void updateButtons();
|
2016-05-30 23:40:35 +03:00
|
|
|
void openDetails(ExtensionSystem::PluginSpec *spec = nullptr);
|
2008-12-02 12:01:29 +01:00
|
|
|
void openErrorDetails();
|
|
|
|
|
|
|
|
|
|
ExtensionSystem::PluginView *m_view;
|
|
|
|
|
|
|
|
|
|
QPushButton *m_detailsButton;
|
|
|
|
|
QPushButton *m_errorDetailsButton;
|
|
|
|
|
};
|