diff installer.cpp @ 53:c1e5e3f02e48

Update some RDF; make checkboxes be checked by default
author Chris Cannam
date Mon, 03 Feb 2020 14:43:46 +0000
parents eeab56dd59d6
children df3b00f82e8d
line wrap: on
line diff
--- a/installer.cpp	Thu Jan 30 15:15:49 2020 +0000
+++ b/installer.cpp	Mon Feb 03 14:43:46 2020 +0000
@@ -244,9 +244,8 @@
 
     int mainRow = 0;
     
-    //!!! at top: title and check/uncheck all button
-    
     auto checkAll = new QCheckBox;
+    checkAll->setChecked(true);
     mainLayout->addWidget(checkAll, mainRow, 0, Qt::AlignHCenter);
     ++mainRow;
 
@@ -277,10 +276,12 @@
     for (auto info: libraries) {
         orderedInfo[info.title] = info;
     }
-    
+
     for (auto ip: orderedInfo) {
 
         auto cb = new QCheckBox;
+        cb->setChecked(true);
+        
         selectionLayout->addWidget(cb, selectionRow, 0,
                                    Qt::AlignTop | Qt::AlignHCenter);
 
@@ -337,10 +338,12 @@
     mainLayout->setColumnMinimumWidth(0, cw + 20); //!!!
     mainLayout->setColumnStretch(1, 10);
     selectionLayout->setColumnMinimumWidth(0, cw); //!!!
+    selectionLayout->setColumnMinimumWidth(1, 820); //!!!
+    selectionLayout->setColumnStretch(1, 10);
 
     QObject::connect(bb, SIGNAL(accepted()), &dialog, SLOT(accept()));
     QObject::connect(bb, SIGNAL(rejected()), &dialog, SLOT(reject()));
-
+    
     if (dialog.exec() == QDialog::Accepted) {
         SVCERR << "accepted" << endl;
     } else {