diff options
author | Alexander V. Wolf <alex.v.wolf@gmail.com> | 2022-05-26 18:19:31 +0700 |
---|---|---|
committer | Alexander V. Wolf <alex.v.wolf@gmail.com> | 2022-05-26 18:19:31 +0700 |
commit | 0d9ea511e4c4909d51b3e6290f9b8d27b1972966 (patch) | |
tree | c3168ae34cb4334e028e5d1c472e24058a52d339 | |
parent | ff91f44bf82981b209474894f3f48c285f5ead98 (diff) |
Wrap long tooltips...
-rw-r--r-- | src/gui/ConfigurationDialog.cpp | 9 | ||||
-rw-r--r-- | src/gui/ConfigurationDialog.hpp | 2 | ||||
-rw-r--r-- | src/gui/configurationDialog.ui | 4 | ||||
-rw-r--r-- | src/gui/viewDialog.ui | 6 |
4 files changed, 16 insertions, 5 deletions
diff --git a/src/gui/ConfigurationDialog.cpp b/src/gui/ConfigurationDialog.cpp index 73cfae9477..1d2e075916 100644 --- a/src/gui/ConfigurationDialog.cpp +++ b/src/gui/ConfigurationDialog.cpp @@ -135,6 +135,8 @@ void ConfigurationDialog::retranslate() populateDateFormatsList(); populateTimeFormatsList(); + populateTooltips(); + //Hack to shrink the tabs to optimal size after language change //by causing the list items to be laid out again. updateTabBarListWidgetWidth(); @@ -421,6 +423,7 @@ void ConfigurationDialog::createDialogContent() populatePluginsList(); updateConfigLabels(); + populateTooltips(); updateTabBarListWidgetWidth(); } @@ -1801,6 +1804,12 @@ void ConfigurationDialog::updateSelectedInfoCheckBoxes() ui->checkBoxSolarLunarPosition->setChecked(flags & StelObject::SolarLunarPosition); } +void ConfigurationDialog::populateTooltips() +{ + ui->checkBoxProperMotion->setToolTip(QString("<p>%1</p>").arg(q_("Annual proper motion (stars) or hourly motion (solar system objects)"))); + ui->checkBoxRTSTime->setToolTip(QString("<p>%1</p>").arg(q_("Show time of rising, transit and setting of celestial object. The rising and setting events are defined with the upper limb of the celestial body."))); +} + void ConfigurationDialog::updateTabBarListWidgetWidth() { ui->stackListWidget->setWrapping(false); diff --git a/src/gui/ConfigurationDialog.hpp b/src/gui/ConfigurationDialog.hpp index 8c97ddcdc2..a2987c1d09 100644 --- a/src/gui/ConfigurationDialog.hpp +++ b/src/gui/ConfigurationDialog.hpp @@ -187,6 +187,8 @@ private: ConfigureScreenshotsDialog * configureScreenshotsDialog; int savedProjectionType; + + void populateTooltips(); //! Set the displayed fields checkboxes from the current displayed fields. void updateSelectedInfoCheckBoxes(); diff --git a/src/gui/configurationDialog.ui b/src/gui/configurationDialog.ui index e3bbdacf1f..ea3e9725c0 100644 --- a/src/gui/configurationDialog.ui +++ b/src/gui/configurationDialog.ui @@ -891,7 +891,7 @@ <item row="6" column="1"> <widget class="QCheckBox" name="checkBoxProperMotion"> <property name="toolTip"> - <string>Annual proper motion (stars) or hourly motion (solar system objects)</string> + <string/> </property> <property name="text"> <string>Proper Motion</string> @@ -937,7 +937,7 @@ <item row="11" column="1"> <widget class="QCheckBox" name="checkBoxRTSTime"> <property name="toolTip"> - <string>Show time of rising, transit and setting of celestial object. The rising and setting events are defined with the upper limb of the celestial body.</string> + <string/> </property> <property name="text"> <string>Risings, Transits, and Settings</string> diff --git a/src/gui/viewDialog.ui b/src/gui/viewDialog.ui index 3c481c7c1d..ce0607edb3 100644 --- a/src/gui/viewDialog.ui +++ b/src/gui/viewDialog.ui @@ -318,7 +318,7 @@ <item row="1" column="0"> <widget class="QStackedWidget" name="stackedWidget"> <property name="currentIndex"> - <number>2</number> + <number>0</number> </property> <widget class="QWidget" name="page_sky"> <layout class="QGridLayout" name="gridLayout"> @@ -5260,12 +5260,12 @@ </resources> <connections/> <buttongroups> - <buttongroup name="buttonGroupDisplayedDSOCatalogs"> + <buttongroup name="buttonGroupDisplayedDSOTypes"> <property name="exclusive"> <bool>false</bool> </property> </buttongroup> - <buttongroup name="buttonGroupDisplayedDSOTypes"> + <buttongroup name="buttonGroupDisplayedDSOCatalogs"> <property name="exclusive"> <bool>false</bool> </property> |