|
|
@ -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) |
|
|
|
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(); |
|
|
|
} |
|
|
|
} |
|
|
|