summaryrefslogtreecommitdiffstats
path: root/quanta/project/teammembersdlg.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/teammembersdlg.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/teammembersdlg.cpp')
-rw-r--r--quanta/project/teammembersdlg.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/quanta/project/teammembersdlg.cpp b/quanta/project/teammembersdlg.cpp
index bd159186..ea3e415c 100644
--- a/quanta/project/teammembersdlg.cpp
+++ b/quanta/project/teammembersdlg.cpp
@@ -14,7 +14,7 @@
* *
***************************************************************************/
//qt includes
-#include <qlabel.h>
+#include <tqlabel.h>
//kde includes
#include <kcombobox.h>
@@ -37,12 +37,12 @@
#define SUBPROJECT_COL 5
-extern QString simpleMemberStr;
-extern QString taskLeaderStr;
-extern QString teamLeaderStr;
-extern QString subprojectLeaderStr;
+extern TQString simpleMemberStr;
+extern TQString taskLeaderStr;
+extern TQString teamLeaderStr;
+extern TQString subprojectLeaderStr;
-TeamMembersDlg::TeamMembersDlg(QWidget *parent, const char *name)
+TeamMembersDlg::TeamMembersDlg(TQWidget *parent, const char *name)
: TeamMembersDlgS(parent, name)
{
m_yourself = "";
@@ -63,12 +63,12 @@ void TeamMembersDlg::slotAddMember()
result = addDlg.exec();
if (result)
{
- QString name = memberDlg.nameCombo->currentText();
- QString role = memberDlg.roleCombo->currentText();
- QString task = memberDlg.taskEdit->text();
- QString subProject = memberDlg.subprojectCombo->currentText();
- QString nickName = memberDlg.nicknameEdit->text();
- QString email = memberDlg.emailEdit->text();
+ TQString name = memberDlg.nameCombo->currentText();
+ TQString role = memberDlg.roleCombo->currentText();
+ TQString task = memberDlg.taskEdit->text();
+ TQString subProject = memberDlg.subprojectCombo->currentText();
+ TQString nickName = memberDlg.nicknameEdit->text();
+ TQString email = memberDlg.emailEdit->text();
if (name.isEmpty())
{
KMessageBox::error(this, i18n("The member name cannot be empty."));
@@ -84,7 +84,7 @@ void TeamMembersDlg::slotAddMember()
addDlg.show();
} else
{
- QListViewItem *item = new QListViewItem(membersListView, name, nickName, email, role, task);
+ TQListViewItem *item = new TQListViewItem(membersListView, name, nickName, email, role, task);
if (memberDlg.subprojectCombo->isEnabled())
item->setText(SUBPROJECT_COL, subProject);
result = false;
@@ -95,14 +95,14 @@ void TeamMembersDlg::slotAddMember()
void TeamMembersDlg::slotEditMember()
{
- QListViewItem *item =membersListView->currentItem();
+ TQListViewItem *item =membersListView->currentItem();
if (!item) return;
KDialogBase editDlg(this, "edit_member", true, i18n("Edit Member"), KDialogBase::Ok | KDialogBase::Cancel);
MemberEditDlg memberDlg(&editDlg);
memberDlg.selectMember(item->text(NAME_COL));
memberDlg.nicknameEdit->setText(item->text(NICKNAME_COL));
memberDlg.emailEdit->setText(item->text(EMAIL_COL));
- QString role = item->text(ROLE_COL);
+ TQString role = item->text(ROLE_COL);
for (int i = 0; i < memberDlg.roleCombo->count(); i++)
{
if (memberDlg.roleCombo->text(i) == role)
@@ -115,8 +115,8 @@ void TeamMembersDlg::slotEditMember()
memberDlg.taskEdit->setText(item->text(TASK_COL));
int idx = 0;
int subprojectIdx = 0;
- 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)
{
if (item->text(SUBPROJECT_COL) == (*it).name)
{
@@ -133,12 +133,12 @@ void TeamMembersDlg::slotEditMember()
result = editDlg.exec();
if (result)
{
- QString name = memberDlg.nameCombo->currentText();
- QString nickName = memberDlg.nicknameEdit->text();
- QString email = memberDlg.emailEdit->text();
- QString role = memberDlg.roleCombo->currentText();
- QString task = memberDlg.taskEdit->text();
- QString subProject = memberDlg.subprojectCombo->currentText();
+ TQString name = memberDlg.nameCombo->currentText();
+ TQString nickName = memberDlg.nicknameEdit->text();
+ TQString email = memberDlg.emailEdit->text();
+ TQString role = memberDlg.roleCombo->currentText();
+ TQString task = memberDlg.taskEdit->text();
+ TQString subProject = memberDlg.subprojectCombo->currentText();
if (name.isEmpty())
{
KMessageBox::error(this, i18n("The member name cannot be empty."));
@@ -169,11 +169,11 @@ void TeamMembersDlg::slotEditMember()
void TeamMembersDlg::slotDeleteMember()
{
- QListViewItem *item =membersListView->currentItem();
+ TQListViewItem *item =membersListView->currentItem();
if (!item) return;
bool deleteYourself = (item->text(NICKNAME_COL) == m_yourself);
- QListViewItemIterator it(membersListView);
+ TQListViewItemIterator it(membersListView);
while ( it.current() )
{
if (item != it.current() && it.current()->text(NICKNAME_COL) == m_yourself)
@@ -198,11 +198,11 @@ void TeamMembersDlg::slotDeleteMember()
}
}
-bool TeamMembersDlg::checkDuplicates(QListViewItem *item, const QString &name, const QString &nickName, const QString &email, const QString &role, const QString &task, const QString &subProject)
+bool TeamMembersDlg::checkDuplicates(TQListViewItem *item, const TQString &name, const TQString &nickName, const TQString &email, const TQString &role, const TQString &task, const TQString &subProject)
{
- QString s;
- QString nick;
- QListViewItemIterator it(membersListView);
+ TQString s;
+ TQString nick;
+ TQListViewItemIterator it(membersListView);
while ( it.current() )
{
s = it.current()->text(ROLE_COL);
@@ -213,7 +213,7 @@ bool TeamMembersDlg::checkDuplicates(QListViewItem *item, const QString &name, c
(role == i18n(subprojectLeaderStr.utf8()) && it.current()->text(SUBPROJECT_COL) == subProject)
) )
{
- if (KMessageBox::warningYesNo(this, i18n("<qt>The <b>%1</b> role is already assigned to <b>%2</b>. Do you want to reassign it to the current member?</qt>").arg(role).arg(it.current()->text(NAME_COL)), QString::null, i18n("Reassign"), i18n("Do Not Reassign")) == KMessageBox::Yes)
+ if (KMessageBox::warningYesNo(this, i18n("<qt>The <b>%1</b> role is already assigned to <b>%2</b>. Do you want to reassign it to the current member?</qt>").arg(role).arg(it.current()->text(NAME_COL)), TQString::null, i18n("Reassign"), i18n("Do Not Reassign")) == KMessageBox::Yes)
{
it.current()->setText(ROLE_COL, i18n(simpleMemberStr.utf8()));
return true;
@@ -233,13 +233,13 @@ bool TeamMembersDlg::checkDuplicates(QListViewItem *item, const QString &name, c
void TeamMembersDlg::slotSetToYourself()
{
- QListViewItem *item =membersListView->currentItem();
+ TQListViewItem *item =membersListView->currentItem();
if (!item) return;
yourselfLabel->setText(item->text(NAME_COL) + " <" + item->text(EMAIL_COL) + ">");
m_yourself = item->text(NICKNAME_COL);
}
-void TeamMembersDlg::setYourself(const QString &name)
+void TeamMembersDlg::setYourself(const TQString &name)
{
m_yourself = name;
if (name.isEmpty())
@@ -247,7 +247,7 @@ void TeamMembersDlg::setYourself(const QString &name)
yourselfLabel->setText(i18n("Please select your identity from the member list."));
return;
}
- QListViewItemIterator it(membersListView);
+ TQListViewItemIterator it(membersListView);
while ( it.current() )
{
if (it.current()->text(NICKNAME_COL).lower() == name.lower())