forked from qt-creator/qt-creator
Corelib: fix capitalization of variable chooser strings
Use book style capitalization for icon tooltips and menu items. Change-Id: I410ebf7be236ebf8b904c1555203f306eb569c99 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -93,7 +93,7 @@ public:
|
|||||||
{
|
{
|
||||||
m_iconButton = new IconButton;
|
m_iconButton = new IconButton;
|
||||||
m_iconButton->setPixmap(QPixmap(QLatin1String(":/core/images/replace.png")));
|
m_iconButton->setPixmap(QPixmap(QLatin1String(":/core/images/replace.png")));
|
||||||
m_iconButton->setToolTip(VariableChooser::tr("Insert variable"));
|
m_iconButton->setToolTip(VariableChooser::tr("Insert Variable"));
|
||||||
m_iconButton->hide();
|
m_iconButton->hide();
|
||||||
connect(m_iconButton.data(), static_cast<void(QAbstractButton::*)(bool)>(&QAbstractButton::clicked),
|
connect(m_iconButton.data(), static_cast<void(QAbstractButton::*)(bool)>(&QAbstractButton::clicked),
|
||||||
this, &VariableChooserPrivate::updatePositionAndShow);
|
this, &VariableChooserPrivate::updatePositionAndShow);
|
||||||
@@ -205,14 +205,14 @@ void VariableTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
QAction *insertExpandedAction = 0;
|
QAction *insertExpandedAction = 0;
|
||||||
|
|
||||||
if (unexpandedText.isEmpty()) {
|
if (unexpandedText.isEmpty()) {
|
||||||
insertUnexpandedAction = menu.addAction(VariableChooser::tr("Insert unexpanded value"));
|
insertUnexpandedAction = menu.addAction(VariableChooser::tr("Insert Unexpanded Value"));
|
||||||
insertUnexpandedAction->setEnabled(false);
|
insertUnexpandedAction->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
insertUnexpandedAction = menu.addAction(VariableChooser::tr("Insert \"%1\"").arg(unexpandedText));
|
insertUnexpandedAction = menu.addAction(VariableChooser::tr("Insert \"%1\"").arg(unexpandedText));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (expandedText.isEmpty()) {
|
if (expandedText.isEmpty()) {
|
||||||
insertExpandedAction = menu.addAction(VariableChooser::tr("Insert expanded value"));
|
insertExpandedAction = menu.addAction(VariableChooser::tr("Insert Expanded Value"));
|
||||||
insertExpandedAction->setEnabled(false);
|
insertExpandedAction->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
insertExpandedAction = menu.addAction(VariableChooser::tr("Insert \"%1\"").arg(expandedText));
|
insertExpandedAction = menu.addAction(VariableChooser::tr("Insert \"%1\"").arg(expandedText));
|
||||||
|
|||||||
Reference in New Issue
Block a user