Make the `TextViewDialog` an actual `QDialog`
This commit is contained in:
parent
11da31b21f
commit
468b7f8b6b
|
@ -28,7 +28,7 @@ using namespace Data;
|
||||||
namespace QtGui {
|
namespace QtGui {
|
||||||
|
|
||||||
TextViewDialog::TextViewDialog(const QString &title, QWidget *parent)
|
TextViewDialog::TextViewDialog(const QString &title, QWidget *parent)
|
||||||
: QWidget(parent, Qt::Window)
|
: QDialog(parent)
|
||||||
{
|
{
|
||||||
// set window title and icon
|
// set window title and icon
|
||||||
if (title.isEmpty()) {
|
if (title.isEmpty()) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "../global.h"
|
#include "../global.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QDialog>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ struct SyncthingLogEntry;
|
||||||
|
|
||||||
namespace QtGui {
|
namespace QtGui {
|
||||||
|
|
||||||
class SYNCTHINGWIDGETS_EXPORT TextViewDialog : public QWidget {
|
class SYNCTHINGWIDGETS_EXPORT TextViewDialog : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit TextViewDialog(const QString &title = QString(), QWidget *parent = nullptr);
|
explicit TextViewDialog(const QString &title = QString(), QWidget *parent = nullptr);
|
||||||
|
|
Loading…
Reference in New Issue