Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/dbd2aecadb3ce0912c582c30af66c9f96313f79f
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
13 additions and
13 deletions
src/gui/UBLibPathViewer.cpp
src/gui/UBLibPathViewer.h
@ -22,9 +22,6 @@ UBLibPathViewer::UBLibPathViewer(QWidget *parent, const char *name):QGraphicsVie
setHorizontalScrollBarPolicy ( Qt : : ScrollBarAlwaysOn ) ;
setAcceptDrops ( true ) ;
setStyleSheet ( QString ( " QGraphicsView{background:#EEEEEE; border-radius:10px; border:2px solid #999999;} " ) ) ;
// setStyleSheet(QString("QScrollArea{background-color: #EEEEEE;}QScrollBar::horizontal{border-radius:2px;background-color:transparent;height:15px;}QScrollBar::add-line::horizontal{background-color:transparent;border-radius:5px;}QScrollBar::sub-line::horizontal{background-color:transparent;border-radius:5px;}QScrollBar::left-arrow::horizontal{background-color:white;width:3px;height:3px;}"));
// For later --> QScrollBar::horizontal{border-radius:2px; background-color:#DDDDDD; height:10px;} QScrollBar::handle::horizontal{color:#BBBBBB;}
// mpScene = new QGraphicsScene(this);
mpScene = new UBPathScene ( this ) ;
setScene ( mpScene ) ;
@ -175,15 +172,21 @@ void UBLibPathViewer::addItem(UBChainedLibElement *elem)
*/
void UBLibPathViewer : : resizeEvent ( QResizeEvent * event )
{
if ( NULL ! = mpContainer )
{
mpContainer - > setMinimumWidth ( width ( ) - 20 ) ;
}
qDebug ( ) < < " old " < < event - > oldSize ( ) ;
qDebug ( ) < < " new " < < event - > size ( ) ;
if ( event - > oldSize ( ) = = event - > size ( ) )
event - > ignore ( ) ;
else {
if ( NULL ! = mpContainer ) {
mpContainer - > setMinimumWidth ( width ( ) - 20 ) ;
}
viewport ( ) - > resize ( width ( ) - 10 , viewport ( ) - > height ( ) ) ;
viewport ( ) - > resize ( width ( ) - 10 , viewport ( ) - > height ( ) ) ;
updateScrolls ( ) ;
event - > accept ( ) ;
updateScrolls ( ) ;
event - > accept ( ) ;
}
}
void UBLibPathViewer : : showEvent ( QShowEvent * event )
@ -71,10 +71,7 @@ signals:
protected :
void resizeEvent ( QResizeEvent * event ) ;
// void mousePressEvent(QMouseEvent *event);
// void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent ( QMouseEvent * event ) ;
// void paintEvent(QPaintEvent *event);
void showEvent ( QShowEvent * event ) ;
private slots :