From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/filelist.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/filelist.cpp') diff --git a/src/filelist.cpp b/src/filelist.cpp index 59492ce..e9fdb9a 100644 --- a/src/filelist.cpp +++ b/src/filelist.cpp @@ -25,8 +25,8 @@ * ***************************************************************************/ -#include -#include +#include +#include #include #include "filelist.h" #include "kscope.h" @@ -37,7 +37,7 @@ * @param pParent The parent widget * @param szName The widget's name */ -FileList::FileList(QWidget* pParent, const char* szName) : +FileList::FileList(TQWidget* pParent, const char* szName) : SearchList(1, pParent, szName), m_sRoot("/") { @@ -74,9 +74,9 @@ FileList::~FileList() * path, and is added to the list. * @param sFilePath The full path of a source file */ -void FileList::addItem(const QString& sFilePath) +void FileList::addItem(const TQString& sFilePath) { - QString sFileType, sFileName, sPath; + TQString sFileType, sFileName, sPath; int nTypePos; // Extract the file name @@ -95,7 +95,7 @@ void FileList::addItem(const QString& sFilePath) sPath.replace(m_sRoot, "$"); // Create the list item - new QListViewItem(m_pList, sFileType, sFileName, sPath); + new TQListViewItem(m_pList, sFileType, sFileName, sPath); } /** @@ -103,9 +103,9 @@ void FileList::addItem(const QString& sFilePath) * @param sPath The full path of the file to find * @return true if the file was found in the list, false otherwise */ -bool FileList::findFile(const QString& sPath) +bool FileList::findFile(const TQString& sPath) { - QString sFindPath(sPath); + TQString sFindPath(sPath); if (m_sRoot != "/") sFindPath.replace(m_sRoot, "$"); @@ -126,9 +126,9 @@ void FileList::clear() * Opens a file for editing when its entry is clicked in the file list. * @param pItem The clicked list item */ -void FileList::processItemSelected(QListViewItem* pItem) +void FileList::processItemSelected(TQListViewItem* pItem) { - QString sPath; + TQString sPath; // Get the file path (replace the root symbol, if required) sPath = pItem->text(2); @@ -158,10 +158,10 @@ void FileList::applyPrefs() * is replaced with a $ sign. * @param sRoot The new root path */ -void FileList::setRoot(const QString& sRoot) +void FileList::setRoot(const TQString& sRoot) { - QListViewItem* pItem; - QString sPath; + TQListViewItem* pItem; + TQString sPath; // Update all items in the list for (pItem = m_pList->firstChild(); pItem != NULL; @@ -188,7 +188,7 @@ void FileList::setRoot(const QString& sRoot) * @param sTip The constructed tip string (on return) * @return Always true */ -bool FileList::getTip(QListViewItem* pItem, QString& sTip) +bool FileList::getTip(TQListViewItem* pItem, TQString& sTip) { sTip = pItem->text(2); return true; -- cgit v1.2.1