History

Replace Application::getInstance() with qApp

Atlante45 committed 11 years ago

Commit cf3b33a1 parent 2c276bb37 files · +197 −181Browse files

Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 37 files). Show all

Unified · Split

interface/src/scripting/DesktopScriptingInterface.cpp+2−2
@@ -18,10 +18,10 @@ · 17 unmodified lines
18#include "MainWindow.h"18#include "MainWindow.h"
19 19
20int DesktopScriptingInterface::getWidth() {20int DesktopScriptingInterface::getWidth() {
21 QSize size = Application::getInstance()->getWindow()->windowHandle()->screen()->virtualSize();21 QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize();
22 return size.width();22 return size.width();
23}23}
24int DesktopScriptingInterface::getHeight() {24int DesktopScriptingInterface::getHeight() {
25 QSize size = Application::getInstance()->getWindow()->windowHandle()->screen()->virtualSize();25 QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize();
26 return size.height();26 return size.height();
27}27}