summaryrefslogtreecommitdiffstats
path: root/src/newprojectdlg.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-10-08 00:13:25 +0200
committerSlávek Banko <[email protected]>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/newprojectdlg.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/newprojectdlg.cpp')
-rw-r--r--src/newprojectdlg.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/newprojectdlg.cpp b/src/newprojectdlg.cpp
index ec8fbca..cc1e73e 100644
--- a/src/newprojectdlg.cpp
+++ b/src/newprojectdlg.cpp
@@ -25,11 +25,11 @@
*
***************************************************************************/
-#include <qregexp.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qtextedit.h>
+#include <ntqregexp.h>
+#include <ntqpushbutton.h>
+#include <ntqspinbox.h>
+#include <ntqlabel.h>
+#include <ntqtextedit.h>
#include <kurlrequester.h>
#include <klineedit.h>
#include <kmessagebox.h>
@@ -43,7 +43,7 @@
* @param pParent The parent widget
* @param szName The widget's name
*/
-NewProjectDlg::NewProjectDlg(bool bNewProj, QWidget* pParent,
+NewProjectDlg::NewProjectDlg(bool bNewProj, TQWidget* pParent,
const char* szName) :
NewProjectLayout(pParent, szName),
m_bNewProj(bNewProj)
@@ -98,10 +98,10 @@ NewProjectDlg::~NewProjectDlg()
* @param sPath The project's path
* @param opt Project parameters configurable in this dialogue
*/
-void NewProjectDlg::setProperties(const QString& sName, const QString& sPath,
+void NewProjectDlg::setProperties(const TQString& sName, const TQString& sPath,
const ProjectBase::Options& opt)
{
- QStringList::ConstIterator itr;
+ TQStringList::ConstIterator itr;
// Set values for current project
m_pNameEdit->setText(sName);
@@ -143,7 +143,7 @@ void NewProjectDlg::setProperties(const QString& sName, const QString& sPath,
* box.
* @return The name of the new project
*/
-QString NewProjectDlg::getName()
+TQString NewProjectDlg::getName()
{
return m_pNameEdit->text();
}
@@ -155,10 +155,10 @@ QString NewProjectDlg::getName()
* directory, created under it using the project's name.
* @return The full path of the parent directory for the new project
*/
-QString NewProjectDlg::getPath()
+TQString NewProjectDlg::getPath()
{
if (m_pHiddenDirCheck->isChecked())
- return QString(m_pSrcRootRequester->url()) + "/.cscope";
+ return TQString(m_pSrcRootRequester->url()) + "/.cscope";
return m_pPathRequester->url();
}
@@ -203,7 +203,7 @@ void NewProjectDlg::accept()
// Validate the name of a new project
if (m_bNewProj) {
- QRegExp re("[^ \\t\\n]+");
+ TQRegExp re("[^ \\t\\n]+");
if (!re.exactMatch(m_pNameEdit->text())) {
KMessageBox::error(0, i18n("Project names must not contain "
"whitespace."));
@@ -217,14 +217,14 @@ void NewProjectDlg::accept()
m_slTypes.append(m_pTypesList->text(i));
// Clean-up the source root
- QDir dir(m_pSrcRootRequester->url());
+ TQDir dir(m_pSrcRootRequester->url());
if (dir.exists())
m_pSrcRootRequester->setURL(dir.absPath());
else
m_pSrcRootRequester->setURL("/");
// Close the dialog
- QDialog::accept();
+ TQDialog::accept();
}
/**
@@ -233,7 +233,7 @@ void NewProjectDlg::accept()
*/
void NewProjectDlg::slotAddType()
{
- QString sType;
+ TQString sType;
// Try the custom type edit-box first.
sType = m_pTypesEdit->text();
@@ -242,14 +242,14 @@ void NewProjectDlg::slotAddType()
return;
// Validate the type string
- QRegExp reg("[ \\t\\n\\|\\\\\\/]");
+ TQRegExp reg("[ \\t\\n\\|\\\\\\/]");
if (sType.contains(reg)) {
KMessageBox::error(0, i18n("This is not a valid file type!"));
return;
}
// Do not add an existing type.
- if (m_pTypesList->findItem(sType, Qt::CaseSensitive | Qt::ExactMatch) !=
+ if (m_pTypesList->findItem(sType, TQt::CaseSensitive | TQt::ExactMatch) !=
NULL) {
return;
}
@@ -266,7 +266,7 @@ void NewProjectDlg::slotAddType()
void NewProjectDlg::slotRemoveType()
{
int nItem;
- QString sType;
+ TQString sType;
// Verify an item is selected
nItem = m_pTypesList->currentItem();
@@ -278,7 +278,7 @@ void NewProjectDlg::slotRemoveType()
m_pTypesList->removeItem(nItem);
// Add to the list of available types.
- if (m_pAvailTypesList->findItem(sType, Qt::CaseSensitive | Qt::ExactMatch)
+ if (m_pAvailTypesList->findItem(sType, TQt::CaseSensitive | TQt::ExactMatch)
== NULL) {
m_pAvailTypesList->insertItem(sType);
}
@@ -292,7 +292,7 @@ void NewProjectDlg::slotRemoveType()
* available types.
* @param sType The newly selected type
*/
-void NewProjectDlg::slotAvailTypesChanged(const QString& sType)
+void NewProjectDlg::slotAvailTypesChanged(const TQString& sType)
{
m_pTypesEdit->setText(sType);
}
@@ -302,7 +302,7 @@ void NewProjectDlg::slotAvailTypesChanged(const QString& sType)
* @param pParent The parent widget
* @param szName The widget's name
*/
-AutoCompletionDlg::AutoCompletionDlg(QWidget* pParent,
+AutoCompletionDlg::AutoCompletionDlg(TQWidget* pParent,
const char* szName ) :
AutoCompletionLayout(pParent, szName)
{
@@ -331,7 +331,7 @@ int AutoCompletionDlg::exec()
m_pMaxEntriesSpin->setValue(m_nMaxEntries);
// Show the dialogue
- return QDialog::exec();
+ return TQDialog::exec();
}
/**
@@ -347,7 +347,7 @@ void AutoCompletionDlg::accept()
m_nMaxEntries = m_pMaxEntriesSpin->value();
// Close the dialogue, indicating acceptance
- QDialog::accept();
+ TQDialog::accept();
}