summaryrefslogtreecommitdiffstats
path: root/quanta/project/membereditdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/project/membereditdlg.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/membereditdlg.cpp')
-rw-r--r--quanta/project/membereditdlg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/quanta/project/membereditdlg.cpp b/quanta/project/membereditdlg.cpp
index 6e47d044..1b27d354 100644
--- a/quanta/project/membereditdlg.cpp
+++ b/quanta/project/membereditdlg.cpp
@@ -14,7 +14,7 @@
* *
***************************************************************************/
//qt includes
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
//kde includes
#include <kcombobox.h>
@@ -32,28 +32,28 @@
#include "subprojecteditdlgs.h"
#include "project.h"
-QString simpleMemberStr = I18N_NOOP("Simple Member");
-QString taskLeaderStr = I18N_NOOP("Task Leader");
-QString teamLeaderStr = I18N_NOOP("Team Leader");
-QString subprojectLeaderStr = I18N_NOOP("Subproject Leader");
+TQString simpleMemberStr = I18N_NOOP("Simple Member");
+TQString taskLeaderStr = I18N_NOOP("Task Leader");
+TQString teamLeaderStr = I18N_NOOP("Team Leader");
+TQString subprojectLeaderStr = I18N_NOOP("Subproject Leader");
-MemberEditDlg::MemberEditDlg(QWidget *parent, const char *name)
+MemberEditDlg::MemberEditDlg(TQWidget *parent, const char *name)
: MemberEditDlgS(parent, name)
{
- QValueList<SubProject> *subprojects = Project::ref()->subprojects();
- for (QValueList<SubProject>::ConstIterator it = subprojects->constBegin(); it != subprojects->constEnd(); ++it)
+ TQValueList<SubProject> *subprojects = Project::ref()->subprojects();
+ for (TQValueList<SubProject>::ConstIterator it = subprojects->constBegin(); it != subprojects->constEnd(); ++it)
subprojectCombo->insertItem((*it).name);
subprojectCombo->setEnabled(false);
editSubprojectsButton->setEnabled(false);
- QMap<QString, TeamMember> members = Project::ref()->allMembers();
- QStringList items;
- for (QMap<QString, TeamMember>::ConstIterator it = members.constBegin(); it != members.constEnd(); ++it)
+ TQMap<TQString, TeamMember> members = Project::ref()->allMembers();
+ TQStringList items;
+ for (TQMap<TQString, TeamMember>::ConstIterator it = members.constBegin(); it != members.constEnd(); ++it)
{
nameCombo->insertItem(it.key());
}
- nameCombo->insertItem(QString::null, 0);
+ nameCombo->insertItem(TQString::null, 0);
roleCombo->insertItem(i18n(teamLeaderStr.utf8()));
roleCombo->insertItem(i18n(subprojectLeaderStr.utf8()));
@@ -67,7 +67,7 @@ MemberEditDlg::~MemberEditDlg()
{
}
-void MemberEditDlg::slotRoleSelected(const QString &roleName)
+void MemberEditDlg::slotRoleSelected(const TQString &roleName)
{
if (roleName != i18n(subprojectLeaderStr.utf8()))
{
@@ -85,7 +85,7 @@ void MemberEditDlg::slotEditSubprojects()
KDialogBase editDlg(this, "edit_subprojects", true, i18n("Edit Subprojects"), KDialogBase::Ok | KDialogBase::Cancel);
SubprojectEditDlgS subprojectDlg(&editDlg);
editDlg.setMainWidget(&subprojectDlg);
- QValueList<SubProject> *subprojects = Project::ref()->subprojects();
+ TQValueList<SubProject> *subprojects = Project::ref()->subprojects();
int idx = 0;
SubProject subProject;
for (uint i = 0; i < subprojects->count(); i++)
@@ -103,7 +103,7 @@ void MemberEditDlg::slotEditSubprojects()
subprojectDlg.createNew->setChecked(true);
if (editDlg.exec())
{
- QString oldName = subProject.name;
+ TQString oldName = subProject.name;
subProject.name = subprojectDlg.nameEdit->text();
subProject.location = subprojectDlg.locationEdit->text();
if (subprojectDlg.createNew->isChecked() && (subProject.name != oldName))
@@ -121,15 +121,15 @@ void MemberEditDlg::slotEditSubprojects()
void MemberEditDlg::slotMemberSelected()
{
- QString name = nameCombo->currentText();
- QMap<QString, TeamMember> members = Project::ref()->allMembers();
+ TQString name = nameCombo->currentText();
+ TQMap<TQString, TeamMember> members = Project::ref()->allMembers();
if (members.contains(name))
{
emailEdit->setText(members[name].email);
}
}
-void MemberEditDlg::selectMember(const QString &name)
+void MemberEditDlg::selectMember(const TQString &name)
{
bool found = false;
for (int i = 0; i < nameCombo->count(); i++)
@@ -150,9 +150,9 @@ void MemberEditDlg::selectMember(const QString &name)
void MemberEditDlg::slotSelectFromAddrBook()
{
- QMap<QString, QString> uidMap;
- QString name;
- QStringList result;
+ TQMap<TQString, TQString> uidMap;
+ TQString name;
+ TQStringList result;
KABC::AddressBook *addressBook = KABC::StdAddressBook::self();
KABC::AddressBook::ConstIterator it;
KABC::AddressBook::ConstIterator end = addressBook->end();