summaryrefslogtreecommitdiffstats
path: root/src/openprojectdlg.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/openprojectdlg.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/openprojectdlg.cpp')
-rw-r--r--src/openprojectdlg.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/openprojectdlg.cpp b/src/openprojectdlg.cpp
index 722fde6..c6d510f 100644
--- a/src/openprojectdlg.cpp
+++ b/src/openprojectdlg.cpp
@@ -25,9 +25,9 @@
*
***************************************************************************/
-#include <qpushbutton.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
+#include <ntqpushbutton.h>
+#include <ntqlineedit.h>
+#include <ntqlistbox.h>
#include <kurlrequester.h>
#include "openprojectdlg.h"
#include "kscopeconfig.h"
@@ -37,7 +37,7 @@
* @param pParent The parent widget
* @param szName The widget's name
*/
-OpenProjectDlg::OpenProjectDlg(QWidget* pParent, const char* szName) :
+OpenProjectDlg::OpenProjectDlg(TQWidget* pParent, const char* szName) :
OpenProjectLayout(pParent, szName)
{
loadRecent();
@@ -54,7 +54,7 @@ OpenProjectDlg::~OpenProjectDlg()
/**
* @return The selected project path
*/
-QString OpenProjectDlg::getPath() const
+TQString OpenProjectDlg::getPath() const
{
return m_pProjPathRequester->url();
}
@@ -64,9 +64,9 @@ QString OpenProjectDlg::getPath() const
* the cscope.proj file.
* @param sProjPath The full path of the selected cscope.proj file
*/
-void OpenProjectDlg::slotProjectSelected(const QString& sProjPath)
+void OpenProjectDlg::slotProjectSelected(const TQString& sProjPath)
{
- QFileInfo fi(sProjPath);
+ TQFileInfo fi(sProjPath);
m_pProjPathRequester->setURL(fi.dirPath(true));
}
@@ -76,7 +76,7 @@ void OpenProjectDlg::slotProjectSelected(const QString& sProjPath)
*/
void OpenProjectDlg::slotRemoveRecent()
{
- QListBoxItem* pItem;
+ TQListBoxItem* pItem;
// Remove the selected item, if any
pItem = m_pRecentList->selectedItem();
@@ -93,7 +93,7 @@ void OpenProjectDlg::slotRemoveRecent()
* list box.
* @param pItem The selected project item
*/
-void OpenProjectDlg::slotSelectRecent(QListBoxItem* pItem)
+void OpenProjectDlg::slotSelectRecent(TQListBoxItem* pItem)
{
if (pItem != NULL)
m_pProjPathRequester->setURL(pItem->text());
@@ -106,7 +106,7 @@ void OpenProjectDlg::slotSelectRecent(QListBoxItem* pItem)
* projects list box.
* @param pItem The selected project item
*/
-void OpenProjectDlg::slotOpenRecent(QListBoxItem* pItem)
+void OpenProjectDlg::slotOpenRecent(TQListBoxItem* pItem)
{
if (pItem != NULL) {
m_pProjPathRequester->setURL(pItem->text());
@@ -120,8 +120,8 @@ void OpenProjectDlg::slotOpenRecent(QListBoxItem* pItem)
*/
void OpenProjectDlg::loadRecent()
{
- const QStringList& slProjects = Config().getRecentProjects();
- QStringList::const_iterator itr;
+ const TQStringList& slProjects = Config().getRecentProjects();
+ TQStringList::const_iterator itr;
// Create a list item for each project in the list
for (itr = slProjects.begin(); itr != slProjects.end(); ++itr)