Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/b5ebaf1940d74ed921fdebe4304f9b233f0c2ed8?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
135 additions and
134 deletions
src/gui/UBDocumentNavigator.cpp
src/gui/UBDocumentNavigator.h
@ -52,6 +52,7 @@ UBDocumentNavigator::UBDocumentNavigator(QWidget *parent, const char *name):QGra
mThumbnailWidth = width ( ) - 2 * border ( ) ;
mThumbnailWidth = width ( ) - 2 * border ( ) ;
connect ( UBApplication : : boardController , SIGNAL ( activeSceneChanged ( ) ) , this , SLOT ( addNewPage ( ) ) ) ;
connect ( UBApplication : : boardController , SIGNAL ( activeSceneChanged ( ) ) , this , SLOT ( addNewPage ( ) ) ) ;
connect ( UBApplication : : boardController , SIGNAL ( setDocOnPageNavigator ( UBDocumentProxy * ) ) , this , SLOT ( generateThumbnails ( ) ) ) ;
connect ( mScene , SIGNAL ( selectionChanged ( ) ) , this , SLOT ( onSelectionChanged ( ) ) ) ;
connect ( mScene , SIGNAL ( selectionChanged ( ) ) , this , SLOT ( onSelectionChanged ( ) ) ) ;
}
}
@ -116,7 +117,6 @@ void UBDocumentNavigator::generateThumbnails()
items < < pixmapItem ;
items < < pixmapItem ;
labels < < tr ( " Page %0 " ) . arg ( i + 1 ) ;
labels < < tr ( " Page %0 " ) . arg ( i + 1 ) ;
//itemsPath.append(QUrl::fromLocalFile(mCrntDoc->persistencePath() + QString("/pages/%0").arg(i + 1)));
}
}
// Draw the items
// Draw the items
@ -51,13 +51,14 @@ protected:
private slots :
private slots :
void addNewPage ( ) ;
void addNewPage ( ) ;
void onSelectionChanged ( ) ;
void onSelectionChanged ( ) ;
void generateThumbnails ( ) ;
private :
private :
void setGraphicsItems ( QList < QGraphicsItem * > items , QStringList labels ) ;
void setGraphicsItems ( QList < QGraphicsItem * > items , QStringList labels ) ;
void refreshScene ( ) ;
void refreshScene ( ) ;
void updateSpecificThumbnail ( int iPage ) ;
void updateSpecificThumbnail ( int iPage ) ;
int border ( ) ;
int border ( ) ;
void generateThumbnails ( ) ;
/** The scene */
/** The scene */
QGraphicsScene * mScene ;
QGraphicsScene * mScene ;