mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 09:54:14 +02:00
Remove unused methods
This commit is contained in:
parent
a5f31dba5f
commit
e74df484cc
2 changed files with 0 additions and 24 deletions
|
@ -3766,25 +3766,6 @@ void Application::resetSensors() {
|
|||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "reset", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
static void setShortcutsEnabled(QWidget* widget, bool enabled) {
|
||||
foreach (QAction* action, widget->actions()) {
|
||||
QKeySequence shortcut = action->shortcut();
|
||||
if (!shortcut.isEmpty() && (shortcut[0] & (Qt::CTRL | Qt::ALT | Qt::META)) == 0) {
|
||||
// it's a shortcut that may coincide with a "regular" key, so switch its context
|
||||
action->setShortcutContext(enabled ? Qt::WindowShortcut : Qt::WidgetShortcut);
|
||||
}
|
||||
}
|
||||
foreach (QObject* child, widget->children()) {
|
||||
if (child->isWidgetType()) {
|
||||
setShortcutsEnabled(static_cast<QWidget*>(child), enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Application::setMenuShortcutsEnabled(bool enabled) {
|
||||
setShortcutsEnabled(_window->menuBar(), enabled);
|
||||
}
|
||||
|
||||
void Application::updateWindowTitle(){
|
||||
|
||||
QString buildVersion = " (build " + applicationVersion() + ")";
|
||||
|
|
|
@ -497,11 +497,6 @@ private:
|
|||
|
||||
void renderRearViewMirror(RenderArgs* renderArgs, const QRect& region, bool billboard = false);
|
||||
|
||||
void setMenuShortcutsEnabled(bool enabled);
|
||||
|
||||
static void attachNewHeadToNode(Node *newNode);
|
||||
static void* networkReceive(void* args); // network receive thread
|
||||
|
||||
int sendNackPackets();
|
||||
|
||||
bool _dependencyManagerIsSetup;
|
||||
|
|
Loading…
Reference in a new issue