Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bigger window resize border #1099

Merged
merged 1 commit into from May 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion plugins/TextUserInterface/src/DummyDialog.cpp
Expand Up @@ -102,7 +102,9 @@ void DummyDialog::setVisible(bool v)
proxy = new CustomProxy(Q_NULLPTR, Qt::Tool);
proxy->setWidget(dialog);
StelMainView::getInstance().scene()->addItem(proxy);
proxy->setWindowFrameMargins(2,0,2,2);
// Invisible frame around the window to make resizing easier
// (this also changes the bounding rectangle size)
proxy->setWindowFrameMargins(7,0,7,7);
proxy->setCacheMode(QGraphicsItem::DeviceCoordinateCache);
proxy->setZValue(100);
StelMainView::getInstance().scene()->setActiveWindow(proxy);
Expand Down
3 changes: 2 additions & 1 deletion src/gui/StelDialog.cpp
Expand Up @@ -153,8 +153,9 @@ void StelDialog::setVisible(bool v)
if (newY <-0)
newY = 0;
proxy->setPos(newX, newY);
proxy->setWindowFrameMargins(2,0,2,2);
// Invisible frame around the window to make resizing easier
// (this also changes the bounding rectangle size)
proxy->setWindowFrameMargins(7,0,7,7);

// Retrieve stored panel sizes, scale panel up if it was stored larger than default.
QString confNameSize="DialogSizes/" + dialogName;
Expand Down