diff options
| author | 2017-07-06 23:37:15 +1000 | |
|---|---|---|
| committer | 2017-12-28 20:13:57 +0100 | |
| commit | 2f723938d6434302e6538e145bf8e1839de93b62 (patch) | |
| tree | 926daeaad9b43f4dfccb594e1ab8d6451dd31df8 /src/modules/options/OptionsWidget_input.cpp | |
| parent | Add uintNickCompletionOrder to the options widget. (diff) | |
| download | KVIrc-2f723938d6434302e6538e145bf8e1839de93b62.tar.gz KVIrc-2f723938d6434302e6538e145bf8e1839de93b62.tar.bz2 KVIrc-2f723938d6434302e6538e145bf8e1839de93b62.zip | |
Allow adding tooltips to other widgets in the options dialogs.
Diffstat (limited to 'src/modules/options/OptionsWidget_input.cpp')
| -rw-r--r-- | src/modules/options/OptionsWidget_input.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/options/OptionsWidget_input.cpp b/src/modules/options/OptionsWidget_input.cpp index 93c266945..8833be2c9 100644 --- a/src/modules/options/OptionsWidget_input.cpp +++ b/src/modules/options/OptionsWidget_input.cpp @@ -45,12 +45,16 @@ OptionsWidget_inputLook::OptionsWidget_inputLook(QWidget * parent) addPixmapSelector(0, 7, 1, 7, __tr2qs_ctx("Background image:", "options"), KviOption_pixmapInputBackground); - addLabel(0, 8, 0, 8, __tr2qs_ctx("Horizontal align:", "options")); + QLabel * pLabel = addLabel(0, 8, 0, 8, __tr2qs_ctx("Horizontal align:", "options")); + setBasicTip(pLabel, g_uintOptionsTable[KviOption_uintInputPixmapAlign].name); m_pHorizontalAlign = new QComboBox(this); + setBasicTip(m_pHorizontalAlign, g_uintOptionsTable[KviOption_uintInputPixmapAlign].name); addWidgetToLayout(m_pHorizontalAlign, 1, 8, 1, 8); - addLabel(0, 9, 0, 9, __tr2qs_ctx("Vertical align:", "options")); + pLabel = addLabel(0, 9, 0, 9, __tr2qs_ctx("Vertical align:", "options")); + setBasicTip(pLabel, g_uintOptionsTable[KviOption_uintInputPixmapAlign].name); m_pVerticalAlign = new QComboBox(this); + setBasicTip(m_pVerticalAlign, g_uintOptionsTable[KviOption_uintInputPixmapAlign].name); addWidgetToLayout(m_pVerticalAlign, 1, 9, 1, 9); m_pHorizontalAlign->addItem(__tr2qs_ctx("Tile", "options")); @@ -160,6 +164,7 @@ OptionsWidget_inputFeatures::OptionsWidget_inputFeatures(QWidget * parent) addBoolSelector(g, __tr2qs_ctx("Ignore special characters in nick completion", "options"), KviOption_boolIgnoreSpecialCharactersInNickCompletion); KviTalHBox * hb = new KviTalHBox(g); + setBasicTip(hb, g_uintOptionsTable[KviOption_uintNickCompletionOrder].name); QLabel * l = new QLabel(__tr2qs_ctx("Nickname completion order:", "options"), hb); l->setMinimumWidth(120); @@ -169,8 +174,6 @@ OptionsWidget_inputFeatures::OptionsWidget_inputFeatures(QWidget * parent) m_pCompletionOrderCombo->addItem(__tr2qs_ctx("Alphabetical", "options")); m_pCompletionOrderCombo->addItem(__tr2qs_ctx("By last action time", "options")); - // TODO: add the tooltip - if (KVI_OPTION_UINT(KviOption_uintNickCompletionOrder) < 3) m_pCompletionOrderCombo->setCurrentIndex(KVI_OPTION_UINT(KviOption_uintNickCompletionOrder)); else |
