summaryrefslogtreecommitdiffstats
path: root/src/filelist.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-08 00:13:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/filelist.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/filelist.cpp')
-rw-r--r--src/filelist.cpp28
1 files changed, 14 insertions, 14 deletions
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 <qlineedit.h>
-#include <qfileinfo.h>
+#include <ntqlineedit.h>
+#include <ntqfileinfo.h>
#include <klocale.h>
#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;