TargetsDialog.cpp   TargetsDialog.cpp 
skipping to change at line 69 skipping to change at line 69
#pragma mark StelModule Methods #pragma mark StelModule Methods
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
void TargetsDialog::languageChanged() void TargetsDialog::languageChanged()
{ {
if (dialog) { if (dialog) {
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
} }
void TargetsDialog::setStelStyle(const StelStyle& style)
{
if(dialog) {
dialog->setStyleSheet(style.qtStyleSheet);
}
}
void TargetsDialog::styleChanged() void TargetsDialog::styleChanged()
{ {
// Nothing for now // Nothing for now
} }
/* ********************************************************************* */ /* ********************************************************************* */
#if 0 #if 0
#pragma mark - #pragma mark -
#pragma mark Slot Methods #pragma mark Slot Methods
#endif #endif
skipping to change at line 353 skipping to change at line 346
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
void TargetsDialog::createDialogContent() void TargetsDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
ui->targetsListView->setModel(tableModel); ui->targetsListView->setModel(tableModel);
ui->targetsListView->setModelColumn(1); ui->targetsListView->setModelColumn(1);
ui->typeComboBox->setModel(typeTableModel); ui->typeComboBox->setModel(typeTableModel);
ui->typeComboBox->setModelColumn(typeTableModel->fieldIndex("type")) ; ui->typeComboBox->setModelColumn(typeTableModel->fieldIndex("type")) ;
//Initialize the style
setStelStyle(*StelApp::getInstance().getCurrentStelStyle());
setupConnections(); setupConnections();
ui->targetsListView->setCurrentIndex(tableModel->index(0, 1)); ui->targetsListView->setCurrentIndex(tableModel->index(0, 1));
} }
QSqlRecord TargetsDialog::currentRecord() QSqlRecord TargetsDialog::currentRecord()
{ {
if (lastRowNumberSelected == -1) { if (lastRowNumberSelected == -1) {
return QSqlRecord(); return QSqlRecord();
} else { } else {
return tableModel->record(lastRowNumberSelected); return tableModel->record(lastRowNumberSelected);
 End of changes. 2 change blocks. 
10 lines changed or deleted 0 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/