Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MainWindow::InitComponents()
- {
- QPoint p = pos();
- undoDialog = new UndoHistoryDialog(this);
- p += QPoint(this->width(), this->height()); // at this point p = (700, 600)
- p -= QPoint(undoDialog->width(), undoDialog->height()); // p = (460, 280)
- undoDialog->move(p);
- undoDialog->show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement