fixed some unused signals

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent b2c05d49e4
commit d3ca55c9a1
  1. 10
      src/board/UBBoardController.cpp
  2. 4
      src/board/UBBoardController.h
  3. 7
      src/board/UBBoardPaletteManager.cpp
  4. 5
      src/board/UBBoardPaletteManager.h
  5. 2
      src/core/UBApplication.cpp
  6. 2
      src/document/UBDocumentProxy.cpp
  7. 3
      src/document/UBDocumentProxy.h
  8. 2
      src/domain/UBGraphicsScene.cpp
  9. 4
      src/domain/UBGraphicsScene.h
  10. 5
      src/gui/UBCachePropertiesWidget.cpp
  11. 3
      src/gui/UBCachePropertiesWidget.h

@ -1888,10 +1888,7 @@ void UBBoardController::updateSystemScaleFactor()
} }
if (mSystemScaleFactor != newScaleFactor) if (mSystemScaleFactor != newScaleFactor)
{
mSystemScaleFactor = newScaleFactor; mSystemScaleFactor = newScaleFactor;
emit systemScaleFactorChanged(newScaleFactor);
}
UBGraphicsScene::SceneViewState viewState = mActiveScene->viewState(); UBGraphicsScene::SceneViewState viewState = mActiveScene->viewState();
@ -1956,13 +1953,8 @@ void UBBoardController::setPageSize(QSize newSize)
void UBBoardController::notifyCache(bool visible) void UBBoardController::notifyCache(bool visible)
{ {
if(visible) if(visible)
{
emit cacheEnabled(); emit cacheEnabled();
}
else
{
emit cacheDisabled();
}
mCacheWidgetIsEnabled = visible; mCacheWidgetIsEnabled = visible;
} }

@ -149,7 +149,7 @@ class UBBoardController : public UBDocumentContainer
void setBoxing(QRect displayRect); void setBoxing(QRect displayRect);
void setToolbarTexts(); void setToolbarTexts();
static QUrl expandWidgetToTempDir(const QByteArray& pZipedData, const QString& pExtension = QString("wgt")); static QUrl expandWidgetToTempDir(const QByteArray& pZipedData, const QString& pExtension = QString("wgt"));
// static QRect freeRectInGlobalPos() const {return ;}
void setPageSize(QSize newSize); void setPageSize(QSize newSize);
UBBoardPaletteManager *paletteManager() UBBoardPaletteManager *paletteManager()
{ {
@ -239,12 +239,10 @@ class UBBoardController : public UBDocumentContainer
void newPageAdded(); void newPageAdded();
void activeSceneChanged(); void activeSceneChanged();
void zoomChanged(qreal pZoomFactor); void zoomChanged(qreal pZoomFactor);
void systemScaleFactorChanged(qreal pSystemScaleFactor);
void penColorChanged(); void penColorChanged();
void controlViewportChanged(); void controlViewportChanged();
void backgroundChanged(); void backgroundChanged();
void cacheEnabled(); void cacheEnabled();
void cacheDisabled();
void documentReorganized(int index); void documentReorganized(int index);
void displayMetadata(QMap<QString, QString> metadata); void displayMetadata(QMap<QString, QString> metadata);
void pageSelectionChanged(int index); void pageSelectionChanged(int index);

@ -821,8 +821,6 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
if( !isInit ) if( !isInit )
UBApplication::boardController->notifyPageChanged(); UBApplication::boardController->notifyPageChanged();
emit signal_changeMode(newMode);
} }
void UBBoardPaletteManager::addItem(const QPixmap& pPixmap, const QPointF& pos, qreal scaleFactor, const QUrl& sourceUrl) 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() void UBBoardPaletteManager::refreshPalettes()
{ {
mRightPalette->update(); mRightPalette->update();

@ -64,7 +64,6 @@ class UBBoardPaletteManager : public QObject
UBActionPalette *addItemPalette() {return mAddItemPalette;} UBActionPalette *addItemPalette() {return mAddItemPalette;}
void showVirtualKeyboard(bool show = true); void showVirtualKeyboard(bool show = true);
void initPalettesPosAtStartup(); void initPalettesPosAtStartup();
void connectToDocumentController();
void refreshPalettes(); void refreshPalettes();
UBKeyboardPalette *mKeyboardPalette; UBKeyboardPalette *mKeyboardPalette;
@ -79,10 +78,6 @@ class UBBoardPaletteManager : public QObject
void startDownloads(); void startDownloads();
void stopDownloads(); void stopDownloads();
signals:
void connectToDocController();
void signal_changeMode(eUBDockPaletteWidgetMode newMode);
public slots: public slots:
void activeSceneChanged(); void activeSceneChanged();

@ -317,8 +317,6 @@ int UBApplication::exec(const QString& pFileToImport)
webController = new UBWebController(mainWindow); webController = new UBWebController(mainWindow);
documentController = new UBDocumentController(mainWindow); documentController = new UBDocumentController(mainWindow);
boardController->paletteManager()->connectToDocumentController();
UBDrawingController::drawingController()->setStylusTool((int)UBStylusTool::Pen); UBDrawingController::drawingController()->setStylusTool((int)UBStylusTool::Pen);
applicationController = new UBApplicationController(boardController->controlView(), applicationController = new UBApplicationController(boardController->controlView(),

@ -188,8 +188,6 @@ void UBDocumentProxy::setDefaultDocumentSize(QSize pSize)
if (defaultDocumentSize() != pSize) if (defaultDocumentSize() != pSize)
{ {
setMetaData(UBSettings::documentSize, QVariant(pSize)); setMetaData(UBSettings::documentSize, QVariant(pSize));
emit defaultDocumentSizeChanged();
mIsModified = true; mIsModified = true;
} }
} }

@ -76,9 +76,6 @@ class UBDocumentProxy : public QObject
int incPageCount(); int incPageCount();
int decPageCount(); int decPageCount();
signals:
void defaultDocumentSizeChanged();
private: private:
void init(); void init();

@ -2075,11 +2075,9 @@ void UBGraphicsScene::setNominalSize(const QSize& pSize)
if (nominalSize() != pSize) if (nominalSize() != pSize)
{ {
mNominalSize = pSize; mNominalSize = pSize;
emit pageSizeChanged();
if(mDocument) if(mDocument)
mDocument->setDefaultDocumentSize(pSize); mDocument->setDefaultDocumentSize(pSize);
} }
} }

@ -339,10 +339,6 @@ public slots:
void zoomOutMagnifier(); void zoomOutMagnifier();
void resizedMagnifier(qreal newPercent); void resizedMagnifier(qreal newPercent);
signals:
void pageSizeChanged();
protected: protected:
UBGraphicsPolygonItem* lineToPolygonItem(const QLineF& pLine, const qreal& pWidth); UBGraphicsPolygonItem* lineToPolygonItem(const QLineF& pLine, const qreal& pWidth);

@ -241,11 +241,6 @@ void UBCachePropertiesWidget::onCloseClicked()
UBApplication::boardController->activeScene()->removeItem(mpCurrentCache); UBApplication::boardController->activeScene()->removeItem(mpCurrentCache);
mpCurrentCache = NULL; mpCurrentCache = NULL;
if(mCaches.empty())
{
emit cacheListEmpty();
}
emit hideTab(this); emit hideTab(this);
} }
} }

@ -52,9 +52,6 @@ public:
public slots: public slots:
void updateCurrentCache(); void updateCurrentCache();
signals:
void cacheListEmpty();
private slots: private slots:
void onCloseClicked(); void onCloseClicked();
void updateCacheColor(QColor color); void updateCacheColor(QColor color);

Loading…
Cancel
Save