- restoreButton->setGeometry(fullScreenZone());
- QMainWindow::resizeEvent(e);
-}
-
-void FullScreenWindow::takeChild(QWidget *c)
-{
- leaveChild();
- if (c) {
- child = c;
- child->setParent(centralWidget());
- centralWidget()->layout()->addWidget(child);
- connect(child, SIGNAL(suppressedMouseButtonPress()),
- restoreButton, SLOT(flash()));
- }
-}
-
-void FullScreenWindow::leaveChild()
-{
- if (child) {
- centralWidget()->layout()->removeWidget(child);
- child = 0;
- }
+ Q_UNUSED(e);
+ QRect screen = QApplication::desktop()->screenGeometry();
+ restoreButton->setGeometry(screen.width() - TranslucentButton::pixels - 9,
+ screen.height() - TranslucentButton::pixels - 9,
+ TranslucentButton::pixels, TranslucentButton::pixels);