~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/windows/rkworkplace.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2010-10-04 14:30:00 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101004143000-qey73molmxxwy4w6
Tags: 0.5.4-1
* new upstream release
* bump standards version to 3.9.1 (no changes needed)
* no more need to remove svncopy.sh-script in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
485
485
QString RKWorkplace::makeWorkplaceDescription (const QString &sep, bool quote) {
486
486
        RK_TRACE (APP);
487
487
 
 
488
        // window order in the workplace view may have changed with respect to our list. Thus we first generate a properly sorted list
 
489
        RKWorkplaceObjectList list = getObjectList (RKMDIWindow::DocumentWindow, RKMDIWindow::Detached);
 
490
        for (int i=0; i < wview->count (); ++i) {
 
491
                list.append (static_cast<RKMDIWindow*> (wview->widget (i)));
 
492
        }
 
493
        
488
494
        QString workplace_description;
489
495
        bool first = true;
490
 
        for (RKWorkplaceObjectList::const_iterator it = windows.constBegin (); it != windows.constEnd (); ++it) {
491
 
                if ((*it)->isToolWindow ()) continue;
492
 
 
 
496
        foreach (RKMDIWindow *win, list) {
493
497
                if (first) first = false;
494
498
                else workplace_description.append (sep);
495
499
 
496
 
                if (!quote) workplace_description.append ((*it)->getDescription ());
497
 
                else workplace_description.append (RObject::rQuote ((*it)->getDescription ()));
 
500
                if (!quote) workplace_description.append (win->getDescription ());
 
501
                else workplace_description.append (RObject::rQuote (win->getDescription ()));
498
502
        }
499
503
        return workplace_description;
500
504
}