2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef DIALOG_H
|
|
|
|
#define DIALOG_H
|
|
|
|
|
2019-02-03 16:09:10 +00:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QSharedMemory>
|
2023-09-11 12:43:02 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#include "ui_dialog.h"
|
|
|
|
|
|
|
|
//! [0]
|
|
|
|
class Dialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2023-09-11 15:47:20 +00:00
|
|
|
public:
|
2019-02-03 16:09:10 +00:00
|
|
|
Dialog(QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2023-09-11 15:47:20 +00:00
|
|
|
public slots:
|
2011-04-27 10:05:43 +00:00
|
|
|
void loadFromFile();
|
|
|
|
void loadFromMemory();
|
|
|
|
|
2023-09-11 15:47:20 +00:00
|
|
|
private:
|
2011-04-27 10:05:43 +00:00
|
|
|
void detach();
|
|
|
|
|
2023-09-11 15:47:20 +00:00
|
|
|
private:
|
2011-04-27 10:05:43 +00:00
|
|
|
Ui::Dialog ui;
|
|
|
|
QSharedMemory sharedMemory;
|
|
|
|
};
|
|
|
|
//! [0]
|
|
|
|
|
2023-09-11 15:47:20 +00:00
|
|
|
#endif // DIALOG_H
|
2011-04-27 10:05:43 +00:00
|
|
|
|