File indexing completed on 2025-01-05 05:14:39
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #include "closeeventdialog.h" 0008 0009 CloseEventDialog::CloseEventDialog(QWidget *parent) 0010 : QDialog(parent) 0011 { 0012 setupUi(this); 0013 0014 connect(commandLinkButtonMarkResolved, &QCommandLinkButton::clicked, this, &::CloseEventDialog::slotCommandLinkButtonLeaveAsIsClicked); 0015 connect(commandLinkButtonLeaveAsIs, &QCommandLinkButton::clicked, this, &CloseEventDialog::slotCommandLinkButtonLeaveAsIsClicked); 0016 connect(commandLinkButtonDontExit, &QCommandLinkButton::clicked, this, &CloseEventDialog::slotCommandLinkButtonDontExitClicked); 0017 } 0018 0019 void CloseEventDialog::slotCommandLinkButtonMarkResolvedClicked() 0020 { 0021 accept(); 0022 } 0023 0024 void CloseEventDialog::slotCommandLinkButtonLeaveAsIsClicked() 0025 { 0026 reject(); 0027 } 0028 0029 void CloseEventDialog::slotCommandLinkButtonDontExitClicked() 0030 { 0031 done(DontExit); 0032 } 0033 0034 #include "moc_closeeventdialog.cpp"