diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 33afb520..18e56145 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1888,10 +1888,7 @@ void UBBoardController::updateSystemScaleFactor() } if (mSystemScaleFactor != newScaleFactor) - { mSystemScaleFactor = newScaleFactor; - emit systemScaleFactorChanged(newScaleFactor); - } UBGraphicsScene::SceneViewState viewState = mActiveScene->viewState(); @@ -1956,13 +1953,8 @@ void UBBoardController::setPageSize(QSize newSize) void UBBoardController::notifyCache(bool visible) { if(visible) - { emit cacheEnabled(); - } - else - { - emit cacheDisabled(); - } + mCacheWidgetIsEnabled = visible; } diff --git a/src/board/UBBoardController.h b/src/board/UBBoardController.h index 66dd1de3..52270050 100644 --- a/src/board/UBBoardController.h +++ b/src/board/UBBoardController.h @@ -149,7 +149,7 @@ class UBBoardController : public UBDocumentContainer void setBoxing(QRect displayRect); void setToolbarTexts(); static QUrl expandWidgetToTempDir(const QByteArray& pZipedData, const QString& pExtension = QString("wgt")); -// static QRect freeRectInGlobalPos() const {return ;} + void setPageSize(QSize newSize); UBBoardPaletteManager *paletteManager() { @@ -239,12 +239,10 @@ class UBBoardController : public UBDocumentContainer void newPageAdded(); void activeSceneChanged(); void zoomChanged(qreal pZoomFactor); - void systemScaleFactorChanged(qreal pSystemScaleFactor); void penColorChanged(); void controlViewportChanged(); void backgroundChanged(); void cacheEnabled(); - void cacheDisabled(); void documentReorganized(int index); void displayMetadata(QMap metadata); void pageSelectionChanged(int index); diff --git a/src/board/UBBoardPaletteManager.cpp b/src/board/UBBoardPaletteManager.cpp index fa3eb218..cac33bde 100644 --- a/src/board/UBBoardPaletteManager.cpp +++ b/src/board/UBBoardPaletteManager.cpp @@ -821,8 +821,6 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is if( !isInit ) UBApplication::boardController->notifyPageChanged(); - - emit signal_changeMode(newMode); } void UBBoardPaletteManager::addItem(const QPixmap& pPixmap, const QPointF& pos, qreal scaleFactor, const QUrl& sourceUrl) @@ -970,11 +968,6 @@ void UBBoardPaletteManager::changeStylusPaletteOrientation(QVariant var) } -void UBBoardPaletteManager::connectToDocumentController() -{ - emit connectToDocController(); -} - void UBBoardPaletteManager::refreshPalettes() { mRightPalette->update(); diff --git a/src/board/UBBoardPaletteManager.h b/src/board/UBBoardPaletteManager.h index 416a1374..5f05af11 100644 --- a/src/board/UBBoardPaletteManager.h +++ b/src/board/UBBoardPaletteManager.h @@ -64,7 +64,6 @@ class UBBoardPaletteManager : public QObject UBActionPalette *addItemPalette() {return mAddItemPalette;} void showVirtualKeyboard(bool show = true); void initPalettesPosAtStartup(); - void connectToDocumentController(); void refreshPalettes(); UBKeyboardPalette *mKeyboardPalette; @@ -79,10 +78,6 @@ class UBBoardPaletteManager : public QObject void startDownloads(); void stopDownloads(); - signals: - void connectToDocController(); - void signal_changeMode(eUBDockPaletteWidgetMode newMode); - public slots: void activeSceneChanged(); diff --git a/src/core/UBApplication.cpp b/src/core/UBApplication.cpp index bcb0194c..95abad24 100644 --- a/src/core/UBApplication.cpp +++ b/src/core/UBApplication.cpp @@ -317,8 +317,6 @@ int UBApplication::exec(const QString& pFileToImport) webController = new UBWebController(mainWindow); documentController = new UBDocumentController(mainWindow); - boardController->paletteManager()->connectToDocumentController(); - UBDrawingController::drawingController()->setStylusTool((int)UBStylusTool::Pen); applicationController = new UBApplicationController(boardController->controlView(), diff --git a/src/document/UBDocumentProxy.cpp b/src/document/UBDocumentProxy.cpp index 05360dd7..82145959 100644 --- a/src/document/UBDocumentProxy.cpp +++ b/src/document/UBDocumentProxy.cpp @@ -188,8 +188,6 @@ void UBDocumentProxy::setDefaultDocumentSize(QSize pSize) if (defaultDocumentSize() != pSize) { setMetaData(UBSettings::documentSize, QVariant(pSize)); - emit defaultDocumentSizeChanged(); - mIsModified = true; } } diff --git a/src/document/UBDocumentProxy.h b/src/document/UBDocumentProxy.h index 43adc634..e575375a 100644 --- a/src/document/UBDocumentProxy.h +++ b/src/document/UBDocumentProxy.h @@ -76,9 +76,6 @@ class UBDocumentProxy : public QObject int incPageCount(); int decPageCount(); - signals: - void defaultDocumentSizeChanged(); - private: void init(); diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index 7b973e30..6c5f9f58 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -2075,11 +2075,9 @@ void UBGraphicsScene::setNominalSize(const QSize& pSize) if (nominalSize() != pSize) { mNominalSize = pSize; - emit pageSizeChanged(); if(mDocument) mDocument->setDefaultDocumentSize(pSize); - } } diff --git a/src/domain/UBGraphicsScene.h b/src/domain/UBGraphicsScene.h index 2dc79fb7..84327c82 100644 --- a/src/domain/UBGraphicsScene.h +++ b/src/domain/UBGraphicsScene.h @@ -339,10 +339,6 @@ public slots: void zoomOutMagnifier(); void resizedMagnifier(qreal newPercent); - signals: - - void pageSizeChanged(); - protected: UBGraphicsPolygonItem* lineToPolygonItem(const QLineF& pLine, const qreal& pWidth); diff --git a/src/gui/UBCachePropertiesWidget.cpp b/src/gui/UBCachePropertiesWidget.cpp index f97043bf..5bdcdc3f 100644 --- a/src/gui/UBCachePropertiesWidget.cpp +++ b/src/gui/UBCachePropertiesWidget.cpp @@ -241,11 +241,6 @@ void UBCachePropertiesWidget::onCloseClicked() UBApplication::boardController->activeScene()->removeItem(mpCurrentCache); mpCurrentCache = NULL; - if(mCaches.empty()) - { - emit cacheListEmpty(); - } - emit hideTab(this); } } diff --git a/src/gui/UBCachePropertiesWidget.h b/src/gui/UBCachePropertiesWidget.h index 0660576a..7a6abac4 100644 --- a/src/gui/UBCachePropertiesWidget.h +++ b/src/gui/UBCachePropertiesWidget.h @@ -52,9 +52,6 @@ public: public slots: void updateCurrentCache(); -signals: - void cacheListEmpty(); - private slots: void onCloseClicked(); void updateCacheColor(QColor color);