settings_general_widget_general.cpp

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2008  Tim Fechtner < urwald at users dot sourceforge dot net >
00003 
00004     This program is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU General Public License as
00006     published by the Free Software Foundation; either version 2 of
00007     the License or (at your option) version 3 or any later version
00008     accepted by the membership of KDE e.V. (or its successor approved
00009     by the membership of KDE e.V.), which shall act as a proxy
00010     defined in Section 14 of version 3 of the license.
00011 
00012     This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #include "settings_general_widget_general.h"
00022 
00023 settings_general_widget_general::settings_general_widget_general(QWidget *parent)
00024   : QWidget(parent)
00025 {
00026   setupUi(this);
00027   connect(kcfg_streamripperCommand,
00028            SIGNAL(textChanged(const QString&)),
00029            &versionInfo,
00030            SLOT(setStreamripperCommand(const QString&)));
00031   connect(kcfg_streamripperCommand,
00032            SIGNAL(textChanged(const QString&)),
00033            info_usedStreamripperVersion,
00034            SLOT(clear()));
00035   connect(&versionInfo,
00036            SIGNAL(versionNumberDeterminated(const PropertyValue&)),
00037            this,
00038            SLOT(displayVersionNumber(const PropertyValue&)));
00039 }
00040 
00041 settings_general_widget_general::~settings_general_widget_general()
00042 {
00043 }
00044 
00045 void settings_general_widget_general::displayVersionNumber(const PropertyValue & value)
00046 {
00047   if (value.type == PropertyValue::value) {
00048     info_usedStreamripperVersion->setText(value.formatedValue);
00049   } else {
00050     info_usedStreamripperVersion->setText("");
00051   };
00052 }

Generated on Sat May 2 10:43:44 2009 for kradioripper by  doxygen 1.5.6