Пример #1
0
void DeviceExplorerView::setModel(DeviceExplorerFilterProxyModel* model)
{
  QTreeView::setModel(static_cast<QAbstractItemModel*>(model));
  m_hasProxy = true;

  if (model)
  {
    setInitialColumnsSizes();
    //        restoreSettings();
    initActions(); // after restoreSettings() to have actions correctly
    // initialized
  }
}
Пример #2
0
void DeviceExplorerView::setModel(QAbstractItemModel* model)
{
  m_hasProxy = false;
  QTreeView::setModel(model);
  // TODO review the save/restore system
  if (model)
  {
    setInitialColumnsSizes();
    //        restoreSettings();
    initActions(); // after restoreSettings() to have actions correctly
    // initialized
  }
}
Пример #3
0
void
DeviceExplorerView::setModel(DeviceExplorerFilterProxyModel* model)
{
    QTreeView::setModel(static_cast<QAbstractItemModel*>(model));
    m_hasProxy = true;
    #ifdef MODEL_TEST
    qDebug() << "*** ADD MODEL_TEST\n";
    (void) new ModelTest(model->sourceModel(), this);
    #endif

    if(model)
    {
        setInitialColumnsSizes();
        restoreSettings();
        initActions(); //after restoreSettings() to have actions correctly initialized
    }
}
Пример #4
0
void
DeviceExplorerView::setModel(QAbstractItemModel* model)
{
    QTreeView::setModel(model);
    m_hasProxy = false;
    #ifdef MODEL_TEST
    qDebug() << "*** ADD MODEL_TEST\n";
    (void) new ModelTest(model, this);
    #endif

    if(model)
    {
        setInitialColumnsSizes();
        restoreSettings();
        initActions(); //after restoreSettings() to have actions correctly initialized
    }
}