Changeset 10 in tspsg-svn for trunk/src/settingsdialog.cpp
- Timestamp:
- Oct 19, 2007, 3:41:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/settingsdialog.cpp
r9 r10 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.