~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VirtualBox/src/extensions/QITreeWidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-03 18:43:49 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20110703184349-st29q1gm3a80nqmc
Tags: 4.0.10-dfsg-1
* New upstream release.
  - Fixes VT-x detection on Linux 3.0 hosts. (LP: #799253)
* Don't disable the hardware performance counter in the init script, not
  needed anymore since VirtualBox 4.0.0.
* Add 31-multiarch-dri-path.patch to fix 3d guest acceleration with the
  multiarched mesa package.
* Use new Provides scheme for xorg video and input drivers. (Closes: #631612)
* Add 32-disable-guest-version-check.patch to disable notifications about
  outdated guest additions.
* Link against the static gsoap++ library to fix FTBFS. (Closes: #632368)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
{
30
30
}
31
31
 
 
32
void QITreeWidget::setSizeHintForItems(const QSize &sizeHint)
 
33
{
 
34
    for (int i = 0; i < topLevelItemCount(); ++i)
 
35
        topLevelItem(i)->setSizeHint(0, sizeHint);
 
36
}
 
37
 
32
38
void QITreeWidget::paintEvent (QPaintEvent *aEvent)
33
39
{
34
40
    /* Opens Items Painter */
59
65
    emit resized (aEvent->size(), aEvent->oldSize());
60
66
}
61
67
 
62
 
void QITreeWidget::addTopBottomMarginToItems (int aMargin)
63
 
{
64
 
    for (int i = 0; i < topLevelItemCount(); ++ i)
65
 
    {
66
 
        QTreeWidgetItem *item = topLevelItem (i);
67
 
        QSize s = item->sizeHint (0);
68
 
        item->setSizeHint (0, QSize (s.width(), s.height() + 2 * aMargin));
69
 
    }
70
 
}
71