summaryrefslogtreecommitdiffstats
path: root/quanta/components/csseditor/doubleeditors.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/components/csseditor/doubleeditors.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/csseditor/doubleeditors.cpp')
-rw-r--r--quanta/components/csseditor/doubleeditors.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/quanta/components/csseditor/doubleeditors.cpp b/quanta/components/csseditor/doubleeditors.cpp
index 6fab0547..e877e2ac 100644
--- a/quanta/components/csseditor/doubleeditors.cpp
+++ b/quanta/components/csseditor/doubleeditors.cpp
@@ -16,27 +16,27 @@
***************************************************************************/
#include "doubleeditors.h"
#include "specialsb.h"
- #include <qcombobox.h>
+ #include <tqcombobox.h>
#include "csseditor_globals.h"
#include "propertysetter.h"
- #include <qregexp.h>
+ #include <tqregexp.h>
-doubleEditorBase::doubleEditorBase(QWidget *parent, const char *name) : miniEditor(parent,name){
+doubleEditorBase::doubleEditorBase(TQWidget *parent, const char *name) : miniEditor(parent,name){
}
-void doubleEditorBase::sxValueSlot(const QString& v){
+void doubleEditorBase::sxValueSlot(const TQString& v){
m_sxValue=v;
emit valueChanged( m_sxValue +" " + m_dxValue);
}
-void doubleEditorBase::dxValueSlot(const QString& v){
+void doubleEditorBase::dxValueSlot(const TQString& v){
m_dxValue=v;
emit valueChanged( m_sxValue +" " + m_dxValue);
}
- doubleLengthEditor::doubleLengthEditor(QWidget *parent, const char *name) : doubleEditorBase(parent,name){
+ doubleLengthEditor::doubleLengthEditor(TQWidget *parent, const char *name) : doubleEditorBase(parent,name){
m_ssbSx = new specialSB(this);
m_ssbSx->insertItem("cm");
@@ -58,8 +58,8 @@ void doubleEditorBase::dxValueSlot(const QString& v){
m_ssbDx->insertItem("pt");
m_ssbDx->insertItem("px");
- connect(m_ssbSx, SIGNAL(valueChanged(const QString&)), this, SLOT(sxValueSlot(const QString&)));
- connect(m_ssbDx, SIGNAL(valueChanged(const QString&)), this, SLOT(dxValueSlot(const QString&)));
+ connect(m_ssbSx, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(sxValueSlot(const TQString&)));
+ connect(m_ssbDx, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(dxValueSlot(const TQString&)));
}
doubleLengthEditor::~doubleLengthEditor(){
@@ -68,19 +68,19 @@ doubleLengthEditor::~doubleLengthEditor(){
}
void doubleLengthEditor::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 doubleLengthEditor::setInitialValue(const QString& sx, const QString& dx){
+void doubleLengthEditor::setInitialValue(const TQString& sx, const TQString& dx){
m_ssbSx->setInitialValue(sx);
m_ssbDx->setInitialValue(dx);
}
-doubleComboBoxEditor::doubleComboBoxEditor(QWidget *parent, const char *name) : doubleEditorBase(parent,name){
- m_cbSx = new QComboBox(this);
- m_cbDx = new QComboBox(this);
- connect(m_cbSx, SIGNAL(activated ( const QString & )), this, SLOT(sxValueSlot(const QString&)));
- connect(m_cbDx, SIGNAL(activated ( const QString & )), this, SLOT(dxValueSlot(const QString&)));
+doubleComboBoxEditor::doubleComboBoxEditor(TQWidget *parent, const char *name) : doubleEditorBase(parent,name){
+ m_cbSx = new TQComboBox(this);
+ m_cbDx = new TQComboBox(this);
+ connect(m_cbSx, TQT_SIGNAL(activated ( const TQString & )), this, TQT_SLOT(sxValueSlot(const TQString&)));
+ connect(m_cbDx, TQT_SIGNAL(activated ( const TQString & )), this, TQT_SLOT(dxValueSlot(const TQString&)));
}
doubleComboBoxEditor::~doubleComboBoxEditor(){
@@ -89,16 +89,16 @@ doubleComboBoxEditor::~doubleComboBoxEditor(){
}
void doubleComboBoxEditor::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&)));
}
-doublePercentageEditor::doublePercentageEditor(QWidget *parent, const char *name) : doubleEditorBase(parent,name){
+doublePercentageEditor::doublePercentageEditor(TQWidget *parent, const char *name) : doubleEditorBase(parent,name){
m_sbSx = new mySpinBox(this);
m_sbDx = new mySpinBox(this);
m_sbSx->setSuffix("%");
m_sbDx->setSuffix("%");
- connect(m_sbSx,SIGNAL(valueChanged(const QString&)),this,SLOT(sxValueSlot(const QString&)));
- connect(m_sbDx,SIGNAL(valueChanged(const QString&)),this,SLOT(dxValueSlot(const QString&)));
+ connect(m_sbSx,TQT_SIGNAL(valueChanged(const TQString&)),this,TQT_SLOT(sxValueSlot(const TQString&)));
+ connect(m_sbDx,TQT_SIGNAL(valueChanged(const TQString&)),this,TQT_SLOT(dxValueSlot(const TQString&)));
}
doublePercentageEditor::~doublePercentageEditor(){
@@ -107,12 +107,12 @@ doublePercentageEditor::~doublePercentageEditor(){
}
void doublePercentageEditor::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 doublePercentageEditor::setInitialValue(const QString& a_sx, const QString& a_dx){
- QString sx = a_sx;
- QString dx = a_dx;
+void doublePercentageEditor::setInitialValue(const TQString& a_sx, const TQString& a_dx){
+ TQString sx = a_sx;
+ TQString dx = a_dx;
m_sbSx->setValue(sx.remove("%").toInt());
m_sbDx->setValue(dx.remove("%").toInt());
}