cutter/src/widgets/Dashboard.h

38 lines
763 B
C
Raw Normal View History

#ifndef DASHBOARD_H
#define DASHBOARD_H
2017-10-02 09:41:28 +00:00
#include <memory>
#include "CutterDockWidget.h"
QT_BEGIN_NAMESPACE
QT_FORWARD_DECLARE_CLASS(QLineEdit)
QT_FORWARD_DECLARE_CLASS(QJsonObject)
QT_END_NAMESPACE
class MainWindow;
2018-03-21 20:32:32 +00:00
namespace Ui {
class Dashboard;
}
class Dashboard : public CutterDockWidget
{
Q_OBJECT
public:
explicit Dashboard(MainWindow *main, QAction *action = nullptr);
~Dashboard();
private slots:
void updateContents();
void on_certificateButton_clicked();
void on_versioninfoButton_clicked();
private:
2017-10-02 09:41:28 +00:00
std::unique_ptr<Ui::Dashboard> ui;
void setPlainText(QLineEdit *textBox, const QString &text);
void setBool(QLineEdit *textBox, const QJsonObject &jsonObject, const QString &key);
};
#endif // DASHBOARD_H