Changeset 5a81a64d74 in tspsg for src/settingsdialog.cpp
- Timestamp:
- Aug 23, 2009, 8:58:46 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 244c614c6b
- Parents:
- 2fb523720a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r2fb523720a r5a81a64d74 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.