swift
src
gui
components
updateinfodialog.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_GUI_COMPONENTS_UPDATEINFODIALOG_H
7
#define SWIFT_GUI_COMPONENTS_UPDATEINFODIALOG_H
8
9
#include <QDialog>
10
11
#include "
gui/settings/updatenotification.h
"
12
#include "
gui/swiftguiexport.h
"
13
14
namespace
Ui
15
{
16
class
CUpdateInfoDialog;
17
}
18
namespace
swift::gui::components
19
{
23
class
SWIFT_GUI_EXPORT
CUpdateInfoDialog
:
public
QDialog
24
{
25
Q_OBJECT
26
27
public
:
29
explicit
CUpdateInfoDialog
(QWidget *parent =
nullptr
);
30
32
virtual
~
CUpdateInfoDialog
()
override
;
33
35
bool
isNewVersionAvailable()
const
;
36
38
virtual
int
exec()
override
;
39
40
protected
:
42
virtual
bool
event(QEvent *event)
override
;
43
44
private
:
45
QScopedPointer<Ui::CUpdateInfoDialog> ui;
46
swift::misc::CSetting<swift::gui::settings::TUpdateNotificationSettings>
m_setting {
this
};
47
49
void
onDontShowAgain(
bool
dontShowAgain);
50
52
void
selectionChanged();
53
};
54
}
// namespace swift::gui::components
55
56
#endif
// SWIFT_GUI_COMPONENTS_UPDATEINFODIALOG_H
swift::gui::components::CUpdateInfoDialog
Download and install swift.
Definition:
updateinfodialog.h:24
swift::misc::CSetting< swift::gui::settings::TUpdateNotificationSettings >
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:13
swiftguiexport.h
SWIFT_GUI_EXPORT
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
Definition:
swiftguiexport.h:19
updatenotification.h
Generated on Mon Mar 24 2025 16:42:20 for swift by
1.9.1