File indexing completed on 2024-05-12 16:42:07
0001 /* 0002 SPDX-FileCopyrightText: 2008 Thomas Baumgart <tbaumgart@kde.org> 0003 SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kloadtemplatedlg.h" 0008 0009 // ---------------------------------------------------------------------------- 0010 // QT Includes 0011 0012 #include <QList> 0013 0014 // ---------------------------------------------------------------------------- 0015 // KDE Includes 0016 0017 // ---------------------------------------------------------------------------- 0018 // Project Includes 0019 0020 #include "ui_kloadtemplatedlg.h" 0021 0022 #include "mymoneytemplate.h" 0023 #include "kaccounttemplateselector.h" 0024 0025 KLoadTemplateDlg::KLoadTemplateDlg(QWidget* parent) : 0026 QDialog(parent), 0027 ui(new Ui::KLoadTemplateDlg) 0028 { 0029 ui->setupUi(this); 0030 connect(ui->buttonBox, &QDialogButtonBox::helpRequested, this, &KLoadTemplateDlg::slotHelp); 0031 } 0032 0033 KLoadTemplateDlg::~KLoadTemplateDlg() 0034 { 0035 delete ui; 0036 } 0037 0038 QList<MyMoneyTemplate> KLoadTemplateDlg::templates() const 0039 { 0040 return ui->m_templateSelector->selectedTemplates(); 0041 } 0042 0043 void KLoadTemplateDlg::slotHelp() 0044 { 0045 }