MSSearchDialog.cpp   MSSearchDialog.cpp 
skipping to change at line 30 skipping to change at line 30
#include <QMessageBox> #include <QMessageBox>
#include "MSSearchDialog.hpp" #include "MSSearchDialog.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelMovementMgr.hpp" #include "StelMovementMgr.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include "ui_MSSearchDialog.h" #include "ui_MSSearchDialog.h"
MSSearchDialog::MSSearchDialog(MeteorShowersMgr* mgr) MSSearchDialog::MSSearchDialog(MeteorShowersMgr* mgr)
: m_mgr(mgr) : StelDialog("MeteorShowersSearch")
, m_mgr(mgr)
, m_ui(new Ui_MSSearchDialog) , m_ui(new Ui_MSSearchDialog)
{ {}
dialogName = "MeteorShowersSearch";
}
MSSearchDialog::~MSSearchDialog() MSSearchDialog::~MSSearchDialog()
{ {
delete m_ui; delete m_ui;
} }
void MSSearchDialog::retranslate() void MSSearchDialog::retranslate()
{ {
if (dialog) if (dialog)
{ {
skipping to change at line 79 skipping to change at line 78
connect(m_ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMo vedTo(QPoint))); connect(m_ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMo vedTo(QPoint)));
connect(m_ui->searchButton, SIGNAL(clicked()), this, SLOT(checkDates ())); connect(m_ui->searchButton, SIGNAL(clicked()), this, SLOT(checkDates ()));
connect(m_ui->listEvents, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(selectEvent(QModelIndex))); connect(m_ui->listEvents, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(selectEvent(QModelIndex)));
// bug #1350669 (https://bugs.launchpad.net/stellarium/+bug/1350669) // bug #1350669 (https://bugs.launchpad.net/stellarium/+bug/1350669)
connect(m_ui->listEvents, SIGNAL(currentItemChanged(QTreeWidgetItem* ,QTreeWidgetItem*)), connect(m_ui->listEvents, SIGNAL(currentItemChanged(QTreeWidgetItem* ,QTreeWidgetItem*)),
m_ui->listEvents, SLOT(repaint())); m_ui->listEvents, SLOT(repaint()));
// TODO: Switch a QDateTimeEdit to StelDateTimeEdit widget to apply
wide range of dates
QDate min = QDate(100,1,1);
m_ui->dateFrom->setMinimumDate(min);
m_ui->dateTo->setMinimumDate(min);
refreshRangeDates(); refreshRangeDates();
initListEvents(); initListEvents();
} }
void MSSearchDialog::initListEvents() void MSSearchDialog::initListEvents()
{ {
m_ui->listEvents->clear(); m_ui->listEvents->clear();
m_ui->listEvents->setColumnCount(ColumnCount); m_ui->listEvents->setColumnCount(ColumnCount);
setHeaderNames(); setHeaderNames();
m_ui->listEvents->header()->setSectionsMovable(false); m_ui->listEvents->header()->setSectionsMovable(false);
 End of changes. 3 change blocks. 
4 lines changed or deleted 9 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/