summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-29 10:56:31 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-29 10:56:31 +0200
commit9bba849081af6cfe93bb8b592843608860e0de6e (patch)
tree09d737e765aa7d07e4f54253884e81c77fd23ac6 /src
parentLoad on click (links on previews) (diff)
downloadrekonq-9bba849081af6cfe93bb8b592843608860e0de6e.tar.xz
Implementing a new about: protocol, 1st bunch
Diffstat (limited to 'src')
-rw-r--r--src/homepage.cpp3
-rw-r--r--src/homepage.h4
-rw-r--r--src/previewimage.cpp3
3 files changed, 7 insertions, 3 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 912ed11d..230692c0 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -49,8 +49,9 @@
#include <QFile>
-HomePage::HomePage(QObject *parent)
+HomePage::HomePage(QObject *parent, const QString &authority)
: QObject(parent)
+ , m_authority(authority)
{
m_homePagePath = KStandardDirs::locate("data", "rekonq/htmls/home.html");
}
diff --git a/src/homepage.h b/src/homepage.h
index 90a211a9..3996c095 100644
--- a/src/homepage.h
+++ b/src/homepage.h
@@ -40,7 +40,7 @@ class HomePage : public QObject
Q_OBJECT
public:
- HomePage(QObject *parent);
+ HomePage(QObject *parent = 0, const QString &authority = QString("home"));
~HomePage();
QString rekonqHomePage();
@@ -52,6 +52,8 @@ private:
QString fillRecentHistory();
QString m_homePagePath;
+
+ QString m_authority;
};
#endif // REKONQ_HOME_PAGE
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 96b02be7..c10f8924 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -66,6 +66,7 @@ PreviewImage::~PreviewImage()
{
}
+
void PreviewImage::setSiteImage()
{
QMovie *m = movie();
@@ -80,4 +81,4 @@ void PreviewImage::mousePressEvent(QMouseEvent *event)
{
Q_UNUSED(event)
Application::instance()->loadUrl(m_url);
-} \ No newline at end of file
+}