1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Edited Speed Dial to work in Windows.

- prepending file:/// instead of file://
- also disabled user selection in all page
  (selection in inputs allowed)
This commit is contained in:
nowrep 2011-12-03 15:33:23 +01:00
parent b422e22afd
commit 79f825c173
3 changed files with 15 additions and 5 deletions

View File

@ -3,7 +3,7 @@ QupZilla Web Browser - http://www.qupzilla.co.cc (http://qupzilla.blogspot.com/)
About QupZilla
----------------------------------------------------------------------------------------
QupZilla is a new, very fast QtWebKit browser. It aims to be a lightweight web browser
QupZilla is a new and very fast QtWebKit browser. It aims to be a lightweight web browser
available through all major platforms. This project has been originally started only
for educational purposes. But from its start, QupZilla has grown into a feature-rich browser.

View File

@ -3,8 +3,8 @@
<title>%SITE-TITLE%</title>
<link rel="icon" href="%FAVICON%" type="image/x-icon" />
<style type="text/css" media="screen">
html {background: #eeeeee;font: 13px/22px "Helvetica Neue", Helvetica, Arial, sans-serif; color: #525c66;}
html * {font-size: 100%;line-height: 1.6;margin: 0px;}
html {background: #eeeeee;font: 13px/22px "Helvetica Neue", Helvetica, Arial, sans-serif;color: #525c66;}
html * {-webkit-user-select: none;font-size: 100%;line-height: 1.6;margin: 0px;}
.add {position: absolute;right:10px;top:10px;width: 24px;height: 24px;background: url(%IMG_PLUS%); cursor: pointer;}
#quickdial {max-width: 1044px;margin: auto;}
@ -30,7 +30,7 @@ span.reload:hover {border-color: grey; border-radius: 4px;}
#overlay-edit input[type="submit"] {margin-left: auto;margin-right: auto;margin-top: 10px;display: block;width: 200px;}
.formTable {width: 350px;margin-left: auto;margin-right: auto;margin-top: 15px;}
.formTable input[type="text"] {width: 100%;}
.formTable input[type="text"] {width: 100%;-webkit-user-select: auto;}
</style>
<script type="text/javascript" src="%JQUERY%"></script>
<script type="text/javascript" src="%JQUERY-UI%"></script>

View File

@ -86,7 +86,11 @@ QString SpeedDial::initialScript()
}
}
else {
#ifdef Q_WS_X11
imgSource.prepend("file://");
#else
imgSource.prepend("file:///");
#endif
}
m_initialScript.append(QString("addBox('%1', '%2', '%3');\n").arg(url, title, imgSource));
@ -146,6 +150,12 @@ void SpeedDial::thumbnailCreated(const QPixmap &image)
continue;
}
frame->evaluateJavaScript(QString("setImageToUrl('%1', '%2');").arg(url, "file://" + fileName));
#ifdef Q_WS_X11
fileName.prepend("file://");
#else
fileName.prepend("file:///");
#endif
frame->evaluateJavaScript(QString("setImageToUrl('%1', '%2');").arg(url, fileName));
}
}