[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdewebdev/quanta
From:       Andras Mantia <amantia () kde ! org>
Date:       2005-08-21 18:30:51
Message-ID: 1124649051.600074.301.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 451767 by amantia:

Yourself is stored based on the nickname.
Setup a Konsole plugin by default.

 M  +14 -4     data/config/plugins.rc  
 M  +5 -0      project/project.cpp  
 M  +1 -0      project/project.h  
 M  +4 -4      project/teammembersdlg.cpp  


--- branches/KDE/3.5/kdewebdev/quanta/data/config/plugins.rc #451766:451767
@@ -1,3 +1,7 @@
+[General]
+Plugins=KFileReplace, CVS Management (Cervisia),XSLT Debugger, KImageMapEditor, Link Checker, Konsole
+SearchPaths=
+
 [CVS Management (Cervisia)]
 Arguments=
 FileName=kde3/libcervisiapart.la
@@ -9,10 +13,6 @@
 Type=KPart
 Input=3
 
-[General]
-Plugins=KFileReplace, CVS Management (Cervisia),XSLT Debugger, KImageMapEditor, Link Checker
-SearchPaths=
-
 [KFileReplace]
 Arguments=
 FileName=kde3/libkfilereplacepart.la
@@ -54,3 +54,13 @@
 ReadOnly=true
 Standard=false
 Type=KPart
+
+[Konsole]
+FileName=kde3/libkonsolepart.la
+Icon=konsole
+Input=1
+Location=
+OutputWindow=Separate Toolview
+ReadOnly=true
+Standard=false
+Type=KPart
--- branches/KDE/3.5/kdewebdev/quanta/project/project.cpp #451766:451767
@@ -1110,6 +1110,11 @@
     return 0L;
 }
 
+QString Project::yourself()
+{
+  return d->m_yourself;
+}
+
 TeamMember Project::teamLeader()
 {
   return d->m_teamLeader;
--- branches/KDE/3.5/kdewebdev/quanta/project/project.h #451766:451767
@@ -108,6 +108,7 @@
   KURL templateURL();
   KURL toolbarURL();
   EventActions* events();
+  QString yourself();
   TeamMember teamLeader();
   TeamMember subprojectLeader(const QString &name);
   TeamMember taskLeader(const QString &name);
--- branches/KDE/3.5/kdewebdev/quanta/project/teammembersdlg.cpp #451766:451767
@@ -214,8 +214,8 @@
 {
   QListViewItem *item =membersListView->currentItem();
   if (!item) return; 
-  yourselfLabel->setText(item->text(0) + " <" + item->text(1) + ">");
-  m_yourself = item->text(0);
+  yourselfLabel->setText(item->text(NAME_COL) + " <" + item->text(EMAIL_COL) + ">");
+  m_yourself = item->text(NICKNAME_COL);
 }
 
 void TeamMembersDlg::setYourself(const QString &name)
@@ -224,9 +224,9 @@
   QListViewItemIterator it(membersListView);
   while ( it.current() )
   {
-    if (it.current()->text(0) == name)
+    if (it.current()->text(NICKNAME_COL) == name)
     {
-      yourselfLabel->setText(name + " <" + it.current()->text(1) + ">");     
+      yourselfLabel->setText(it.current()->text(NAME_COL)+ " <" + it.current()->text(EMAIL_COL) + ">");
       break;
     }
     ++it;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic