save
This commit is contained in:
parent
27725da959
commit
255154c2dd
@ -1099,7 +1099,9 @@ void FormMain::reportABug() {
|
||||
"quam in scelerisque placerat. Vivamus vel porta tortor. Vivamus nec volutpat sem",
|
||||
QSystemTrayIcon::MessageIcon::Information),
|
||||
GuiMessageDestination(),
|
||||
GuiAction("test", []() {}));
|
||||
GuiAction("test", []() {
|
||||
qDebugNN << "aa";
|
||||
}));
|
||||
|
||||
// qApp->web()->openUrlInExternalBrowser(QSL(APP_URL_ISSUES_NEW));
|
||||
}
|
||||
|
@ -41,6 +41,15 @@ void ToastNotification::loadNotification(Notification::Event event, const GuiMes
|
||||
32,
|
||||
32,
|
||||
}));
|
||||
|
||||
if (action.m_action) {
|
||||
m_ui.m_btnAction->setText(action.m_title.isEmpty() ? tr("Do it!") : action.m_title);
|
||||
connect(m_ui.m_btnAction, &QPushButton::clicked, this, action.m_action);
|
||||
}
|
||||
else {
|
||||
m_ui.m_mainLayout->removeItem(m_ui.m_actionLayout);
|
||||
m_ui.m_btnAction->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
QIcon ToastNotification::iconForType(QSystemTrayIcon::MessageIcon icon) const {
|
||||
|
@ -13,9 +13,9 @@
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<layout class="QFormLayout" name="m_mainLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<layout class="QHBoxLayout" name="m_titleLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="m_lblTitle">
|
||||
<property name="text">
|
||||
@ -65,7 +65,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<layout class="QHBoxLayout" name="m_actionLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="m_btnAction">
|
||||
<property name="text">
|
||||
|
Loading…
x
Reference in New Issue
Block a user