diff options
Diffstat (limited to 'parts/fileview/filegroupswidget.cpp')
-rw-r--r-- | parts/fileview/filegroupswidget.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/parts/fileview/filegroupswidget.cpp b/parts/fileview/filegroupswidget.cpp index 14f1d50c..d2b1b8ad 100644 --- a/parts/fileview/filegroupswidget.cpp +++ b/parts/fileview/filegroupswidget.cpp @@ -74,10 +74,10 @@ private: const TQString m_pattern; }; -class FileViewFolderItem : public QListViewItem +class FileViewFolderItem : public TQListViewItem { public: - FileViewFolderItem(TQListView *parent, const TQString &name, const TQString &pattern); + FileViewFolderItem(TQListView *tqparent, const TQString &name, const TQString &pattern); bool matches(const TQString &fileName); private: @@ -85,8 +85,8 @@ private: }; -FileViewFolderItem::FileViewFolderItem(TQListView *parent, const TQString &name, const TQString &pattern) - : TQListViewItem(parent, name) +FileViewFolderItem::FileViewFolderItem(TQListView *tqparent, const TQString &name, const TQString &pattern) + : TQListViewItem(tqparent, name) { setPixmap(0, SmallIcon("folder")); m_patterns.setAutoDelete(true); @@ -97,7 +97,7 @@ FileViewFolderItem::FileViewFolderItem(TQListView *parent, const TQString &name, TQString pattern = *ci; TQString tail = pattern.right( pattern.length() - 1 ); - if ( (tail).contains('*') || pattern.contains('?') || pattern.contains('[') || pattern.contains(']') ) + if ( (tail).tqcontains('*') || pattern.tqcontains('?') || pattern.tqcontains('[') || pattern.tqcontains(']') ) { m_patterns.append( new RegExpComparator( pattern ) ); } @@ -130,10 +130,10 @@ bool FileViewFolderItem::matches(const TQString &fileName) } -class FileGroupsFileItem : public QListViewItem +class FileGroupsFileItem : public TQListViewItem { public: - FileGroupsFileItem(TQListViewItem *parent, const TQString &fileName); + FileGroupsFileItem(TQListViewItem *tqparent, const TQString &fileName); TQString fileName() const { return fullname; } @@ -142,8 +142,8 @@ private: }; -FileGroupsFileItem::FileGroupsFileItem(TQListViewItem *parent, const TQString &fileName) - : TQListViewItem(parent), fullname(fileName) +FileGroupsFileItem::FileGroupsFileItem(TQListViewItem *tqparent, const TQString &fileName) + : TQListViewItem(tqparent), fullname(fileName) { setPixmap(0, SmallIcon("document")); TQFileInfo fi(fileName); @@ -162,7 +162,7 @@ FileGroupsWidget::FileGroupsWidget(FileGroupsPart *part) */ LocationID=-1; - setFocusPolicy(ClickFocus); + setFocusPolicy(TQ_ClickFocus); setRootIsDecorated(true); setResizeMode(TQListView::LastColumn); setSorting(-1); @@ -179,12 +179,12 @@ FileGroupsWidget::FileGroupsWidget(FileGroupsPart *part) this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) ); m_actionToggleShowNonProjectFiles = new KToggleAction( i18n("Show Non Project Files"), KShortcut(), - this, TQT_SLOT(slotToggleShowNonProjectFiles()), this, "actiontoggleshowshownonprojectfiles" ); + TQT_TQOBJECT(this), TQT_SLOT(slotToggleShowNonProjectFiles()), TQT_TQOBJECT(this), "actiontoggleshowshownonprojectfiles" ); m_actionToggleShowNonProjectFiles->setCheckedState(i18n("Hide Non Project Files")); m_actionToggleShowNonProjectFiles->setWhatsThis(i18n("<b>Show non project files</b><p>Shows files that do not belong to a project in a file tree.")); m_actionToggleDisplayLocation = new KToggleAction( i18n("Display Location Column"), KShortcut(), - this, TQT_SLOT(slotToggleDisplayLocation()), this, "actiontoggleshowlocation" ); + TQT_TQOBJECT(this), TQT_SLOT(slotToggleDisplayLocation()), TQT_TQOBJECT(this), "actiontoggleshowlocation" ); m_actionToggleDisplayLocation->setWhatsThis(i18n("<b>Display the Location Column</b><p>Displays a column with the location of the files.")); m_part = part; @@ -209,12 +209,12 @@ void FileGroupsWidget::slotItemExecuted(TQListViewItem *item) if (!item) return; - // toggle open state for parents + // toggle open state for tqparents if (item->childCount() > 0) setOpen(item, !isOpen(item)); // Is it a group item? - if (!item->parent()) + if (!item->tqparent()) return; FileGroupsFileItem *fgfitem = static_cast<FileGroupsFileItem*>(item); @@ -228,9 +228,9 @@ void FileGroupsWidget::slotContextMenu(KListView *, TQListViewItem *item, const popup.insertTitle(i18n("File Groups")); /// @todo Add, remove groups int customizeId = popup.insertItem(i18n("Customize...")); - popup.setWhatsThis(customizeId, i18n("<b>Customize</b><p>Opens <b>Customize File Groups</b> dialog where the groups can be managed.")); + popup.tqsetWhatsThis(customizeId, i18n("<b>Customize</b><p>Opens <b>Customize File Groups</b> dialog where the groups can be managed.")); if (item) { - if (item->parent()) { + if (item->tqparent()) { // Not for group items FileGroupsFileItem *fvfitem = static_cast<FileGroupsFileItem*>(item); TQString pathName = m_part->project()->projectDirectory() + TQDir::separator() + fvfitem->fileName(); @@ -371,7 +371,7 @@ void FileGroupsWidget::addFile(const TQString &fileName) if (fvgitem->matches(fileName)) { TQString f = fileName; - if (fileName.contains(m_part->project()->projectDirectory())) + if (fileName.tqcontains(m_part->project()->projectDirectory())) f = fileName.mid(m_part->project()->projectDirectory().length()+1); (void) new FileGroupsFileItem(fvgitem, f); // fvgitem->sortChildItems(0, true); |