History

Removed vsync slot from menu

Atlante45 committed 11 years ago

Commit fdce0ba1 parent bac448a4 files · +5 −10Browse files

Showing the changes to interface/src/Menu.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Menu.cpp+2−5
@@ -353,7 +353,8 @@ Menu::Menu() { · 352 unmodified lines
353 353
354#if defined(Q_OS_MAC)354#if defined(Q_OS_MAC)
355#else355#else
356 addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::RenderTargetFramerateVSyncOn, 0, true, this, SLOT(changeVSync()));356 addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::RenderTargetFramerateVSyncOn, 0, true,
357 qApp, SLOT(changeVSync()));
357#endif358#endif
358 }359 }
359 360
@@ -1154,10 +1155,6 @@ void Menu::copyPath() { · 794 unmodified lines
1154 clipboard->setText(path);1155 clipboard->setText(path);
1155}1156}
1156 1157
1157void Menu::changeVSync() {
1158 Application::getInstance()->setVSyncEnabled(isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn));
1159}
1160
1161void Menu::displayNameLocationResponse(const QString& errorString) {1158void Menu::displayNameLocationResponse(const QString& errorString) {
1162 1159
1163 if (!errorString.isEmpty()) {1160 if (!errorString.isEmpty()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t