|
|
@ -35,6 +35,8 @@ |
|
|
|
#include <QTime> |
|
|
|
#include <QTime> |
|
|
|
#include <QGraphicsSceneHoverEvent> |
|
|
|
#include <QGraphicsSceneHoverEvent> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "core/UBApplication.h" |
|
|
|
|
|
|
|
#include "board/UBBoardController.h" |
|
|
|
#include "frameworks/UBCoreGraphicsScene.h" |
|
|
|
#include "frameworks/UBCoreGraphicsScene.h" |
|
|
|
#include "core/UBSettings.h" |
|
|
|
#include "core/UBSettings.h" |
|
|
|
#include "domain/UBItem.h" |
|
|
|
#include "domain/UBItem.h" |
|
|
@ -486,12 +488,15 @@ class UBDraggableThumbnailView : public UBDraggableThumbnail |
|
|
|
void setPageNumber(int i) |
|
|
|
void setPageNumber(int i) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mPageNumber->setPlainText(tr("Page %0").arg(i+1)); |
|
|
|
mPageNumber->setPlainText(tr("Page %0").arg(i+1)); |
|
|
|
|
|
|
|
if (UBApplication::boardController->activeSceneIndex() == i) |
|
|
|
|
|
|
|
mPageNumber->setDefaultTextColor(QColor("#6682b5")); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
mPageNumber->setDefaultTextColor(QColor("#000000")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
UBThumbnailView* mThumbnailView;
|
|
|
|
UBThumbnailView* mThumbnailView;
|
|
|
|
UBThumbnailTextItem* mPageNumber; |
|
|
|
UBThumbnailTextItem* mPageNumber; |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
namespace UBThumbnailUI |
|
|
|
namespace UBThumbnailUI |
|
|
|