fixed issue about refreshing image directory when a capture is saved on the library

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent d7bd098f68
commit f5287497d2
  1. 1
      src/board/UBLibraryController.cpp
  2. 1
      src/board/UBLibraryController.h
  3. 4
      src/core/UBApplication.cpp
  4. 2
      src/gui/UBLibraryWidget.cpp

@ -167,6 +167,7 @@ void UBLibraryController::importImageOnLibrary(QImage& pImage)
filePath = UBFileSystemUtils::normalizeFilePath(filePath); filePath = UBFileSystemUtils::normalizeFilePath(filePath);
pImage.save(filePath); pImage.save(filePath);
UBApplication::showMessage(tr("Added 1 Image to Library")); UBApplication::showMessage(tr("Added 1 Image to Library"));
emit updateItemsList();
} }
} }

@ -130,6 +130,7 @@ class UBLibraryController : public QObject
signals: signals:
void dialogClosed(int state); void dialogClosed(int state);
void setResource(QString &pathResource,QString &mimetype); void setResource(QString &pathResource,QString &mimetype);
void updateItemsList();
public slots: public slots:
void removeBackground(); void removeBackground();

@ -601,14 +601,14 @@ void UBApplication::cleanup()
if (boardController) delete boardController; if (boardController) delete boardController;
if (webController) delete webController; if (webController) delete webController;
if (documentController) delete documentController; if (documentController) delete documentController;
if (mUniboardSankoreTransition) delete mUniboardSankoreTransition; if (mUniboardSankoreTransition) delete mUniboardSankoreTransition;
applicationController = NULL; applicationController = NULL;
boardController = NULL; boardController = NULL;
webController = NULL; webController = NULL;
documentController = NULL; documentController = NULL;
mUniboardSankoreTransition = NULL; mUniboardSankoreTransition = NULL;
} }
void UBStyle::drawItemText(QPainter *painter, const QRect &rect, int alignment, const QPalette &pal, void UBStyle::drawItemText(QPainter *painter, const QRect &rect, int alignment, const QPalette &pal,

@ -91,6 +91,8 @@ void UBLibraryWidget::init()
connect(this, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged())); connect(this, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged()));
connect(UBDownloadManager::downloadManager(), SIGNAL(addDownloadedFileToLibrary(bool,QUrl,QString,QByteArray)), this, SLOT(onAddDownloadedFileToLibrary(bool,QUrl,QString,QByteArray))); connect(UBDownloadManager::downloadManager(), SIGNAL(addDownloadedFileToLibrary(bool,QUrl,QString,QByteArray)), this, SLOT(onAddDownloadedFileToLibrary(bool,QUrl,QString,QByteArray)));
connect(UBApplication::boardController, SIGNAL(displayMetadata(QMap<QString,QString>)), this, SLOT(onDisplayMetadata(QMap<QString,QString>))); connect(UBApplication::boardController, SIGNAL(displayMetadata(QMap<QString,QString>)), this, SLOT(onDisplayMetadata(QMap<QString,QString>)));
connect(mLibraryController,SIGNAL(updateItemsList()),this,SLOT(onRefreshCurrentFolder()));
} }
/** /**

Loading…
Cancel
Save