AlbumShaper
1.0a3
|
00001 //============================================== 00002 // copyright : (C) 2003-2005 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 //============================================== 00010 00011 #include "blurSharpenSlider.h" 00012 00013 //========================================== 00014 BlurSharpenSlider::BlurSharpenSlider( Orientation orientation, 00015 QWidget* parent, const char* name ) 00016 : DynamicSlider( orientation, parent, name) 00017 { 00018 setZeroString( tr("No change") ); 00019 setPrefixes( QString(tr("Blur"))+": ", 00020 QString(tr("Sharpen"))+": " ); 00021 setSuffix("x"); 00022 } 00023 //========================================== 00024 QString BlurSharpenSlider::mapValToString() 00025 { 00026 //always use the absolute value of the value 00027 return QString("%1").arg( QABS(value()) ); 00028 } 00029 //==========================================