diff options
Diffstat (limited to 'buildtools/autotools/autolistviewitems.cpp')
-rw-r--r-- | buildtools/autotools/autolistviewitems.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/buildtools/autotools/autolistviewitems.cpp b/buildtools/autotools/autolistviewitems.cpp index 454d12f5..865e82d0 100644 --- a/buildtools/autotools/autolistviewitems.cpp +++ b/buildtools/autotools/autolistviewitems.cpp @@ -12,9 +12,9 @@ * * ***************************************************************************/ -#include <qpainter.h> -#include <qinputdialog.h> -#include <qregexp.h> +#include <tqpainter.h> +#include <tqinputdialog.h> +#include <tqregexp.h> #include <kiconloader.h> #include "misc.h" @@ -27,30 +27,30 @@ * Class ProjectItem */ -ProjectItem::ProjectItem( Type type, QListView *parent, const QString &text ) - : QListViewItem( parent, text ), typ( type ) +ProjectItem::ProjectItem( Type type, TQListView *parent, const TQString &text ) + : TQListViewItem( parent, text ), typ( type ) { bld = false; } -ProjectItem::ProjectItem( Type type, ProjectItem *parent, const QString &text ) - : QListViewItem( parent, text ), typ( type ) +ProjectItem::ProjectItem( Type type, ProjectItem *parent, const TQString &text ) + : TQListViewItem( parent, text ), typ( type ) { bld = false; } -void ProjectItem::paintCell( QPainter *p, const QColorGroup &cg, +void ProjectItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment ) { if ( isBold() ) { - QFont font( p->font() ); + TQFont font( p->font() ); font.setBold( true ); p->setFont( font ); } - QListViewItem::paintCell( p, cg, column, width, alignment ); + TQListViewItem::paintCell( p, cg, column, width, alignment ); } @@ -58,14 +58,14 @@ void ProjectItem::paintCell( QPainter *p, const QColorGroup &cg, * Class SubprojectItem */ -SubprojectItem::SubprojectItem( QListView *parent, const QString &text ) +SubprojectItem::SubprojectItem( TQListView *parent, const TQString &text ) : ProjectItem( Subproject, parent, text ) { init(); } -SubprojectItem::SubprojectItem( SubprojectItem *parent, const QString &text ) +SubprojectItem::SubprojectItem( SubprojectItem *parent, const TQString &text ) : ProjectItem( Subproject, parent, text ) { init(); @@ -79,9 +79,9 @@ void SubprojectItem::init() } -QString SubprojectItem::relativePath() +TQString SubprojectItem::relativePath() { - QString relpath = subdir; + TQString relpath = subdir; SubprojectItem *it = this; while ( (it= dynamic_cast<SubprojectItem*>(it->parent())) ) @@ -98,7 +98,7 @@ QString SubprojectItem::relativePath() * Class TargetItem */ -TargetItem::TargetItem( QListView *lv, bool group, const QString &text ) +TargetItem::TargetItem( TQListView *lv, bool group, const TQString &text ) : ProjectItem( Target, lv, text ) { sources.setAutoDelete( true ); @@ -110,7 +110,7 @@ TargetItem::TargetItem( QListView *lv, bool group, const QString &text ) * Class FileItem */ -FileItem::FileItem( QListView *lv, const QString &text, bool set_is_subst ) +FileItem::FileItem( TQListView *lv, const TQString &text, bool set_is_subst ) : ProjectItem( File, lv, text ) , is_subst(set_is_subst) { if(!is_subst) @@ -130,13 +130,13 @@ if(!is_subst) return; bool ok; - QString text = QInputDialog::getText( - i18n("Edit Substitution"), i18n("Substitution:"), QLineEdit::Normal, + TQString text = QInputDialog::getText( + i18n("Edit Substitution"), i18n("Substitution:"), TQLineEdit::Normal, name, &ok ); if ( ok && !text.isEmpty() ) { // user entered something and pressed OK - QString new_name = text; + TQString new_name = text; if(new_name == name) return; setText(0,new_name); @@ -150,14 +150,14 @@ return; } } -void FileItem::changeMakefileEntry(const QString& new_name) +void FileItem::changeMakefileEntry(const TQString& new_name) { TargetItem* target = dynamic_cast<TargetItem*>(parent()); - QMap<QString,QString> replaceMap; + TQMap<TQString,TQString> replaceMap; - QString canontargetname = AutoProjectTool::canonicalize(target->name); - QString varname; + TQString canontargetname = AutoProjectTool::canonicalize(target->name); + TQString varname; if( target->primary == "PROGRAMS" || target->primary == "LIBRARIES" || target->primary == "LTLIBRARIES" ) varname = canontargetname + "_SOURCES"; else @@ -166,8 +166,8 @@ void FileItem::changeMakefileEntry(const QString& new_name) { if ( SubprojectItem* subProject = lv->m_part->m_widget->selectedSubproject() ) { - QStringList sources = QStringList::split(QRegExp("[ \t\n]"), subProject->variables[varname]); - QStringList::iterator it = sources.find(name); + TQStringList sources = TQStringList::split(TQRegExp("[ \t\n]"), subProject->variables[varname]); + TQStringList::iterator it = sources.find(name); (*it) = new_name; subProject->variables[varname] = sources.join(" "); replaceMap.insert(varname, subProject->variables[varname]); |