Commit 23e4c554 authored by coin-server's avatar coin-server

Merge branch 'qt_winsize' into 'master'

qt window size maximum

See merge request ProjectMerge/merge!16
parents 2bd7c2e8 b8d24174
......@@ -115,7 +115,15 @@ BitcoinGUI::BitcoinGUI(const NetworkStyle* networkStyle, QWidget* parent) : QMai
/* Open CSS when configured */
this->setStyleSheet(GUIUtil::loadStyleSheet());
GUIUtil::restoreWindowGeometry("nWindow", QSize(850, 550), this);
/* allow window to be as big as 80% of desktop */
QRect rec = QApplication::desktop()->screenGeometry();
int height = rec.height() * 0.8;
int width = rec.width() * 0.8;
/* set static size */
QSizePolicy sizePolicy(QSizePolicy::Maximum,QSizePolicy::Maximum);
setSizePolicy(sizePolicy);
setMaximumSize(QSize(width,height));
QString windowTitle = tr("Merge Core") + " - ";
#ifdef ENABLE_WALLET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment