demos/mainwindow/mainwindow.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   327             swatch->setWindowIcon(QIcon(QPixmap(":/res/qt.png")));
   327             swatch->setWindowIcon(QIcon(QPixmap(":/res/qt.png")));
   328         if (qstrcmp(sets[i].name, "Blue") == 0) {
   328         if (qstrcmp(sets[i].name, "Blue") == 0) {
   329             BlueTitleBar *titlebar = new BlueTitleBar(swatch);
   329             BlueTitleBar *titlebar = new BlueTitleBar(swatch);
   330             swatch->setTitleBarWidget(titlebar);
   330             swatch->setTitleBarWidget(titlebar);
   331             connect(swatch, SIGNAL(topLevelChanged(bool)), titlebar, SLOT(updateMask()));
   331             connect(swatch, SIGNAL(topLevelChanged(bool)), titlebar, SLOT(updateMask()));
   332             connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask()));
   332             connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask()), Qt::QueuedConnection);
   333 
   333 
   334 #ifdef Q_WS_QWS
   334 #ifdef Q_WS_QWS
   335             QPalette pal = palette();
   335             QPalette pal = palette();
   336             pal.setBrush(backgroundRole(), QColor(0,0,0,0));
   336             pal.setBrush(backgroundRole(), QColor(0,0,0,0));
   337             swatch->setPalette(pal);
   337             swatch->setPalette(pal);