|
|
|
@ -78,6 +78,7 @@ UBBoardThumbnailsView::UBBoardThumbnailsView(QWidget *parent, const char *name) |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(addThumbnailRequired(UBDocumentContainer*, int)), this, SLOT(addThumbnail(UBDocumentContainer*, int)), Qt::UniqueConnection); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(moveThumbnailRequired(int, int)), this, SLOT(moveThumbnail(int, int)), Qt::UniqueConnection); |
|
|
|
|
connect(this, SIGNAL(moveThumbnailRequired(int, int)), this, SLOT(moveThumbnail(int, int)), Qt::UniqueConnection); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(updateThumbnailsRequired()), this, SLOT(updateThumbnails()), Qt::UniqueConnection); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(removeThumbnailRequired(int)), this, SLOT(removeThumbnail(int)), Qt::UniqueConnection); |
|
|
|
|
|
|
|
|
|
connect(&mLongPressTimer, SIGNAL(timeout()), this, SLOT(longPressTimeout()), Qt::UniqueConnection); |
|
|
|
@ -94,6 +95,11 @@ void UBBoardThumbnailsView::moveThumbnail(int from, int to) |
|
|
|
|
updateThumbnailsPos(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UBBoardThumbnailsView::updateThumbnails() |
|
|
|
|
{ |
|
|
|
|
updateThumbnailsPos(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UBBoardThumbnailsView::removeThumbnail(int i) |
|
|
|
|
{ |
|
|
|
|
UBDraggableThumbnailView* item = mThumbnails.at(i); |
|
|
|
|