Changeset a5be8eb2c8 in tspsg for src
- Timestamp:
- Jan 11, 2010, 8:52:16 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 64f288c0f8
- Parents:
- a2e64d518a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
ra2e64d518a ra5be8eb2c8 35 35 setupUi(this); 36 36 // Laying out elements 37 layoutCitiesLimit = new QHBoxLayout();37 /* layoutCitiesLimit = new QHBoxLayout(); 38 38 layoutCitiesLimit->setMargin(0); 39 39 layoutCitiesLimit->setSpacing(0); … … 42 42 layoutCitiesLimit->addWidget(spinCitiesLimit); 43 43 layoutCitiesLimit->addStretch(); 44 44 */ 45 45 buttonBox->button(QDialogButtonBox::Save)->setIcon(QIcon(":/images/icons/button_ok.png")); 46 46 buttonBox->button(QDialogButtonBox::Save)->setStatusTip(trUtf8("Save new preferences")); … … 52 52 #ifdef Q_OS_WINCE 53 53 // Layout helper elements 54 QVBoxLayout *vbox1, *vbox2; 55 QHBoxLayout *hbox1, *hbox2; 56 57 labelRandMin->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred); 58 labelRandMax->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred); 59 60 groupRandomSettings->layout()->addWidget(cbFractionalRandom); 61 groupRandomSettings->layout()->setSpacing(2); 62 63 // Top part (with white bg) 64 vbox2 = new QVBoxLayout(bgWhite); 65 vbox2->setSpacing(2); 66 vbox2->addWidget(groupRandomSettings); 67 vbox2->addWidget(groupOutputSettings); 68 vbox2->addStretch(); 69 // vbox2->addWidget(cbFractionalRandom); 70 vbox2->addWidget(cbShowMatrix); 71 vbox2->addLayout(layoutCitiesLimit); 72 vbox2->addWidget(cbScrollToEnd); 73 vbox2->addWidget(cbAutosize); 74 vbox2->addWidget(cbUseNativeDialogs); 75 76 // Output settings group 77 hbox1 = new QHBoxLayout(groupOutputSettings); 78 hbox1->addWidget(buttonFont); 79 hbox1->addWidget(buttonColor); 54 QVBoxLayout *vbox1; 55 QHBoxLayout *hbox1; 56 57 bgWhite->layout()->setMargin(0); 80 58 81 59 // Bottom part (with grey bg) 82 hbox 2= new QHBoxLayout(bgGrey);83 hbox 2->setMargin(6);84 hbox 2->setSpacing(6);85 hbox 2->addWidget(buttonHelp);86 hbox 2->addStretch();87 hbox 2->addWidget(buttonBox);60 hbox1 = new QHBoxLayout(bgGrey); 61 hbox1->setMargin(6); 62 hbox1->setSpacing(6); 63 hbox1->addWidget(buttonHelp); 64 hbox1->addStretch(); 65 hbox1->addWidget(buttonBox); 88 66 89 67 // Central layout … … 96 74 #else 97 75 // Layout helper elements 98 QVBoxLayout *vbox1, *vbox2 , *vbox3;99 QHBoxLayout *hbox1, *hbox2 , *hbox3;76 QVBoxLayout *vbox1, *vbox2; 77 QHBoxLayout *hbox1, *hbox2; 100 78 101 79 cbSaveState = new QCheckBox(bgWhite); … … 142 120 hbox1->addWidget(bgWhite); 143 121 144 // Output settings group 145 vbox3 = new QVBoxLayout(groupOutputSettings); 146 vbox3->addWidget(buttonFont); 147 vbox3->addWidget(buttonColor); 148 149 // Random and Output settings groups 150 hbox2 = new QHBoxLayout(); 151 hbox2->addWidget(groupRandomSettings); 152 hbox2->addWidget(groupOutputSettings); 153 hbox2->addStretch(); 154 155 // Top right part (with white bg) 156 vbox2 = new QVBoxLayout(bgWhite); 157 // vbox2->addStretch(); 158 vbox2->addLayout(hbox2); 159 vbox2->addWidget(cbFractionalRandom); 160 vbox2->addWidget(cbShowMatrix); 161 vbox2->addLayout(layoutCitiesLimit); 162 vbox2->addWidget(cbScrollToEnd); 163 vbox2->addWidget(cbAutosize); 164 vbox2->addWidget(cbUseNativeDialogs); 165 vbox2->addWidget(cbSaveState); 166 vbox2->addStretch(); 122 vbox1 = static_cast<QVBoxLayout *>(tabGeneral->layout()); 123 vbox1->insertWidget(vbox2->indexOf(cbUseNativeDialogs) + 1, cbSaveState); 167 124 168 125 // Bottom part (with grey bg) 169 hbox 3= new QHBoxLayout(bgGrey);170 hbox 3->setMargin(6);171 hbox 3->setSpacing(6);172 hbox 3->addWidget(buttonHelp);173 hbox 3->addWidget(labelHint);174 hbox 3->addWidget(buttonBox);126 hbox2 = new QHBoxLayout(bgGrey); 127 hbox2->setMargin(6); 128 hbox2->setSpacing(6); 129 hbox2->addWidget(buttonHelp); 130 hbox2->addWidget(labelHint); 131 hbox2->addWidget(buttonBox); 175 132 176 133 // Central layout 177 vbox1 = new QVBoxLayout(this); 178 vbox1->setMargin(0); 179 vbox1->setSpacing(0); 180 vbox1->addLayout(hbox1); 181 vbox1->addWidget(lineHorizontal); 182 vbox1->addWidget(bgGrey); 183 #endif // Q_OS_WINCE 134 vbox2 = new QVBoxLayout(this); 135 vbox2->setMargin(0); 136 vbox2->setSpacing(0); 137 vbox2->addLayout(hbox1); 138 vbox2->addWidget(lineHorizontal); 139 vbox2->addWidget(bgGrey); 140 #endif // Q_OS_WINCE 141 184 142 connect(spinRandMin,SIGNAL(valueChanged(int)),this,SLOT(spinRandMinValueChanged(int))); 185 143 connect(buttonFont,SIGNAL(clicked()),this,SLOT(buttonFontClicked()));
Note: See TracChangeset
for help on using the changeset viewer.