ShortcutsDialog.cpp   ShortcutsDialog.cpp 
skipping to change at line 292 skipping to change at line 292
resetModel(); resetModel();
filterModel->setSourceModel(mainModel); filterModel->setSourceModel(mainModel);
filterModel->setFilterCaseSensitivity(Qt::CaseInsensitive); filterModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
filterModel->setSortCaseSensitivity(Qt::CaseInsensitive); filterModel->setSortCaseSensitivity(Qt::CaseInsensitive);
filterModel->setDynamicSortFilter(true); filterModel->setDynamicSortFilter(true);
filterModel->setSortLocaleAware(true); filterModel->setSortLocaleAware(true);
ui->shortcutsTreeView->setModel(filterModel); ui->shortcutsTreeView->setModel(filterModel);
ui->shortcutsTreeView->header()->setSectionsMovable(false); ui->shortcutsTreeView->header()->setSectionsMovable(false);
ui->shortcutsTreeView->sortByColumn(0, Qt::AscendingOrder); ui->shortcutsTreeView->sortByColumn(0, Qt::AscendingOrder);
//Kinetic scrolling for tablet pc and pc
QList<QWidget *> addscroll;
addscroll << ui->shortcutsTreeView;
installKineticScrolling(addscroll);
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->shortcutsTreeView->selectionModel(), connect(ui->shortcutsTreeView->selectionModel(),
SIGNAL(currentChanged(QModelIndex,QModelIndex)), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, this,
SLOT(initEditors())); SLOT(initEditors()));
connect(ui->shortcutsTreeView, connect(ui->shortcutsTreeView,
SIGNAL(activated(QModelIndex)), SIGNAL(activated(QModelIndex)),
this, this,
SLOT(switchToEditors(QModelIndex))); SLOT(switchToEditors(QModelIndex)));
connect(ui->lineEditSearch, SIGNAL(textChanged(QString)), connect(ui->lineEditSearch, SIGNAL(textChanged(QString)),
skipping to change at line 362 skipping to change at line 367
groupItem->setFlags(Qt::ItemIsEnabled); groupItem->setFlags(Qt::ItemIsEnabled);
// setup displayed text // setup displayed text
groupItem->setText(q_(group)); groupItem->setText(q_(group));
// store id // store id
groupItem->setData(group, Qt::UserRole); groupItem->setData(group, Qt::UserRole);
groupItem->setColumnCount(3); groupItem->setColumnCount(3);
// setup bold font for group lines // setup bold font for group lines
QFont rootFont = groupItem->font(); QFont rootFont = groupItem->font();
rootFont.setBold(true); rootFont.setBold(true);
rootFont.setPixelSize(14); // Font size is 14
rootFont.setPixelSize(StelApp::getInstance().getBaseFontSize()+1);
groupItem->setFont(rootFont); groupItem->setFont(rootFont);
if (isNew) if (isNew)
mainModel->appendRow(groupItem); mainModel->appendRow(groupItem);
QModelIndex index = filterModel->mapFromSource(groupItem->index()); QModelIndex index = filterModel->mapFromSource(groupItem->index());
ui->shortcutsTreeView->expand(index); ui->shortcutsTreeView->expand(index);
ui->shortcutsTreeView->setFirstColumnSpanned(index.row(), ui->shortcutsTreeView->setFirstColumnSpanned(index.row(),
QModelIndex(), QModelIndex(),
true); true);
ui->shortcutsTreeView->setRowHidden(index.row(), QModelIndex(), fals e); ui->shortcutsTreeView->setRowHidden(index.row(), QModelIndex(), fals e);
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/