Advertisement
bremenpl

diag2

Apr 16th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. void MainWindow::InitComponents()
  2. {
  3.     QPoint p = pos();
  4.  
  5.     undoDialog = new UndoHistoryDialog(this);
  6.  
  7.     p += QPoint(this->width(), this->height()); // at this point p = (700, 600)
  8.     p -= QPoint(undoDialog->width(), undoDialog->height()); // p = (460, 280)
  9.  
  10.     undoDialog->move(p);
  11.     undoDialog->show();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement