MCPcopy Create free account
hub / github.com/abreheret/PixelAnnotationTool / stringForShortCut

Method stringForShortCut

src/main_window.cpp:175–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175QString MainWindow::stringForShortCut(int id) const {
176 return (id < 10) ? QString("%1").arg((id + 1) % 10) :
177 (id < 20) ? QString("Ctrl+%1").arg((id + 1) % 10) :
178 (id < 30) ? QString("Alt+%1").arg((id + 1) % 10) :
179 (id < 40) ? QString("Ctrl+Alt+%1").arg((id + 1) % 10) :
180 QString();
181}
182
183void MainWindow::loadConfigLabels() {
184 _isLoadingNewLabels = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected