summaryrefslogtreecommitdiffstats
path: root/src/libgui/project_manager_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgui/project_manager_ui.cpp')
-rw-r--r--src/libgui/project_manager_ui.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libgui/project_manager_ui.cpp b/src/libgui/project_manager_ui.cpp
index 235d360..2d2bd15 100644
--- a/src/libgui/project_manager_ui.cpp
+++ b/src/libgui/project_manager_ui.cpp
@@ -9,7 +9,7 @@
***************************************************************************/
#include "project_manager_ui.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kiconloader.h>
#include "project.h"
@@ -19,10 +19,10 @@
#include "device_gui.h"
//----------------------------------------------------------------------------
-void PopupMenu::insertItem(const QString &icon, const QString &label, QObject *receiver, const char *slot)
+void PopupMenu::insertItem(const TQString &icon, const TQString &label, TQObject *receiver, const char *slot)
{
KIconLoader loader;
- QPixmap pixmap = loader.loadIcon(icon, KIcon::Small);
+ TQPixmap pixmap = loader.loadIcon(icon, KIcon::Small);
if (receiver) KPopupMenu::insertItem(pixmap, label, receiver, slot, 0, _index);
else KPopupMenu::insertItem(pixmap, label, _index);
_index++;
@@ -71,9 +71,9 @@ ProjectManager::HeaderItem::HeaderItem(RootItem *item, Group group)
setText(0, i18n(GROUP_LABELS[group]));
}
-QListViewItem *ProjectManager::HeaderItem::lastChild() const
+TQListViewItem *ProjectManager::HeaderItem::lastChild() const
{
- QListViewItem *item = firstChild();
+ TQListViewItem *item = firstChild();
if ( item==0 ) return 0;
for (;;) {
if ( item->nextSibling()==0 ) break;
@@ -101,7 +101,7 @@ void ProjectManager::FileItem::set(const PURL::Url &url)
case PURL::Project:
case PURL::Nb_FileTypes: Q_ASSERT(false); break;
default: {
- QString s = url.filename();
+ TQString s = url.filename();
if ( _external && group(_ftype)==LinkerScriptGroup )
s += i18n(" (default)");
setText(0, s); break;
@@ -109,10 +109,10 @@ void ProjectManager::FileItem::set(const PURL::Url &url)
}
}
-void ProjectManager::FileItem::paintCell(QPainter *p, const QColorGroup &cg,
+void ProjectManager::FileItem::paintCell(TQPainter *p, const TQColorGroup &cg,
int column, int width, int align)
{
- QFont f = p->font();
+ TQFont f = p->font();
f.setItalic(group(_ftype)!=ViewGroup && _external);
p->setFont(f);
KListViewItem::paintCell(p, cg, column, width, align);
@@ -122,7 +122,7 @@ ProjectManager::RegisterItem::RegisterItem(HeaderItem *item)
: KListViewItem(item)
{
KIconLoader loader;
- QPixmap chip = loader.loadIcon("piklab_chip", KIcon::Small);
+ TQPixmap chip = loader.loadIcon("piklab_chip", KIcon::Small);
setPixmap(0, chip);
setText(0, i18n("Registers"));
}
@@ -131,18 +131,18 @@ ProjectManager::DeviceItem::DeviceItem(HeaderItem *item)
: EditListViewItem(item)
{}
-QWidget *ProjectManager::DeviceItem::editWidgetFactory(int) const
+TQWidget *ProjectManager::DeviceItem::editWidgetFactory(int) const
{
- QComboBox *combo = new DeviceChooser::ComboBox(Main::project()==0, 0);
- QString device = Main::device();
+ TQComboBox *combo = new DeviceChooser::ComboBox(Main::project()==0, 0);
+ TQString device = Main::device();
if ( device!=Device::AUTO_DATA.name ) combo->setCurrentText(device);
- QObject::connect(combo, SIGNAL(activated(int)), listView(), SLOT(finishRenaming()));
+ TQObject::connect(combo, TQT_SIGNAL(activated(int)), listView(), TQT_SLOT(finishRenaming()));
return combo;
}
void ProjectManager::DeviceItem::updateText()
{
- QString device = Main::device();
+ TQString device = Main::device();
if ( device==Device::AUTO_DATA.name ) {
const Device::Data *data = Main::deviceData();
if (data) device = data->name() + " " + i18n(Device::AUTO_DATA.label);
@@ -163,13 +163,13 @@ void ProjectManager::LinkerScriptItem::init()
PURL::Url lkr;
if ( Main::project() ) lkr = Main::project()->customLinkerScript();
setText(0, lkr.isEmpty() ? i18n("<default>") : lkr.filename());
- setPixmap(0, lkr.isEmpty() ? QPixmap() : PURL::icon(PURL::Lkr));
+ setPixmap(0, lkr.isEmpty() ? TQPixmap() : PURL::icon(PURL::Lkr));
}
void ProjectManager::LinkerScriptItem::set(const PURL::Url &url)
{
_url = url;
- QString s = url.filename();
+ TQString s = url.filename();
PURL::Url lkr;
if ( Main::project() ) lkr = Main::project()->customLinkerScript();
if ( lkr.isEmpty() ) s += i18n(" (default)");