Changeset 95eca626aa in tspsg for src/settingsdialog.cpp
- Timestamp:
- Oct 19, 2007, 3:41:00 AM (17 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- fc9f661ded
- Parents:
- 7836f136eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r7836f136eb r95eca626aa 36 36 setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint); 37 37 layout()->setSizeConstraint(layout()->SetFixedSize); 38 // Setting initial text of dialog hint label to own status tip text 38 // Setting initial text of dialog hint label to own status tip 39 // text. 39 40 labelHint->setText(labelHint->statusTip()); 41 // HACK: Do not resize label hint (and dialog) when text changes 42 // from one-line to two-line and vice versa. Any better solution? 43 labelHint->setMaximumHeight(labelHint->height()); 44 labelHint->setMinimumHeight(labelHint->height()); 40 45 } 41 46 … … 44 49 // Checking for StatusTip event and if tip text is not empty string 45 50 // setting it as text of the dialog hint label. Otherwise, setting 46 // dialog hint label text to own status tip text 51 // dialog hint label text to own status tip text. 47 52 if (ev->type() == QEvent::StatusTip) { 48 53 QString tip = static_cast<QStatusTipEvent *>(ev)->tip();
Note: See TracChangeset
for help on using the changeset viewer.