mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
TrainerDay: Setting the geometry of the dialog
Setting the geometriy of the download dialog instead of the minimum size, thus allowing full resizing. See https://groups.google.com/g/golden-cheetah-users/c/Xi6d3L1t9QA/m/gWe2Q2uNAQAJ
This commit is contained in:
committed by
Alejandro Martinez
parent
9ea6949f13
commit
06b0ea5a81
@@ -33,8 +33,11 @@ TrainerDayDownloadDialog::TrainerDayDownloadDialog(Context *context) : QDialog(c
|
||||
this->setWhatsThis(help->getWhatsThisText(HelpWhatsThis::MenuBar_Tools_Download_ERGDB));
|
||||
|
||||
// make the dialog a resonable size
|
||||
setMinimumWidth(QApplication::primaryScreen()->geometry().width() * 0.8);
|
||||
setMinimumHeight(QApplication::primaryScreen()->geometry().height() * 0.8);
|
||||
int screenWidth = QApplication::primaryScreen()->geometry().width();
|
||||
int screenHeight = QApplication::primaryScreen()->geometry().height();
|
||||
double widthFactor = 0.8;
|
||||
double heightFactor = 0.8;
|
||||
setGeometry(screenWidth * (1.0 - widthFactor) / 2.0, screenHeight * (1.0 - heightFactor) / 2.0, screenWidth * widthFactor, screenHeight * heightFactor);
|
||||
|
||||
legacy = new QWidget();
|
||||
QVBoxLayout *legacyLayout = new QVBoxLayout;
|
||||
|
||||
Reference in New Issue
Block a user