mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Enable translation of ctrl key name for tool tip in dive notes
This really enables the translation of the ctrl key name. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
		
							parent
							
								
									b7494bfb2e
								
							
						
					
					
						commit
						34d1dd469c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -677,7 +677,7 @@ void TextHyperlinkEventFilter::handleUrlTooltip(const QString &urlStr, const QPo | ||||||
| 	} else { | 	} else { | ||||||
| 		// per Qt docs, QKeySequence::toString does localization "tr()" on strings like Ctrl.
 | 		// per Qt docs, QKeySequence::toString does localization "tr()" on strings like Ctrl.
 | ||||||
| 		// Note: Qt knows that on Mac OSX, ctrl (and Control) are the command key.
 | 		// Note: Qt knows that on Mac OSX, ctrl (and Control) are the command key.
 | ||||||
| 		const QString ctrlKeyName = QKeySequence(Qt::CTRL).toString(); | 		const QString ctrlKeyName = QKeySequence(Qt::CTRL).toString(QKeySequence::NativeText); | ||||||
| 		// ctrlKeyName comes with a trailing '+', as in: 'Ctrl+'
 | 		// ctrlKeyName comes with a trailing '+', as in: 'Ctrl+'
 | ||||||
| 		QToolTip::showText(pos, tr("%1click to visit %2").arg(ctrlKeyName).arg(urlStr)); | 		QToolTip::showText(pos, tr("%1click to visit %2").arg(ctrlKeyName).arg(urlStr)); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue