~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/misc/rkobjectlistview.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:
2
2
                          rkobjectlistview  -  description
3
3
                             -------------------
4
4
    begin                : Wed Sep 1 2004
5
 
    copyright            : (C) 2004, 2006, 2007 by Thomas Friedrichsmeier
 
5
    copyright            : (C) 2004, 2006, 2007, 2010 by Thomas Friedrichsmeier
6
6
    email                : tfry@users.sourceforge.net
7
7
 ***************************************************************************/
8
8
 
62
62
        }
63
63
}
64
64
 
 
65
void RKObjectListView::setRootObject (RObject *root) {
 
66
        RK_TRACE (APP);
 
67
 
 
68
        if (!root) return;
 
69
        QModelIndex index = settings->mapFromSource (RKGlobals::tracker ()->indexFor (root));
 
70
        if (index.isValid ()) {
 
71
                setRootIndex (index);
 
72
                resizeColumnToContents (0);
 
73
        } else {
 
74
                RK_ASSERT (false);
 
75
        }
 
76
}
 
77
 
65
78
RObject* RKObjectListView::objectAtIndex (const QModelIndex& index) const {
66
79
        RK_TRACE (APP);
67
80
 
115
128
 
116
129
        QModelIndex genv = settings->mapFromSource (RKGlobals::tracker ()->indexFor (RObjectList::getGlobalEnv ()));
117
130
        QModelIndex olist = settings->mapFromSource (RKGlobals::tracker ()->indexFor (RObjectList::getObjectList ()));
118
 
        setExpanded (olist, true);
 
131
        setRootIndex (olist);
119
132
        setExpanded (genv, true);
120
133
        setMinimumHeight (rowHeight (genv) * 5);
121
134
        resetWidths ();