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)
{
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;
}

@ -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<QString, QString> metadata);
void pageSelectionChanged(int index);

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

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

@ -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(),

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

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

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

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

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

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

Loading…
Cancel
Save