summaryrefslogtreecommitdiffstats
path: root/quanta/components/csseditor/tlpeditors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/components/csseditor/tlpeditors.cpp')
-rw-r--r--quanta/components/csseditor/tlpeditors.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/quanta/components/csseditor/tlpeditors.cpp b/quanta/components/csseditor/tlpeditors.cpp
index 706ac518..81e72538 100644
--- a/quanta/components/csseditor/tlpeditors.cpp
+++ b/quanta/components/csseditor/tlpeditors.cpp
@@ -15,11 +15,11 @@
* *
***************************************************************************/
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kpushbutton.h>
#include <kurl.h>
@@ -34,9 +34,9 @@
#include "fontfamilychooser.h"
#include "project.h"
-TLPEditor::TLPEditor(QWidget *parent, const char* name) : miniEditor(parent,name){
- m_label = new QLabel(this);
- m_le = new QLineEdit(this);
+TLPEditor::TLPEditor(TQWidget *parent, const char* name) : miniEditor(parent,name){
+ m_label = new TQLabel(this);
+ m_le = new TQLineEdit(this);
m_pb = new KPushButton(this);
setSpacing( KDialog::spacingHint() );
}
@@ -47,59 +47,59 @@ TLPEditor::~TLPEditor(){
delete m_pb;
}
-void TLPEditor::setButtonIcon(QString s){
- QIconSet iconSet = SmallIconSet(QString::fromLatin1(s));
- QPixmap pixMap = iconSet.pixmap( QIconSet::Small, QIconSet::Normal );
+void TLPEditor::setButtonIcon(TQString s){
+ TQIconSet iconSet = SmallIconSet(TQString::fromLatin1(s));
+ TQPixmap pixMap = iconSet.pixmap( TQIconSet::Small, TQIconSet::Normal );
m_pb->setIconSet(iconSet);
m_pb->setFixedSize( pixMap.width()+8, pixMap.height()+8 );
}
-void TLPEditor::setLabelText(QString s){
+void TLPEditor::setLabelText(TQString s){
m_label->setText(s);
}
-void TLPEditor::setToolTip(QString s){
- QToolTip::add(m_pb, s);
+void TLPEditor::setToolTip(TQString s){
+ TQToolTip::add(m_pb, s);
}
-void TLPEditor::setWhatsThis(QString s){
- QWhatsThis::add(m_le,s);
+void TLPEditor::setWhatsThis(TQString s){
+ TQWhatsThis::add(m_le,s);
}
-URIEditor::URIEditor(QWidget *parent, const char* name) : TLPEditor(parent,name){
- QString whatsthis =i18n("With this line edit you can insert the URI of the resource you want to reach");
+URIEditor::URIEditor(TQWidget *parent, const char* name) : TLPEditor(parent,name){
+ TQString whatsthis =i18n("With this line edit you can insert the URI of the resource you want to reach");
setWhatsThis(whatsthis);
setLabelText(" Uri :");
setButtonIcon("fileopen");
setToolTip(i18n("Open the URI selector"));
- connect(m_pb, SIGNAL(clicked()), this, SLOT(openFileDialog()));
+ connect(m_pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(openFileDialog()));
}
void URIEditor::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 URIEditor::setMode(const mode& m) {
m_Mode = m ;
if( m_Mode == Single )
- connect(m_le, SIGNAL(textChanged ( const QString & )), this, SLOT(selectedURI(const QString&)));
+ connect(m_le, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(selectedURI(const TQString&)));
else{
- connect(m_le, SIGNAL(textChanged ( const QString & )), this, SLOT(selectedURIs(const QStringList&)));
+ connect(m_le, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(selectedURIs(const TQStringList&)));
}
}
-void URIEditor::selectedURI(const QString & s){
+void URIEditor::selectedURI(const TQString & s){
KURL u;
u.setPath(s);
emit valueChanged("url(\'" + QExtFileInfo::toRelative(u, Project::ref()->projectBaseURL()).path() + "\')");
}
-void URIEditor::selectedURIs(const QStringList& s){
+void URIEditor::selectedURIs(const TQStringList& s){
KURL u;
- QStringList selectedFiles = s,
+ TQStringList selectedFiles = s,
selectedFilesWithURLFormat;
- for ( QStringList::Iterator it = selectedFiles.begin(); it != selectedFiles.end(); ++it ){
+ for ( TQStringList::Iterator it = selectedFiles.begin(); it != selectedFiles.end(); ++it ){
u.setPath(*it);
selectedFilesWithURLFormat.append( "url(\'" + QExtFileInfo::toRelative(u, Project::ref()->projectBaseURL()).path() + "\')");
}
@@ -139,9 +139,9 @@ void URIEditor::openFileDialog(){
selectedURI( fd.selectedFile() );
else {
selectedURIs( fd.selectedFiles() );
- /*QStringList selectedFiles = fd.selectedFiles();
+ /*TQStringList selectedFiles = fd.selectedFiles();
KURL u;
- for ( QStringList::Iterator it = selectedFiles.begin(); it != selectedFiles.end(); ++it ){
+ for ( TQStringList::Iterator it = selectedFiles.begin(); it != selectedFiles.end(); ++it ){
u.setPath(*it);
m_sFiles.append( "url(\'" + QExtFileInfo::toRelative(u, Project::ref()->projectBaseURL()).path() + "\')");
}
@@ -150,18 +150,18 @@ void URIEditor::openFileDialog(){
}
}
-fontEditor::fontEditor(QWidget *parent, const char* name) : TLPEditor(parent,name), m_initialValue(QString::null){
- QString whatsthis =i18n("With this line edit you can insert the name of the font you want to use");
+fontEditor::fontEditor(TQWidget *parent, const char* name) : TLPEditor(parent,name), m_initialValue(TQString::null){
+ TQString whatsthis =i18n("With this line edit you can insert the name of the font you want to use");
setWhatsThis(whatsthis);
setLabelText(i18n("Font family:"));
setButtonIcon("fonts");
setToolTip(i18n("Open font family chooser"));
- connect(m_pb, SIGNAL(clicked()), this, SLOT(openFontChooser()));
- connect(m_le, SIGNAL(textChanged ( const QString & )), this, SIGNAL( valueChanged( const QString& ) ) );
+ connect(m_pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(openFontChooser()));
+ connect(m_le, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SIGNAL( valueChanged( const TQString& ) ) );
}
void fontEditor::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 fontEditor::openFontChooser(){