28 lines
479 B
C++
28 lines
479 B
C++
#ifndef ADDLINKDIALOG_H
|
|
#define ADDLINKDIALOG_H
|
|
|
|
#include "ui_addlinkdialog.h"
|
|
#include "richtexteditor.h"
|
|
|
|
#include <QDialog>
|
|
|
|
class AddLinkDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AddLinkDialog(RichTextEditor *editor, QWidget *parent = nullptr);
|
|
~AddLinkDialog() override;
|
|
|
|
int showDialog();
|
|
|
|
public Q_SLOTS:
|
|
void accept() override;
|
|
|
|
private:
|
|
RichTextEditor *m_editor;
|
|
QT_PREPEND_NAMESPACE(Ui)::AddLinkDialog *m_ui;
|
|
};
|
|
|
|
#endif // ADDLINKDIALOG_H
|