Commit 1b4cca3a authored by Craig Watson's avatar Craig Watson

Updated connect functions

parent 2484e96b
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
#include "core/memcheck.h" #include "core/memcheck.h"
#include "qdesktopwidget.h"
UBDisplayManager::UBDisplayManager(QObject *parent) UBDisplayManager::UBDisplayManager(QObject *parent)
: QObject(parent) : QObject(parent)
, mControlScreenIndex(-1) , mControlScreenIndex(-1)
...@@ -55,8 +57,8 @@ UBDisplayManager::UBDisplayManager(QObject *parent) ...@@ -55,8 +57,8 @@ UBDisplayManager::UBDisplayManager(QObject *parent)
initScreenIndexes(); initScreenIndexes();
connect(mDesktop, SIGNAL(resized(int)), this, SLOT(adjustScreens(int))); connect(mDesktop, &QDesktopWidget::resized, this, &UBDisplayManager::adjustScreens);
connect(mDesktop, SIGNAL(workAreaResized(int)), this, SLOT(adjustScreens(int))); connect(mDesktop, &QDesktopWidget::workAreaResized, this, &UBDisplayManager::adjustScreens);
} }
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
class UBBlackoutWidget; class UBBlackoutWidget;
class UBBoardView; class UBBoardView;
class QDesktopWidget;
class UBDisplayManager : public QObject class UBDisplayManager : public QObject
{ {
......
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
#include "core/memcheck.h" #include "core/memcheck.h"
#include "qdesktopwidget.h"
qreal UBPreferencesController::sSliderRatio = 10.0; qreal UBPreferencesController::sSliderRatio = 10.0;
qreal UBPreferencesController::sMinPenWidth = 0.5; qreal UBPreferencesController::sMinPenWidth = 0.5;
qreal UBPreferencesController::sMaxPenWidth = 50.0; qreal UBPreferencesController::sMaxPenWidth = 50.0;
...@@ -78,7 +80,7 @@ UBPreferencesController::UBPreferencesController(QWidget *parent) ...@@ -78,7 +80,7 @@ UBPreferencesController::UBPreferencesController(QWidget *parent)
mPreferencesUI = new Ui::preferencesDialog(); // deleted in mPreferencesUI = new Ui::preferencesDialog(); // deleted in
mPreferencesUI->setupUi(mPreferencesWindow); mPreferencesUI->setupUi(mPreferencesWindow);
adjustScreens(1); adjustScreens(1);
connect(mDesktop, SIGNAL(screenCountChanged(int)), this, SLOT(adjustScreens(int))); connect(mDesktop, &QDesktopWidget::screenCountChanged, this, &UBPreferencesController::adjustScreens);
wire(); wire();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment