Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    6464#include <QtGui/QButtonGroup>
    6565#include <QtGui/QMenu>
     66
    6667#include <QtGui/QStandardItemModel>
    6768#include <QtGui/QComboBox>
     
    713714    m_core(core),
    714715    m_model(new ConnectionModel(this)),
     716
    715717    m_handling_selection_change(false)
    716718{
    717     m_view->setModel(m_model);
     719    m_proxy_model->setSourceModel(m_model);
     720    m_view->setModel(m_proxy_model);
     721    m_view->setSortingEnabled(true);
    718722    m_view->setItemDelegate(new ConnectionDelegate(this));
    719723    m_view->setEditTriggers(QAbstractItemView::DoubleClicked
     
    721725    m_view->setRootIsDecorated(false);
    722726    m_view->setTextElideMode (Qt::ElideMiddle);
    723     connect(m_view, SIGNAL(activated(QModelIndex)), this, SLOT(updateUi()));
     727    connect(m_viewQModelIndex)), this, SLOT(updateUi()));
    724728    connect(m_view->header(), SIGNAL(sectionDoubleClicked(int)), m_view, SLOT(resizeColumnToContents(int)));
    725729
     
    791795        return;
    792796
    793     QModelIndex index = m_model->connectionToIndex(con);
     797    QModelIndex index = m_);
    794798    if (index == m_view->currentIndex())
    795799        return;
     
    809813        return;
    810814
    811     Connection *con = m_model->indexToConnection(index);
     815    Connection *con = m_model->indexToConnection();
    812816    if (m_editor->selected(con))
    813817        return;
Note: See TracChangeset for help on using the changeset viewer.