Merge branch 'master' of github.com:Sankore/Sankore-3.1

preferencesAboutTextFull
shibakaneki 13 years ago
commit e2e99419b3
  1. 8
      resources/library/interactive/WebBrowser.wgt/index.html
  2. 9
      resources/library/interactive/WebBrowser.wgt/scripts/languages.js
  3. 6
      src/domain/UBGraphicsDelegateFrame.cpp
  4. 2
      src/gui/UBThumbnailWidget.cpp

@ -225,10 +225,12 @@
$(window).trigger("resize");
return false;
};
if(resizerIndex > 100){
if(resizerIndex > 80){
resizerIndex = 0;
$("#textbox").val("http://www.google.com/search?q=" + $("#textbox").val().replace("http://", ""));
$("#search-button").trigger("click");
$("#back-button").trigger("click");
alert(sankoreLang[lang].alert);
//$("#textbox").val("http://www.google.com/search?q=" + $("#textbox").val().replace("http://", ""));
//$("#search-button").trigger("click");
}else{
resizer = setTimeout(function(){checkLoading()}, 100);
resizerIndex++;

@ -5,7 +5,8 @@ var sankoreLang = {
"show":"Show",
"prev_page":"Previous page",
"next_page":"Next page",
"open":"Open the site"
"open":"Open the site",
"alert":"Cannot open a page! Maybe it's because of a security policy or a wrong url. Also check your internet connection."
},
"ru":{
"previous":"Пред.",
@ -13,7 +14,8 @@ var sankoreLang = {
"show":"Показать",
"prev_page":"Пред. страница",
"next_page":"След. страница",
"open":"Перейти"
"open":"Перейти",
"alert":"Невозможно отобразить страницу! Возможно это из-за политики безопасности сайта или неверного адреса.Также стоит проверить подключение к интернету."
},
"fr":{
"previous":"Précédente",
@ -21,7 +23,8 @@ var sankoreLang = {
"show":"Voir",
"prev_page":"Page précédente",
"next_page":"Page suivante",
"open":"Ouvrez le site"
"open":"Ouvrez le site",
"alert":"Impossible d'ouvrir une page! Peut-être c'est à cause d'une politique de sécurité ou une URL erronée. Vérifiez aussi votre connexion internet."
}
};

@ -92,7 +92,6 @@ UBGraphicsDelegateFrame::~UBGraphicsDelegateFrame()
// NOOP
}
void UBGraphicsDelegateFrame::setAntiScale(qreal pAntiScale)
{
mFrameWidth = mNominalFrameWidth * pAntiScale;
@ -298,8 +297,8 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
QSizeF newSize = resizableItem->size() + incVector;
if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50)
return;
// if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50)
// return;
resizableItem->resize(newSize);
}
@ -596,4 +595,3 @@ QRectF UBGraphicsDelegateFrame::rotateButtonBounds() const
return QRectF(rect().right()- mFrameWidth, rect().top(), mFrameWidth, mFrameWidth);
}

@ -368,7 +368,7 @@ void UBThumbnailWidget::mouseMoveEvent(QMouseEvent *event)
if (qlElements.size() > 0){
mime->setUrls(qlElements);
drag->setMimeData(mime);
drag->exec();
drag->exec(Qt::CopyAction);
}
}
}

Loading…
Cancel
Save