File indexing completed on 2025-01-05 05:14:49

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 "mergecloseeventdialog.h"
0008 
0009 MergeCloseEventDialog::MergeCloseEventDialog(QWidget *parent)
0010     : AppDialog(parent)
0011 {
0012     setupUi(this);
0013 
0014     connect(commandLinkButtonMarkResolved, &QCommandLinkButton::clicked, this, &MergeCloseEventDialog::slotCommandLinkButtonMarkResolvedClicked);
0015     connect(commandLinkButtonLeaveAsIs, &QCommandLinkButton::clicked, this, &MergeCloseEventDialog::slotCommandLinkButtonLeaveAsIsClicked);
0016     connect(commandLinkButtonDontExit, &QCommandLinkButton::clicked, this, &MergeCloseEventDialog::slotCommandLinkButtonDontExitClicked);
0017 }
0018 
0019 void MergeCloseEventDialog::slotCommandLinkButtonMarkResolvedClicked()
0020 {
0021     accept();
0022 }
0023 
0024 void MergeCloseEventDialog::slotCommandLinkButtonLeaveAsIsClicked()
0025 {
0026     reject();
0027 }
0028 
0029 void MergeCloseEventDialog::slotCommandLinkButtonDontExitClicked()
0030 {
0031     done(DontExit);
0032 }
0033 
0034 #include "moc_mergecloseeventdialog.cpp"