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",
|
"quam in scelerisque placerat. Vivamus vel porta tortor. Vivamus nec volutpat sem",
|
||||||
QSystemTrayIcon::MessageIcon::Information),
|
QSystemTrayIcon::MessageIcon::Information),
|
||||||
GuiMessageDestination(),
|
GuiMessageDestination(),
|
||||||
GuiAction("test", []() {}));
|
GuiAction("test", []() {
|
||||||
|
qDebugNN << "aa";
|
||||||
|
}));
|
||||||
|
|
||||||
// qApp->web()->openUrlInExternalBrowser(QSL(APP_URL_ISSUES_NEW));
|
// qApp->web()->openUrlInExternalBrowser(QSL(APP_URL_ISSUES_NEW));
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,15 @@ void ToastNotification::loadNotification(Notification::Event event, const GuiMes
|
|||||||
32,
|
32,
|
||||||
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 {
|
QIcon ToastNotification::iconForType(QSystemTrayIcon::MessageIcon icon) const {
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>Dialog</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="m_mainLayout">
|
||||||
<item row="0" column="0" colspan="2">
|
<item row="0" column="0" colspan="2">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="m_titleLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="m_lblTitle">
|
<widget class="QLabel" name="m_lblTitle">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -65,7 +65,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="m_actionLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="m_btnAction">
|
<widget class="QPushButton" name="m_btnAction">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user