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