improve help implementation
This commit is contained in:
1 parent
2dcc63875d
commit
9ef24e3a9e
10 files changed
+52
-26
No files matched your search
@@ -474,7 +474,8 @@ void DraftDlg::mousePressEvent(QMouseEvent *event)
|
||||
const int i = (y - yFeature) / LinePitch;
|
||||
const int c = code[static_cast<std::size_t>(i)];
|
||||
if (x >= xFeature - 21 && x < width() && (event->modifiers() & Qt::ShiftModifier)) {
|
||||
Help::showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Feature, c);
|
||||
if (auto *dlg = Term::mainScreenHelpDlg())
|
||||
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Feature, c);
|
||||
} else if (!isFeatureAuto(c)) {
|
||||
if (c < mcFirstNonCap && x >= xFeature - 21 && x < xFeature - 21 + 12) {
|
||||
incCap = c;
|
||||
|
||||
Reference in new issue
Block a user