for key in data: if key == "signature_key" and not data[key]: data[key] = genkey() self.settings.__setattr__(key, data[key]) def on_undo(self): """Undo event handler""" self.undo_stack.undo() def on_redo(self): """Undo event handler""" self.undo_stack.redo() def...
() == QEvent.KeyPress: if event.key() == Qt.Key_Up: self._changeInput(-1) return True elif event.key() == Qt.Key_Down: self._changeInput(1) return True elif event.key() == Qt.Key_Tab: # don't allow to tab out of the command line ...
(this, &InputTextWidget::undoAvailable, [this](bool enabled) { actionUndo->setEnabled(enabled); }); connect(this, &InputTextWidget::redoAvailable, [this](bool enabled) { actionRedo->setEnabled(enabled); }); connect(this, &InputTextWidget::copyAvailable, [this](bool enabled) { actionCut...
() > maxManhattanLength) maxManhattanLength = offset.manhattanLength(); ++const_it; } if(maxManhattanLength > 35) return false; SCgScene::ObjectUndoInfo::iterator it = mUndoInfo.begin(); while(it != mUndoInfo.end()) { it.value().second = c->mUndoInfo.value(it.key()).second; ...
(current_path), key=lambda e: e.is_file()) self.items = [] print("size of global 'items' =", len(self.items), "(resetted)") for item in files: if item.is_dir(): list_item = ListItem(name=item.name, drawer=True, current_path=self.current_pat...
(currentKeySigEvent); // The Parent and the track must be set to have the key signature layout adjusted to different clefs // This also adds naturals to the key signature (if set in the score style) newKs->setParent(parent); newKs->setTrack(e->track()); newKs->setColor(co...
[sit.key()].line == true) { this_map[sit.key()] = sit.value(); if(last_map.contains(sit.key())) { paint.setPen(getSetColor(sit.key())); double old_val = last_map[sit.key()]; double new_val = sit.value(); int ly1; if(old_val < 0.0) ly1 = (int)((old_val / ...
(self._widget) disarming.setKey(Qt.CTRL + Qt.Key_D) disarming.activated.connect(self.PopupMessages.emergency_disarm) shutdown = QShortcut(self._widget) shutdown.setKey(Qt.ALT + Qt.Key_F4) shutdown.activated.connect(self.shutdown_plugin) def syncthing_conflict(self, file_...
(QKeySequence::Delete); undoAction->setShortcuts(QKeySequence::Undo); redoAction->setShortcuts(QKeySequence::Redo); mUi->actionShowGrid->setChecked(preferences->showGrid()); mUi->actionSnapToGrid->setChecked(preferences->snapToGrid()); // Make sure Ctrl+= also works for zooming in QList<...
(targetRect, d->imageData->pixmap(sourceRect.size().toSize()), sourceRect); } else if (d->repeat == Stretched) { painter.setClipPath(fillPath); // undo conversion of the scaling so that we can use a nicely scaled image of the correct size qreal zoomX, zoomY; converter.z...