mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Disabled Windows only WinApi calls in sys info
This commit is contained in:
parent
3ab531877a
commit
53280d1a36
@ -9,8 +9,9 @@
|
||||
#endif
|
||||
|
||||
// https://github.com/rainmeter/rainmeter/blob/master/Library/MeasureCPU.cpp
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
typedef LONG(WINAPI* FPNTQSI)(UINT, PVOID, ULONG, PULONG);
|
||||
#endif
|
||||
|
||||
class CPU : public QObject {
|
||||
Q_OBJECT
|
||||
@ -69,10 +70,10 @@ private:
|
||||
|
||||
double m_OldTime[2];
|
||||
|
||||
static FPNTQSI c_NtQuerySystemInformation;
|
||||
//static FPNTQSI c_NtQuerySystemInformation;
|
||||
|
||||
static int c_NumOfProcessors;
|
||||
static ULONG c_BufferSize;
|
||||
//static ULONG c_BufferSize;
|
||||
int m_tickRate = 500;
|
||||
QTimer m_updateTimer;
|
||||
};
|
||||
|
@ -14,7 +14,11 @@
|
||||
#include <QSharedPointer>
|
||||
#include <QString>
|
||||
#include <QWindow>
|
||||
#ifdef Q_OS_WIN
|
||||
#include <qt_windows.h>
|
||||
#else
|
||||
typedef long HWND;
|
||||
#endif
|
||||
|
||||
class SPWidgetmainwindow : public QWindow {
|
||||
Q_OBJECT
|
||||
|
Loading…
Reference in New Issue
Block a user