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

List:       kde-commits
Subject:    kdevelop/parts/fileview
From:       Alexander Dymo <cloudtemple () mksat ! net>
Date:       2003-11-16 20:50:42
[Download RAW message or body]

CVS commit by dymo: 

ensure that we are showing relative path to the file in file groups view, strip \
projectDirectory() when necessary


  M +4 -1      filegroupswidget.cpp   1.21


--- kdevelop/parts/fileview/filegroupswidget.cpp  #1.20:1.21
@@ -260,5 +260,8 @@ void FileGroupsWidget::addFile(const QSt
         if (fvgitem->matches(fileName))
         {
-            (void) new FileGroupsFileItem(fvgitem, fileName);
+            QString f = fileName;
+            if (fileName.contains(m_part->project()->projectDirectory()))
+                f = fileName.mid(m_part->project()->projectDirectory().length()+1);
+            (void) new FileGroupsFileItem(fvgitem, f);
             fvgitem->sortChildItems(0, true);
             break;


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

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