diff options
author | Slávek Banko <[email protected]> | 2013-10-08 00:13:25 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-10-08 05:14:53 +0200 |
commit | 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch) | |
tree | 770861aa9033e1dc6c5168358194ff85b32dd429 /src/fileview.cpp | |
parent | 57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff) | |
download | kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip |
Initial TQt conversion
Diffstat (limited to 'src/fileview.cpp')
-rw-r--r-- | src/fileview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/fileview.cpp b/src/fileview.cpp index 029c20a..d611e59 100644 --- a/src/fileview.cpp +++ b/src/fileview.cpp @@ -25,9 +25,9 @@ * ***************************************************************************/ -#include <qpushbutton.h> -#include <qfileinfo.h> -#include <qtabwidget.h> +#include <ntqpushbutton.h> +#include <ntqfileinfo.h> +#include <ntqtabwidget.h> #include <kfiledialog.h> #include "fileview.h" #include "filelist.h" @@ -39,12 +39,12 @@ * @param szName The widget's name * @param fl Widget creation flags */ -FileView::FileView(QWidget* pParent, const char* szName, WFlags fl) : +FileView::FileView(TQWidget* pParent, const char* szName, WFlags fl) : FileViewLayout(pParent, szName, fl), m_pCurBranch(0), m_sRoot("") { - QWidget* pPage; + TQWidget* pPage; // Set the tab widget icons pPage = m_pTabWidget->page(0); @@ -57,12 +57,12 @@ FileView::FileView(QWidget* pParent, const char* szName, WFlags fl) : // Send the fileRequested() signal whenever a file is selected in either // the list or the tree - connect(m_pFileList, SIGNAL(fileRequested(const QString&, uint)), this, - SIGNAL(fileRequested(const QString&, uint))); - connect(m_pFileTree, SIGNAL(doubleClicked(QListViewItem*)), - this, SLOT(slotTreeItemSelected(QListViewItem*))); - connect(m_pFileTree, SIGNAL(returnPressed(QListViewItem*)), this, - SLOT(slotTreeItemSelected(QListViewItem*))); + connect(m_pFileList, SIGNAL(fileRequested(const TQString&, uint)), this, + SIGNAL(fileRequested(const TQString&, uint))); + connect(m_pFileTree, SIGNAL(doubleClicked(TQListViewItem*)), + this, SLOT(slotTreeItemSelected(TQListViewItem*))); + connect(m_pFileTree, SIGNAL(returnPressed(TQListViewItem*)), this, + SLOT(slotTreeItemSelected(TQListViewItem*))); } /** @@ -76,7 +76,7 @@ FileView::~FileView() * Sets a new common root path to both the file list and the tree. * @param sRoot The full path of the new root */ -void FileView::setRoot(const QString& sRoot) +void FileView::setRoot(const TQString& sRoot) { // Nothing to do if the given root is the same as the old one if (sRoot == m_sRoot) @@ -96,7 +96,7 @@ void FileView::setRoot(const QString& sRoot) return; // Create and open a new branch, with the newly specified root - QFileInfo fi(sRoot); + TQFileInfo fi(sRoot); m_pCurBranch = m_pFileTree->addBranch(KURL(sRoot), fi.fileName()); m_pCurBranch->setChildRecurse(false); m_pFileTree->setOpen(m_pCurBranch->root(), true); @@ -119,7 +119,7 @@ void FileView::clear() * of the KFileTreeView object. * @param pItem The selected tree item */ -void FileView::slotTreeItemSelected(QListViewItem* pItem) +void FileView::slotTreeItemSelected(TQListViewItem* pItem) { KFileTreeViewItem* pTreeItem; |