summaryrefslogtreecommitdiffstats
path: root/buildtools/qmake/newwidgetdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/qmake/newwidgetdlg.cpp')
-rw-r--r--buildtools/qmake/newwidgetdlg.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/buildtools/qmake/newwidgetdlg.cpp b/buildtools/qmake/newwidgetdlg.cpp
index 7be62acd..44dd7588 100644
--- a/buildtools/qmake/newwidgetdlg.cpp
+++ b/buildtools/qmake/newwidgetdlg.cpp
@@ -10,22 +10,22 @@
***************************************************************************/
#include "newwidgetdlg.h"
-#include <qradiobutton.h>
-#include <qstringlist.h>
-#include <qcheckbox.h>
-#include <qmessagebox.h>
+#include <tqradiobutton.h>
+#include <tqstringlist.h>
+#include <tqcheckbox.h>
+#include <tqmessagebox.h>
#include <kfiledialog.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <domutil.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kstdguiitem.h>
#define WIDGET_CAPTION_NAME "widget/property|name=caption/string"
#define WIDGET_CLASS_NAME "class"
#define WIDGET_SLOTS "slots"
-NewWidgetDlg::NewWidgetDlg(QStringList &newFileNames,QWidget* parent, const char* name, bool modal, WFlags fl)
+NewWidgetDlg::NewWidgetDlg(TQStringList &newFileNames,TQWidget* parent, const char* name, bool modal, WFlags fl)
: NewWidgetDlgBase(parent,name,modal,fl),
m_newFileNames(newFileNames)
//=================================================
@@ -45,34 +45,34 @@ NewWidgetDlg::~NewWidgetDlg()
void NewWidgetDlg::subclassingPressed()
//=====================================
{
- QMessageBox::information(0,"subclassing","");
+ TQMessageBox::information(0,"subclassing","");
}
void NewWidgetDlg::templateSelChanged()
//=====================================
{
- QMessageBox::information(0,"template","");
+ TQMessageBox::information(0,"template","");
}
void NewWidgetDlg::accept()
//=========================
{
- QDomDocument doc;
+ TQDomDocument doc;
DomUtil::openDOMFile(doc,"/home/jsgaarde/programming/kdevelop/domapp/clean_dialog.ui");
DomUtil::replaceText(doc,WIDGET_CLASS_NAME,"TestClass");
DomUtil::replaceText(doc,WIDGET_CAPTION_NAME,"Test Dialog");
- QDomElement slotsElem = DomUtil::elementByPathExt(doc,WIDGET_SLOTS);
- QDomNodeList slotnodes = slotsElem.childNodes();
+ TQDomElement slotsElem = DomUtil::elementByPathExt(doc,WIDGET_SLOTS);
+ TQDomNodeList slotnodes = slotsElem.childNodes();
for (unsigned int i=0; i<slotnodes.count();i++)
{
- QString msg;
- QDomElement slotelem = slotnodes.item(i).toElement();
+ TQString msg;
+ TQDomElement slotelem = slotnodes.item(i).toElement();
msg.sprintf("Slotname: %s\nReturns: %s\nAccess: %s",
slotelem.text().ascii(),
slotelem.attributeNode("returnType").value().ascii(),
slotelem.attributeNode("access").value().ascii());
- QMessageBox::information(0,"Slots",msg);
+ TQMessageBox::information(0,"Slots",msg);
}
DomUtil::saveDOMFile(doc,"/home/jsgaarde/programming/kdevelop/domapp/clean_dialog2.ui");
NewWidgetDlgBase::accept();