StelDialog.cpp   StelDialog.cpp 
skipping to change at line 130 skipping to change at line 130
QGraphicsWidget* parent = qobject_cast<QGraphicsWidget*>(thi s->parent()); QGraphicsWidget* parent = qobject_cast<QGraphicsWidget*>(thi s->parent());
dialog = new QDialog(NULL); dialog = new QDialog(NULL);
// dialog->setParent(parent); // dialog->setParent(parent);
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance() .getGui()); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance() .getGui());
Q_ASSERT(gui); Q_ASSERT(gui);
//dialog->setAttribute(Qt::WA_OpaquePaintEvent, true); //dialog->setAttribute(Qt::WA_OpaquePaintEvent, true);
connect(dialog, SIGNAL(rejected()), this, SLOT(close())); connect(dialog, SIGNAL(rejected()), this, SLOT(close()));
createDialogContent(); createDialogContent();
dialog->setStyleSheet(gui->getStelStyle().qtStyleSheet); dialog->setStyleSheet(gui->getStelStyle().qtStyleSheet);
// Ensure that tooltip get rendered in red in night mode.
connect(&StelApp::getInstance(), SIGNAL(visionNightModeChang
ed(bool)), this, SLOT(updateNightModeProperty()));
updateNightModeProperty();
proxy = new CustomProxy(parent, Qt::Tool); proxy = new CustomProxy(parent, Qt::Tool);
proxy->setWidget(dialog); proxy->setWidget(dialog);
QSizeF size = proxy->size(); QSizeF size = proxy->size();
// centre with dialog according to current window size. // centre with dialog according to current window size.
int newX = (int)((screenSize.width() - size.width())/2); int newX = (int)((screenSize.width() - size.width())/2);
int newY = (int)((screenSize.height() - size.height())/2); int newY = (int)((screenSize.height() - size.height())/2);
// Make sure that the window's title bar is accessible // Make sure that the window's title bar is accessible
if (newY <-0) if (newY <-0)
newY = 0; newY = 0;
skipping to change at line 175 skipping to change at line 179
if (StelApp::getInstance().getSettings()->value("gui/flag_enable_kin etic_scrolling", true).toBool() == false) if (StelApp::getInstance().getSettings()->value("gui/flag_enable_kin etic_scrolling", true).toBool() == false)
return; return;
foreach(QWidget * w, addscroll) foreach(QWidget * w, addscroll)
{ {
QScroller::grabGesture(w, QScroller::LeftMouseButtonGesture) ; QScroller::grabGesture(w, QScroller::LeftMouseButtonGesture) ;
QScroller::scroller(w); QScroller::scroller(w);
} }
} }
#endif #endif
void StelDialog::updateNightModeProperty()
{
dialog->setProperty("nightMode", StelApp::getInstance().getVisionMod
eNight());
}
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 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/