Changeset 7836f136eb in tspsg for src
- Timestamp:
- Oct 15, 2007, 8:46:46 PM (17 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 95eca626aa
- Parents:
- 721c99d482
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cpp
r721c99d482 r7836f136eb 26 26 #include <QMessageBox> 27 27 #include "mainwindow.h" 28 28 29 int main(int argc, char *argv[]) 29 30 { -
src/settingsdialog.cpp
r721c99d482 r7836f136eb 22 22 */ 23 23 24 #include <QMessageBox> 25 #include <QStatusTipEvent> 24 26 #include "settingsdialog.h" 25 #include <QMessageBox>26 27 27 28 SettingsDialog::SettingsDialog(QWidget *parent) … … 35 36 setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint); 36 37 layout()->setSizeConstraint(layout()->SetFixedSize); 38 // Setting initial text of dialog hint label to own status tip text 39 labelHint->setText(labelHint->statusTip()); 37 40 } 38 41 42 bool SettingsDialog::event(QEvent *ev) 43 { 44 // Checking for StatusTip event and if tip text is not empty string 45 // setting it as text of the dialog hint label. Otherwise, setting 46 // dialog hint label text to own status tip text 47 if (ev->type() == QEvent::StatusTip) { 48 QString tip = static_cast<QStatusTipEvent *>(ev)->tip(); 49 if (tip.length() != 0) 50 labelHint->setText(tip); 51 else 52 labelHint->setText(labelHint->statusTip()); 53 return true; 54 } else 55 return QDialog::event(ev); 56 } 57 -
src/settingsdialog.h
r721c99d482 r7836f136eb 33 33 public: 34 34 SettingsDialog(QWidget *parent = 0); 35 35 36 private: 37 bool event(QEvent *); 38 36 39 private slots: 37 40 void spinRandMinValueChanged(int val) { spinRandMax->setMinimum(val + 1); }
Note: See TracChangeset
for help on using the changeset viewer.