- Timestamp:
- Aug 23, 2009, 8:58:46 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/globals.h
r57 r58 45 45 // Maximum available number of cities 46 46 #define MAX_NUM_CITIES 30 47 // Maximum for random generation limit settings47 // Maximum allowed value for random generation limits 48 48 #define MAX_RAND_VALUE 1000 49 49 -
trunk/src/settingsdialog.cpp
r57 r58 84 84 imgIcon = new QLabel(this); 85 85 imgIcon->setObjectName("imgIcon"); 86 imgIcon->setFrameShape(QFrame::StyledPanel); 86 imgIcon->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Expanding); 87 imgIcon->setFrameShape(QFrame::Panel); 87 88 imgIcon->setLineWidth(0); 88 89 imgIcon->setPixmap(QPixmap(QString::fromUtf8(":/images/icons/preferences_system.png"))); … … 93 94 labelHint->setObjectName("labelHint"); 94 95 labelHint->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred); 95 labelHint->setMinimumSize(QSize(190,28)); 96 labelHint->setMaximumSize(QSize(0xFFFFFF,28)); 96 // labelHint->setMinimumSize(QSize(190,28)); 97 labelHint->setMinimumSize(QSize(0,28)); 98 labelHint->setMaximumSize(QSize(QWIDGETSIZE_MAX,28)); 97 99 labelHint->setTextFormat(Qt::PlainText); 98 100 // labelHint->setAlignment(Qt::AlignLeft | Qt::AlignTop); … … 239 241 labelHint->setText(labelHint->statusTip()); 240 242 return true; 243 // Making imgIcon square. 244 } else if (ev->type() == QEvent::Show) { 245 bool result = QDialog::event(ev); 246 if (result) 247 imgIcon->setMinimumWidth(imgIcon->height()); 248 return result; 241 249 } else 242 250 return QDialog::event(ev);
Note: See TracChangeset
for help on using the changeset viewer.