summaryrefslogtreecommitdiffstats
path: root/quanta/components/csseditor/specialsb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/components/csseditor/specialsb.cpp')
-rw-r--r--quanta/components/csseditor/specialsb.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/quanta/components/csseditor/specialsb.cpp b/quanta/components/csseditor/specialsb.cpp
index eb26e05f..6edf110c 100644
--- a/quanta/components/csseditor/specialsb.cpp
+++ b/quanta/components/csseditor/specialsb.cpp
@@ -21,21 +21,21 @@
#include <klineedit.h>
-specialSB::specialSB(QWidget *parent, const char *name, bool useLineEdit ) : miniEditor(parent,name) {
+specialSB::specialSB(TQWidget *parent, const char *name, bool useLineEdit ) : miniEditor(parent,name) {
if (useLineEdit)
{
m_lineEdit = new KLineEdit(this);
m_sb = 0L;
- connect(m_lineEdit, SIGNAL(textChanged ( const QString & )), this, SLOT(lineEditValueSlot ( const QString & )));
+ connect(m_lineEdit, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(lineEditValueSlot ( const TQString & )));
}
else
{
m_sb=new mySpinBox(this);
- connect(m_sb, SIGNAL(valueChanged ( const QString & )), this, SLOT(sbValueSlot(const QString&)));
+ connect(m_sb, TQT_SIGNAL(valueChanged ( const TQString & )), this, TQT_SLOT(sbValueSlot(const TQString&)));
m_lineEdit = 0L;
}
- m_cb = new QComboBox(this);
- connect(m_cb, SIGNAL(activated ( const QString & )), this, SLOT(cbValueSlot(const QString&)));
+ m_cb = new TQComboBox(this);
+ connect(m_cb, TQT_SIGNAL(activated ( const TQString & )), this, TQT_SLOT(cbValueSlot(const TQString&)));
}
specialSB::~specialSB(){
@@ -45,32 +45,32 @@ specialSB::~specialSB(){
}
void specialSB::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 specialSB::cbValueSlot(const QString& s){
+void specialSB::cbValueSlot(const TQString& s){
if (m_sb)
emit valueChanged( m_sb->text() +s );
else
emit valueChanged( m_lineEdit->text() +s );
}
-void specialSB::sbValueSlot(const QString& s){
+void specialSB::sbValueSlot(const TQString& s){
emit valueChanged( s + m_cb->currentText());
}
-void specialSB::lineEditValueSlot(const QString& s){
+void specialSB::lineEditValueSlot(const TQString& s){
emit valueChanged( s + m_cb->currentText());
}
-void specialSB::setInitialValue(const QString& s){
+void specialSB::setInitialValue(const TQString& s){
- QRegExp pattern("\\d("+ cbValueList().join("|")+")");
+ TQRegExp pattern("\\d("+ cbValueList().join("|")+")");
if (pattern.search(s) != -1) {
- QString temp(s.stripWhiteSpace());
- QString cbValue = pattern.cap(1);
+ TQString temp(s.stripWhiteSpace());
+ TQString cbValue = pattern.cap(1);
if (m_sb)
m_sb->setValue(temp.remove(cbValue).toInt());
@@ -81,19 +81,19 @@ void specialSB::setInitialValue(const QString& s){
else return;
}
-QStringList specialSB::cbValueList(){
- QStringList l;
+TQStringList specialSB::cbValueList(){
+ TQStringList l;
for(int i=0; i<m_cb->count();i++) l.append(m_cb->text(i));
return l;
}
-frequencyEditor::frequencyEditor(QWidget *parent, const char *name ) : specialSB(parent,name) {
+frequencyEditor::frequencyEditor(TQWidget *parent, const char *name ) : specialSB(parent,name) {
m_cb->insertItem("Hz");
m_cb->insertItem("kHz");
m_sb->setMaxValue(9999);
}
-angleEditor::angleEditor(QWidget *parent, const char *name) : specialSB(parent,name){
+angleEditor::angleEditor(TQWidget *parent, const char *name) : specialSB(parent,name){
m_cb->insertItem("deg");
m_cb->insertItem("grad");
m_cb->insertItem("rad");
@@ -101,13 +101,13 @@ angleEditor::angleEditor(QWidget *parent, const char *name) : specialSB(parent,n
m_sb->setMaxValue(400);
}
-timeEditor::timeEditor(QWidget *parent, const char *name ) : specialSB(parent,name) {
+timeEditor::timeEditor(TQWidget *parent, const char *name ) : specialSB(parent,name) {
m_cb->insertItem("ms");
m_cb->insertItem("s");
m_sb->setMaxValue(99999);
}
-lengthEditor::lengthEditor(QWidget *parent, const char *name ) : specialSB(parent,name, true) {
+lengthEditor::lengthEditor(TQWidget *parent, const char *name ) : specialSB(parent,name, true) {
m_cb->insertItem("px");
m_cb->insertItem("em");
m_cb->insertItem("ex");