Make the `TextViewDialog` an actual `QDialog`
This commit is contained in:
parent
11da31b21f
commit
468b7f8b6b
|
@ -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()) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue