File indexing completed on 2021-12-21 14:36:55

0001 /*
0002     SPDX-FileCopyrightText: 2007 Lukas Kropatschek <lukas.krop@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #include "sourceselect.h"
0007 
0008 SrcSelect::SrcSelect(QWidget *parent)
0009     : QWidget(parent)
0010 {
0011     setupUi(this);
0012     connect(checkFile, &QRadioButton::toggled, this, &SrcSelect::checkFile_toggled);
0013     connect(checkServer, &QRadioButton::toggled, this, &SrcSelect::checkServer_toggled);
0014 }
0015 
0016 void SrcSelect::checkFile_toggled(bool isOn)
0017 {
0018     newFilename->setEnabled(isOn);
0019 }
0020 
0021 void SrcSelect::checkServer_toggled(bool isOn)
0022 {
0023     keyIds->setEnabled(isOn);
0024 }