StelDialogLogBook.cpp   StelDialogLogBook.cpp 
skipping to change at line 37 skipping to change at line 37
#include <QStyleOptionGraphicsItem> #include <QStyleOptionGraphicsItem>
class CustomProxy : public QGraphicsProxyWidget class CustomProxy : public QGraphicsProxyWidget
{ {
public: public:
CustomProxy(QGraphicsItem *parent = 0, Qt::WindowFlags wFlag s = 0) : QGraphicsProxyWidget(parent, wFlags) CustomProxy(QGraphicsItem *parent = 0, Qt::WindowFlags wFlag s = 0) : QGraphicsProxyWidget(parent, wFlags)
{ {
setFocusPolicy(Qt::StrongFocus); setFocusPolicy(Qt::StrongFocus);
} }
//! Reimplement this method to add windows decorations. Curr ently there are invisible 2 px decorations //! Reimplement this method to add windows decorations. Curr ently there are invisible 2 px decorations
void paintWindowFrame(QPainter *painter, const QStyleOptionG raphicsItem *option, QWidget *widget) void paintWindowFrame(QPainter*, const QStyleOptionGraphicsI tem*, QWidget*)
{ {
/* QStyleOptionTitleBar bar;
initStyleOption(&bar);
bar.subControls = QStyle::SC_TitleBarCloseButton;
qWarning() << style()->subControlRect(QStyle::CC_Tit
leBar, &bar, QStyle::SC_TitleBarCloseButton);
QGraphicsProxyWidget::paintWindowFrame(painter, opti
on, widget);*/
} }
protected: protected:
virtual bool event(QEvent* event) virtual bool event(QEvent* event)
{ {
if (event->type()==QEvent::WindowDeactivate) if (event->type()==QEvent::WindowDeactivate)
{ {
widget()->setWindowOpacity(0.4); widget()->setWindowOpacity(0.4);
} }
if (event->type()==QEvent::WindowActivate) if (event->type()==QEvent::WindowActivate)
 End of changes. 2 change blocks. 
8 lines changed or deleted 1 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/