summaryrefslogtreecommitdiffstats
path: root/languages/fortran/ftnchekconfigwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/fortran/ftnchekconfigwidget.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/fortran/ftnchekconfigwidget.cpp')
-rw-r--r--languages/fortran/ftnchekconfigwidget.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/languages/fortran/ftnchekconfigwidget.cpp b/languages/fortran/ftnchekconfigwidget.cpp
index fd4f7a87..3448a343 100644
--- a/languages/fortran/ftnchekconfigwidget.cpp
+++ b/languages/fortran/ftnchekconfigwidget.cpp
@@ -11,12 +11,12 @@
#include "ftnchekconfigwidget.h"
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
-#include <qheader.h>
-#include <qlistview.h>
-#include <qradiobutton.h>
-#include <qtooltip.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqheader.h>
+#include <tqlistview.h>
+#include <tqradiobutton.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include "domutil.h"
@@ -25,30 +25,30 @@
class FtnchekItem : public QCheckListItem
{
public:
- FtnchekItem(QListView *parent, const QString &flagstr,
- const QString &description)
- : QCheckListItem(parent, flagstr, QCheckListItem::CheckBox),
+ FtnchekItem(TQListView *parent, const TQString &flagstr,
+ const TQString &description)
+ : TQCheckListItem(parent, flagstr, TQCheckListItem::CheckBox),
flag(flagstr), desc(description)
{
setText(1, desc);
}
- static void readFlagsToListView(QListView *listview, QStringList *list);
- static void writeFlagsFromListView(QListView *listview, QStringList *list);
+ static void readFlagsToListView(TQListView *listview, TQStringList *list);
+ static void writeFlagsFromListView(TQListView *listview, TQStringList *list);
private:
- QString flag;
- QString desc;
+ TQString flag;
+ TQString desc;
friend class FtnchekToolTip;
};
-void FtnchekItem::readFlagsToListView(QListView *listview, QStringList *list)
+void FtnchekItem::readFlagsToListView(TQListView *listview, TQStringList *list)
{
- QListViewItem *item = listview->firstChild();
+ TQListViewItem *item = listview->firstChild();
for (; item; item = item->nextSibling()) {
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
- QStringList::Iterator sli = list->find(flitem->flag);
+ TQStringList::Iterator sli = list->find(flitem->flag);
if (sli != list->end()) {
flitem->setOn(true);
list->remove(sli);
@@ -57,11 +57,11 @@ void FtnchekItem::readFlagsToListView(QListView *listview, QStringList *list)
}
-void FtnchekItem::writeFlagsFromListView(QListView *listview, QStringList *list)
+void FtnchekItem::writeFlagsFromListView(TQListView *listview, TQStringList *list)
{
(*list).clear();
- QListViewItem *item = listview->firstChild();
+ TQListViewItem *item = listview->firstChild();
for (; item; item = item->nextSibling()) {
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
if (flitem->isOn())
@@ -73,14 +73,14 @@ void FtnchekItem::writeFlagsFromListView(QListView *listview, QStringList *list)
class FtnchekToolTip : public QToolTip
{
public:
- FtnchekToolTip(QWidget *parent)
- : QToolTip(parent)
+ FtnchekToolTip(TQWidget *parent)
+ : TQToolTip(parent)
{}
protected:
- void maybeTip(const QPoint &pos)
+ void maybeTip(const TQPoint &pos)
{
- QListView *listview = static_cast<QListView*>(parentWidget());
- QListViewItem *item = listview->itemAt(pos);
+ TQListView *listview = static_cast<TQListView*>(parentWidget());
+ TQListViewItem *item = listview->itemAt(pos);
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
if (item)
@@ -147,7 +147,7 @@ const char *portability_flags[] = {
};
-FtnchekConfigWidget::FtnchekConfigWidget(QDomDocument &projectDom, QWidget *parent, const char *name)
+FtnchekConfigWidget::FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name)
: FtnchekConfigWidgetBase(parent, name), dom(projectDom)
{
arguments_group = new QButtonGroup;
@@ -188,22 +188,22 @@ FtnchekConfigWidget::FtnchekConfigWidget(QDomDocument &projectDom, QWidget *pare
new FtnchekToolTip(portability_listview);
for (const char **p = arguments_flags; *p; p += 2)
- new FtnchekItem(arguments_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(arguments_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = common_flags; *p; p += 2)
- new FtnchekItem(common_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(common_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = truncation_flags; *p; p += 2)
- new FtnchekItem(truncation_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(truncation_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = usage_flags; *p; p += 2)
- new FtnchekItem(usage_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(usage_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = f77_flags; *p; p += 2)
- new FtnchekItem(f77_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(f77_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
for (const char **p = portability_flags; *p; p += 2)
- new FtnchekItem(portability_listview, QString::fromUtf8(*p), i18n(*(p+1)));
+ new FtnchekItem(portability_listview, TQString::fromUtf8(*p), i18n(*(p+1)));
readConfig();
}
@@ -240,19 +240,19 @@ void FtnchekConfigWidget::readConfig()
f77all_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all"));
portabilityall_button->setChecked(DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall"));
- QStringList list;
+ TQStringList list;
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly"));
FtnchekItem::readFlagsToListView(arguments_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/commononly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/commononly"));
FtnchekItem::readFlagsToListView(common_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/truncationonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/truncationonly"));
FtnchekItem::readFlagsToListView(truncation_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/usageonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/usageonly"));
FtnchekItem::readFlagsToListView(usage_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/f77only"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/f77only"));
FtnchekItem::readFlagsToListView(f77_listview, &list);
- list = QStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly"));
+ list = TQStringList::split(',', DomUtil::readEntry(dom, "/kdevfortransupport/ftnchek/portabilityonly"));
FtnchekItem::readFlagsToListView(portability_listview, &list);
}
@@ -271,7 +271,7 @@ void FtnchekConfigWidget::storeConfig()
DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/f77all", f77all_button->isChecked());
DomUtil::writeBoolEntry(dom, "/kdevfortransupport/ftnchek/portabilityall", portabilityall_button->isChecked());
- QStringList list;
+ TQStringList list;
FtnchekItem::writeFlagsFromListView(arguments_listview, &list);
DomUtil::writeEntry(dom, "/kdevfortransupport/ftnchek/argumentsonly", list.join(","));