Select style using Shift key
This commit is contained in:
parent
80ebe0defa
commit
eacc4d412e
2 changed files with 10 additions and 0 deletions
|
@ -490,6 +490,12 @@ void PaintBrushTool::leftButtonDown(const TPointD &pos, const TMouseEvent &e) {
|
||||||
int styleIdUnderCursor = getStyleUnderCursor(m_mousePos);
|
int styleIdUnderCursor = getStyleUnderCursor(m_mousePos);
|
||||||
if (styleIdUnderCursor > 0) styleId = styleIdUnderCursor;
|
if (styleIdUnderCursor > 0) styleId = styleIdUnderCursor;
|
||||||
m_task = FINGER;
|
m_task = FINGER;
|
||||||
|
} else if (e.isShiftPressed()) {
|
||||||
|
int styleIdUnderCursor = getStyleUnderCursor(m_mousePos);
|
||||||
|
if (styleIdUnderCursor > 0) {
|
||||||
|
styleId = styleIdUnderCursor;
|
||||||
|
getApplication()->setCurrentLevelStyleIndex(styleId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TTileSetCM32 *tileSet = new TTileSetCM32(ras->getSize());
|
TTileSetCM32 *tileSet = new TTileSetCM32(ras->getSize());
|
||||||
|
|
|
@ -331,6 +331,10 @@ std::unordered_map<std::string, QString> StatusBar::makeMap(
|
||||||
spacer +
|
spacer +
|
||||||
tr("%1%2Fix small fill gaps with click+dragged style")
|
tr("%1%2Fix small fill gaps with click+dragged style")
|
||||||
.arg(trModKey("Ctrl"))
|
.arg(trModKey("Ctrl"))
|
||||||
|
.arg(cmdTextSeparator) +
|
||||||
|
spacer +
|
||||||
|
tr("%1%2Selects style on current drawing")
|
||||||
|
.arg(trModKey("Shift"))
|
||||||
.arg(cmdTextSeparator)});
|
.arg(cmdTextSeparator)});
|
||||||
lMap.insert(
|
lMap.insert(
|
||||||
{"T_Fill", tr("Fill Tool: Fills drawing areas with the current style")});
|
{"T_Fill", tr("Fill Tool: Fills drawing areas with the current style")});
|
||||||
|
|
Loading…
Reference in a new issue