Use QDialog for showing own device ID
This commit is contained in:
parent
f4df2bbf21
commit
6ca76e59d8
|
@ -7,6 +7,7 @@
|
|||
#include "resources/../../tray/resources/config.h"
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QDialog>
|
||||
#include <QFont>
|
||||
#include <QGuiApplication>
|
||||
#include <QIcon>
|
||||
|
@ -20,9 +21,9 @@ using namespace Data;
|
|||
|
||||
namespace QtGui {
|
||||
|
||||
QWidget *ownDeviceIdDialog(Data::SyncthingConnection &connection)
|
||||
QDialog *ownDeviceIdDialog(Data::SyncthingConnection &connection)
|
||||
{
|
||||
auto *dlg = new QWidget(nullptr, Qt::Window);
|
||||
auto *dlg = new QDialog(nullptr, Qt::Window);
|
||||
dlg->setWindowTitle(QCoreApplication::translate("QtGui::OtherDialogs", "Own device ID") + QStringLiteral(" - " APP_NAME));
|
||||
dlg->setWindowIcon(QIcon(QStringLiteral(":/icons/hicolor/scalable/app/syncthingtray.svg")));
|
||||
dlg->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
|
||||
#include "../global.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QtGlobal>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QDialog)
|
||||
|
||||
namespace Data {
|
||||
class SyncthingConnection;
|
||||
|
@ -11,7 +13,7 @@ class SyncthingConnection;
|
|||
|
||||
namespace QtGui {
|
||||
|
||||
QWidget SYNCTHINGWIDGETS_EXPORT *ownDeviceIdDialog(Data::SyncthingConnection &connection);
|
||||
QDialog SYNCTHINGWIDGETS_EXPORT *ownDeviceIdDialog(Data::SyncthingConnection &connection);
|
||||
}
|
||||
|
||||
#endif // SYNCTHINGWIDGETS_OTHERDIALOGS_H
|
||||
|
|
Loading…
Reference in New Issue