mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-25 22:56:07 -04:00
UI: Replace SIGNAL and SLOT macros in obs-app
This commit is contained in:
@@ -1403,8 +1403,8 @@ OBSApp::OBSApp(int &argc, char **argv, profiler_name_store_t *store)
|
||||
/* Handle SIGINT properly */
|
||||
socketpair(AF_UNIX, SOCK_STREAM, 0, sigintFd);
|
||||
snInt = new QSocketNotifier(sigintFd[1], QSocketNotifier::Read, this);
|
||||
connect(snInt, SIGNAL(activated(QSocketDescriptor)), this,
|
||||
SLOT(ProcessSigInt()));
|
||||
connect(snInt, &QSocketNotifier::activated, this,
|
||||
&OBSApp::ProcessSigInt);
|
||||
#endif
|
||||
|
||||
sleepInhibitor = os_inhibit_sleep_create("OBS Video/audio");
|
||||
@@ -1720,7 +1720,7 @@ bool OBSApp::OBSInit()
|
||||
mainWindow = new OBSBasic();
|
||||
|
||||
mainWindow->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
connect(mainWindow, SIGNAL(destroyed()), this, SLOT(quit()));
|
||||
connect(mainWindow, &OBSBasic::destroyed, this, &OBSApp::quit);
|
||||
|
||||
mainWindow->OBSInit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user