MeteorShowerDialog.cpp   MeteorShowerDialog.cpp 
skipping to change at line 93 skipping to change at line 93
} }
// Initialize the dialog widgets and connect the signals/slots // Initialize the dialog widgets and connect the signals/slots
void MeteorShowerDialog::createDialogContent() void MeteorShowerDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
ui->tabs->setCurrentIndex(0); ui->tabs->setCurrentIndex(0);
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
plugin = GETSTELMODULE(MeteorShowers); plugin = GETSTELMODULE(MeteorShowers);
#ifdef Q_OS_WIN
//Kinetic scrolling for tablet pc and pc //Kinetic scrolling for tablet pc and pc
QList<QWidget *> addscroll; QList<QWidget *> addscroll;
addscroll << ui->listEvents << ui->aboutTextBrowser; addscroll << ui->listEvents << ui->aboutTextBrowser;
installKineticScrolling(addscroll); installKineticScrolling(addscroll);
#endif
// Settings tab / updates group // Settings tab / updates group
connect(ui->internetUpdates, SIGNAL(clicked(bool)), this, SLOT(setUp datesEnabled(bool))); connect(ui->internetUpdates, SIGNAL(clicked(bool)), this, SLOT(setUp datesEnabled(bool)));
connect(ui->updateButton, SIGNAL(clicked()), this, SLOT(updateJSON() )); connect(ui->updateButton, SIGNAL(clicked()), this, SLOT(updateJSON() ));
connect(plugin, SIGNAL(updateStateChanged(MeteorShowers::UpdateState )), this, SLOT(updateStateReceiver(MeteorShowers::UpdateState))); connect(plugin, SIGNAL(updateStateChanged(MeteorShowers::UpdateState )), this, SLOT(updateStateReceiver(MeteorShowers::UpdateState)));
connect(plugin, SIGNAL(jsonUpdateComplete(void)), this, SLOT(updateC ompleteReceiver(void))); connect(plugin, SIGNAL(jsonUpdateComplete(void)), this, SLOT(updateC ompleteReceiver(void)));
connect(ui->updateFrequencySpinBox, SIGNAL(valueChanged(int)), this, SLOT(setUpdateValues(int))); connect(ui->updateFrequencySpinBox, SIGNAL(valueChanged(int)), this, SLOT(setUpdateValues(int)));
refreshUpdateValues(); // fetch values for last updated and so on refreshUpdateValues(); // fetch values for last updated and so on
updateTimer = new QTimer(this); updateTimer = new QTimer(this);
connect(updateTimer, SIGNAL(timeout()), this, SLOT(refreshUpdateValu es())); connect(updateTimer, SIGNAL(timeout()), this, SLOT(refreshUpdateValu es()));
updateTimer->start(7000); updateTimer->start(7000);
// Settings tab / event group // Settings tab / event group
connect(ui->searchButton, SIGNAL(clicked()), this, SLOT(checkDates() )); connect(ui->searchButton, SIGNAL(clicked()), this, SLOT(checkDates() ));
refreshRangeDates(); refreshRangeDates();
treeWidget = ui->listEvents; treeWidget = ui->listEvents;
initListEvents(); initListEvents();
connect(treeWidget, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(s electEvent(QModelIndex))); connect(treeWidget, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(s electEvent(QModelIndex)));
connect(treeWidget, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTree WidgetItem*)), this, SLOT(repaintTreeWidget()));
// Settings tab / radiant group // Settings tab / radiant group
ui->displayRadiant->setChecked(plugin->getFlagRadiant()); ui->displayRadiant->setChecked(plugin->getFlagRadiant());
connect(ui->displayRadiant, SIGNAL(clicked(bool)), plugin, SLOT(setF lagRadiant(bool))); connect(ui->displayRadiant, SIGNAL(clicked(bool)), plugin, SLOT(setF lagRadiant(bool)));
ui->activeRadiantsOnly->setChecked(plugin->getFlagActiveRadiant()); ui->activeRadiantsOnly->setChecked(plugin->getFlagActiveRadiant());
connect(ui->activeRadiantsOnly, SIGNAL(clicked(bool)), plugin, SLOT( setFlagActiveRadiant(bool))); connect(ui->activeRadiantsOnly, SIGNAL(clicked(bool)), plugin, SLOT( setFlagActiveRadiant(bool)));
ui->radiantLabels->setChecked(plugin->getFlagLabels()); ui->radiantLabels->setChecked(plugin->getFlagLabels());
connect(ui->radiantLabels, SIGNAL(clicked(bool)), plugin, SLOT(setFl agLabels(bool))); connect(ui->radiantLabels, SIGNAL(clicked(bool)), plugin, SLOT(setFl agLabels(bool)));
ui->fontSizeSpinBox->setValue(plugin->getLabelFontSize()); ui->fontSizeSpinBox->setValue(plugin->getLabelFontSize());
connect(ui->fontSizeSpinBox, SIGNAL(valueChanged(int)), plugin, SLOT (setLabelFontSize(int))); connect(ui->fontSizeSpinBox, SIGNAL(valueChanged(int)), plugin, SLOT (setLabelFontSize(int)));
skipping to change at line 158 skipping to change at line 161
setAboutHtml(); setAboutHtml();
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
if (gui != NULL) if (gui != NULL)
{ {
ui->aboutTextBrowser->document()->setDefaultStyleSheet(QStri ng(gui->getStelStyle().htmlStyleSheet)); ui->aboutTextBrowser->document()->setDefaultStyleSheet(QStri ng(gui->getStelStyle().htmlStyleSheet));
} }
updateGuiFromSettings(); updateGuiFromSettings();
} }
void MeteorShowerDialog::repaintTreeWidget()
{
// Enable force repaint listEvents to avoiding artifacts
// Seems bug in Qt5. Details: https://bugs.launchpad.net/stellarium/
+bug/1350669
treeWidget->repaint();
}
void MeteorShowerDialog::initListEvents(void) void MeteorShowerDialog::initListEvents(void)
{ {
treeWidget->clear(); treeWidget->clear();
treeWidget->setColumnCount(ColumnCount); treeWidget->setColumnCount(ColumnCount);
setHeaderNames(); setHeaderNames();
treeWidget->header()->setSectionsMovable(false); treeWidget->header()->setSectionsMovable(false);
treeWidget->header()->setStretchLastSection(true); treeWidget->header()->setStretchLastSection(true);
} }
void MeteorShowerDialog::setHeaderNames(void) void MeteorShowerDialog::setHeaderNames(void)
 End of changes. 4 change blocks. 
0 lines changed or deleted 11 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/