summaryrefslogtreecommitdiffstats
path: root/quanta/components/framewizard/fmfpeditor.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/framewizard/fmfpeditor.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/framewizard/fmfpeditor.cpp')
-rw-r--r--quanta/components/framewizard/fmfpeditor.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/quanta/components/framewizard/fmfpeditor.cpp b/quanta/components/framewizard/fmfpeditor.cpp
index cc262453..e2bfb44a 100644
--- a/quanta/components/framewizard/fmfpeditor.cpp
+++ b/quanta/components/framewizard/fmfpeditor.cpp
@@ -16,12 +16,12 @@
***************************************************************************/
#include "fmfpeditor.h"
-#include <qspinbox.h>
-#include <qlineedit.h>
-#include <qbuttongroup.h>
-#include <qregexp.h>
+#include <tqspinbox.h>
+#include <tqlineedit.h>
+#include <tqbuttongroup.h>
+#include <tqregexp.h>
#include <kurlrequester.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kfiledialog.h>
#include <klocale.h>
//#include <kpreviewwidgetbase.h>
@@ -33,11 +33,11 @@ fmFPeditor::fmFPeditor() : fmFPeditorS (){
sbLeft->setWrapping(true);
sbTop->setWrapping(true);
- QString htmlFiles = i18n("*.html *.htm|HTML Files");
- QString phpFiles = i18n("*.php|PHP Files");
- QString xmlFiles = i18n("*.xml|XML Files");
- QString xhtmlFiles = i18n("*xhtml|XHTML Files");
- QString allFiles = i18n("*|All Files");
+ TQString htmlFiles = i18n("*.html *.htm|HTML Files");
+ TQString phpFiles = i18n("*.php|PHP Files");
+ TQString xmlFiles = i18n("*.xml|XML Files");
+ TQString xhtmlFiles = i18n("*xhtml|XHTML Files");
+ TQString allFiles = i18n("*|All Files");
fc->setFilter(htmlFiles+"\n"+phpFiles+"\n"+xmlFiles+"\n"+xhtmlFiles+"\n"+allFiles);
@@ -45,14 +45,14 @@ fmFPeditor::fmFPeditor() : fmFPeditorS (){
fmFPeditor::~fmFPeditor(){
}
-QString fmFPeditor::noresizeValue() {
+TQString fmFPeditor::noresizeValue() {
switch(bgNoresize->id(bgNoresize->selected())){
case 0:return "";break;
default:return "noresize";
}
}
-QString fmFPeditor::scrollingValue() {
+TQString fmFPeditor::scrollingValue() {
switch(bgScrolling->id(bgScrolling->selected())){
case 0:return "yes";break;
case 2:return "no";break;
@@ -60,14 +60,14 @@ QString fmFPeditor::scrollingValue() {
}
}
-QString fmFPeditor::frameborderValue() {
+TQString fmFPeditor::frameborderValue() {
switch(bgBorder->id(bgBorder->selected())){
case 1:return "0"; break;
default:return "1";
}
}
-void fmFPeditor::setup(QMap<QString,QString> m){
+void fmFPeditor::setup(TQMap<TQString,TQString> m){
leId->setText(m["id"]);
fc->setURL(m["src"]);
leClass->setText(m["class"]);
@@ -89,8 +89,8 @@ void fmFPeditor::setup(QMap<QString,QString> m){
sbTop->setValue(m["marginheight"].toInt());
}
-QMap<QString,QString> fmFPeditor::attributeMap(){
- QMap<QString,QString> map;
+TQMap<TQString,TQString> fmFPeditor::attributeMap(){
+ TQMap<TQString,TQString> map;
map["name"] = leName->text();
map["longdesc"] = leLongdesc->text();
@@ -102,8 +102,8 @@ QMap<QString,QString> fmFPeditor::attributeMap(){
map["class"] = leClass->text();
map["noresize"] = noresizeValue();
map["frameborder"] = frameborderValue();
- map["marginwidth"] = QString::number( sbLeft->value(),10 );
- map["marginheight"] = QString::number( sbTop->value(),10 );
+ map["marginwidth"] = TQString::number( sbLeft->value(),10 );
+ map["marginheight"] = TQString::number( sbTop->value(),10 );
return map;
}