Make the `TextViewDialog` an actual `QDialog`

This commit is contained in:
Martchus 2024-06-08 21:38:00 +02:00
parent 11da31b21f
commit 468b7f8b6b
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ using namespace Data;
namespace QtGui {
TextViewDialog::TextViewDialog(const QString &title, QWidget *parent)
: QWidget(parent, Qt::Window)
: QDialog(parent)
{
// set window title and icon
if (title.isEmpty()) {

View File

@ -3,7 +3,7 @@
#include "../global.h"
#include <QWidget>
#include <QDialog>
#include <functional>
@ -18,7 +18,7 @@ struct SyncthingLogEntry;
namespace QtGui {
class SYNCTHINGWIDGETS_EXPORT TextViewDialog : public QWidget {
class SYNCTHINGWIDGETS_EXPORT TextViewDialog : public QDialog {
Q_OBJECT
public:
explicit TextViewDialog(const QString &title = QString(), QWidget *parent = nullptr);