summaryrefslogtreecommitdiffstats
path: root/quanta/components/csseditor/colorslider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/components/csseditor/colorslider.cpp')
-rw-r--r--quanta/components/csseditor/colorslider.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/quanta/components/csseditor/colorslider.cpp b/quanta/components/csseditor/colorslider.cpp
index 436c7e21..98019f23 100644
--- a/quanta/components/csseditor/colorslider.cpp
+++ b/quanta/components/csseditor/colorslider.cpp
@@ -15,8 +15,8 @@
* *
***************************************************************************/
-#include <qvbox.h>
-#include <qlabel.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
#include <klocale.h>
@@ -29,27 +29,27 @@
-colorSlider::colorSlider(const QString& fn,const QString& l,const QString& c,const QString& r,QWidget *parent, const char *name) : miniEditor(parent,name) {
+colorSlider::colorSlider(const TQString& fn,const TQString& l,const TQString& c,const TQString& r,TQWidget *parent, const char *name) : miniEditor(parent,name) {
m_functionName = fn;
- QVBox *leftBox = new QVBox(this);
- QVBox *centerBox = new QVBox(this);
- QVBox *rightBox = new QVBox(this);
- QLabel *leftLabel = new QLabel("<b>" + l +"</b>",leftBox);
- QLabel *centerLabel = new QLabel(("<b>" + c +"</b>"),centerBox);
- QLabel *rightLabel = new QLabel(("<b>" + r +"</b>"),rightBox);
+ TQVBox *leftBox = new TQVBox(this);
+ TQVBox *centerBox = new TQVBox(this);
+ TQVBox *rightBox = new TQVBox(this);
+ TQLabel *leftLabel = new TQLabel("<b>" + l +"</b>",leftBox);
+ TQLabel *centerLabel = new TQLabel(("<b>" + c +"</b>"),centerBox);
+ TQLabel *rightLabel = new TQLabel(("<b>" + r +"</b>"),rightBox);
leftLabel->setAlignment(Qt::AlignHCenter);
centerLabel->setAlignment(Qt::AlignHCenter);
rightLabel->setAlignment(Qt::AlignHCenter);
leftLabel->setTextFormat (Qt::RichText ) ;
centerLabel->setTextFormat ( Qt::RichText ) ;
rightLabel->setTextFormat (Qt::RichText ) ;
- m_leftValue = new QSlider ( 0, 255, 1, 0, Qt::Horizontal , leftBox);
- m_centerValue = new QSlider ( 0, 255, 1, 0, Qt::Horizontal , centerBox);
- m_rightValue = new QSlider ( 0, 255, 1, 0, Qt::Horizontal , rightBox);
+ m_leftValue = new TQSlider ( 0, 255, 1, 0, Qt::Horizontal , leftBox);
+ m_centerValue = new TQSlider ( 0, 255, 1, 0, Qt::Horizontal , centerBox);
+ m_rightValue = new TQSlider ( 0, 255, 1, 0, Qt::Horizontal , rightBox);
setSpacing(10);
- connect(m_leftValue, SIGNAL(valueChanged ( int)), this, SLOT(convertLeftValue(int)));
- connect(m_centerValue, SIGNAL(valueChanged ( int)), this, SLOT(convertCenterValue(int)));
- connect(m_rightValue, SIGNAL(valueChanged ( int)), this, SLOT(convertRightValue(int)));
+ connect(m_leftValue, TQT_SIGNAL(valueChanged ( int)), this, TQT_SLOT(convertLeftValue(int)));
+ connect(m_centerValue, TQT_SIGNAL(valueChanged ( int)), this, TQT_SLOT(convertCenterValue(int)));
+ connect(m_rightValue, TQT_SIGNAL(valueChanged ( int)), this, TQT_SLOT(convertRightValue(int)));
}
colorSlider::~colorSlider(){
@@ -59,26 +59,26 @@ colorSlider::~colorSlider(){
}
void colorSlider::connectToPropertySetter(propertySetter* p){
- connect( this, SIGNAL(valueChanged(const QString&)), p, SIGNAL(valueChanged(const QString&)));
+ connect( this, TQT_SIGNAL(valueChanged(const TQString&)), p, TQT_SIGNAL(valueChanged(const TQString&)));
}
void colorSlider::convertLeftValue(int i){
- emit valueChanged(m_functionName + "(" + QString::number(i,10) + "," + QString::number(m_centerValue->value(),10) + "," +QString::number(m_rightValue->value(),10) +")");
+ emit valueChanged(m_functionName + "(" + TQString::number(i,10) + "," + TQString::number(m_centerValue->value(),10) + "," +TQString::number(m_rightValue->value(),10) +")");
}
void colorSlider::convertCenterValue(int i){
- emit valueChanged(m_functionName + "(" + QString::number(m_leftValue->value(),10) + "," + QString::number(i,10) + "," + QString::number(m_rightValue->value(),10) +")");
+ emit valueChanged(m_functionName + "(" + TQString::number(m_leftValue->value(),10) + "," + TQString::number(i,10) + "," + TQString::number(m_rightValue->value(),10) +")");
}
void colorSlider::convertRightValue(int i){
- emit valueChanged(m_functionName + "(" + QString::number(m_leftValue->value(),10) + "," + QString::number(m_centerValue->value(),10) + "," + QString::number(i,10) +")");
+ emit valueChanged(m_functionName + "(" + TQString::number(m_leftValue->value(),10) + "," + TQString::number(m_centerValue->value(),10) + "," + TQString::number(i,10) +")");
}
-RGBcolorSlider::RGBcolorSlider(QWidget *parent, const char *name) : colorSlider("rgb",i18n("Red"),i18n("Green"),i18n("Blue"),parent,name){
+RGBcolorSlider::RGBcolorSlider(TQWidget *parent, const char *name) : colorSlider("rgb",i18n("Red"),i18n("Green"),i18n("Blue"),parent,name){
}
//FOR CSS3
-/*HSLcolorSlider::HSLcolorSlider(QWidget *parent, const char *name) : colorSlider("hsl",i18n("Hue"),i18n("Saturation"),i18n("Lightness"),parent,name){
+/*HSLcolorSlider::HSLcolorSlider(TQWidget *parent, const char *name) : colorSlider("hsl",i18n("Hue"),i18n("Saturation"),i18n("Lightness"),parent,name){
}
*/