~ubuntu-branches/ubuntu/karmic/plasma-widget-network-manager/karmic

« back to all changes in this revision

Viewing changes to libs/ui/apitemview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-02-24 11:55:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090224115530-t9l7etoc91iewga9
Tags: 0.0+svn930811-0ubuntu1
* New SVN snapshot
* Essentially bug fixes, including memory leak

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        return;
67
67
    }
68
68
    m_model = model;
69
 
    layoutItems();
70
69
}
71
70
 
72
71
ApItemModel* ApItemView::model()
130
129
    QPoint point = QPoint(0, geometry().height()/2-computer.actualSize(QSize(computerHeight,computerHeight)).height()/2);
131
130
    computer.paint(&painter, QRect(point,computer.actualSize(QSize(computerHeight,computerHeight))));
132
131
 
 
132
    // Re-sort items
 
133
    layoutItems();
 
134
 
133
135
    //draw AP Items
134
136
    int numRows = m_model->rowCount();
135
137
    QStyleOptionViewItem options = m_options;
206
208
void ApItemView::paintBackground()
207
209
{
208
210
    if (m_background != 0) {
209
 
        return;
 
211
        delete m_background;
210
212
    }
211
213
    m_background = new QPixmap(geometry().size());
212
214
    m_background->fill(Qt::white);