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

@ -5,7 +5,8 @@ var sankoreLang = {
"show":"Show", "show":"Show",
"prev_page":"Previous page", "prev_page":"Previous page",
"next_page":"Next 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":{ "ru":{
"previous":"Пред.", "previous":"Пред.",
@ -13,7 +14,8 @@ var sankoreLang = {
"show":"Показать", "show":"Показать",
"prev_page":"Пред. страница", "prev_page":"Пред. страница",
"next_page":"След. страница", "next_page":"След. страница",
"open":"Перейти" "open":"Перейти",
"alert":"Невозможно отобразить страницу! Возможно это из-за политики безопасности сайта или неверного адреса.Также стоит проверить подключение к интернету."
}, },
"fr":{ "fr":{
"previous":"Précédente", "previous":"Précédente",
@ -21,7 +23,8 @@ var sankoreLang = {
"show":"Voir", "show":"Voir",
"prev_page":"Page précédente", "prev_page":"Page précédente",
"next_page":"Page suivante", "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 // NOOP
} }
void UBGraphicsDelegateFrame::setAntiScale(qreal pAntiScale) void UBGraphicsDelegateFrame::setAntiScale(qreal pAntiScale)
{ {
mFrameWidth = mNominalFrameWidth * pAntiScale; mFrameWidth = mNominalFrameWidth * pAntiScale;
@ -298,8 +297,8 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
QSizeF newSize = resizableItem->size() + incVector; QSizeF newSize = resizableItem->size() + incVector;
if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50) // if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50)
return; // return;
resizableItem->resize(newSize); resizableItem->resize(newSize);
} }
@ -596,4 +595,3 @@ QRectF UBGraphicsDelegateFrame::rotateButtonBounds() const
return QRectF(rect().right()- mFrameWidth, rect().top(), mFrameWidth, mFrameWidth); return QRectF(rect().right()- mFrameWidth, rect().top(), mFrameWidth, mFrameWidth);
} }

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

Loading…
Cancel
Save