LogBookDialog.cpp   LogBookDialog.cpp 
skipping to change at line 69 skipping to change at line 69
#pragma mark StelModule Methods #pragma mark StelModule Methods
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
void LogBookDialog::languageChanged() void LogBookDialog::languageChanged()
{ {
if (dialog) { if (dialog) {
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
} }
void LogBookDialog::setStelStyle(const StelStyle& style)
{
if(dialog) {
dialog->setStyleSheet(style.qtStyleSheet);
}
}
void LogBookDialog::styleChanged() void LogBookDialog::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 474 skipping to change at line 467
#pragma mark Protected Methods #pragma mark Protected Methods
#endif #endif
/* ********************************************************************* */ /* ********************************************************************* */
void LogBookDialog::createDialogContent() void LogBookDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
// All of the table models // All of the table models
setupModels(); setupModels();
//Initialize the style
setStelStyle(*StelApp::getInstance().getCurrentStelStyle());
setupConnections(); setupConnections();
ui->sessionsListView->setCurrentIndex(fieldModels[SESSIONS]->index(0 , 1)); ui->sessionsListView->setCurrentIndex(fieldModels[SESSIONS]->index(0 , 1));
} }
QSqlRecord LogBookDialog::currentObservationRecord() QSqlRecord LogBookDialog::currentObservationRecord()
{ {
if (lastObservationRowNumberSelected == -1) { if (lastObservationRowNumberSelected == -1) {
return QSqlRecord(); return QSqlRecord();
} else { } else {
return tableModels[OBSERVATIONS]->record(lastObservationRowN umberSelected); return tableModels[OBSERVATIONS]->record(lastObservationRowN umberSelected);
 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/