summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-26 11:37:11 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-26 11:37:11 +0100
commit8dda858403d283f1850c0298aac0fb5212a27952 (patch)
treeb21daf30ccba171cb4924d1d93871ac7c75e15c0
parentFixing scripts and tests to start reloading them.. (diff)
downloadrekonq-8dda858403d283f1850c0298aac0fb5212a27952.tar.xz
tests support for every Qt derived rekonq class
-rw-r--r--src/adblock/adblockmanager.h3
-rw-r--r--src/adblock/adblocknetworkreply.h5
-rw-r--r--src/adblock/adblockrule.h1
-rw-r--r--src/application.h4
-rw-r--r--src/bookmarks/bookmarksmanager.h3
-rw-r--r--src/bookmarks/bookmarkspanel.h6
-rw-r--r--src/bookmarks/bookmarksproxy.h7
-rw-r--r--src/bookmarks/bookmarkstreemodel.h11
-rw-r--r--src/clicktoflash.h11
-rw-r--r--src/filterurljob.h3
-rw-r--r--src/findbar.h5
-rw-r--r--src/history/autosaver.h5
-rw-r--r--src/history/historymanager.h5
-rw-r--r--src/history/historymodels.h5
-rw-r--r--src/history/historypanel.h5
-rw-r--r--src/mainwindow.h3
-rw-r--r--src/networkaccessmanager.h5
-rw-r--r--src/protocolhandler.h6
-rw-r--r--src/rekonqpage/newtabpage.h5
-rw-r--r--src/rekonqpage/previewselectorbar.h3
-rw-r--r--src/sessionmanager.h5
-rw-r--r--src/settings/settingsdialog.h5
-rw-r--r--src/urlbar/lineedit.h5
-rw-r--r--src/urlbar/urlbar.h3
-rw-r--r--src/walletbar.h5
-rw-r--r--src/webinspectorpanel.h5
-rw-r--r--src/webpage.h3
-rw-r--r--src/webpluginfactory.h5
-rw-r--r--src/websnap.h5
-rw-r--r--src/webtab.h5
-rw-r--r--src/webview.h5
31 files changed, 118 insertions, 34 deletions
diff --git a/src/adblock/adblockmanager.h b/src/adblock/adblockmanager.h
index 754c81c2..d1bbe7ba 100644
--- a/src/adblock/adblockmanager.h
+++ b/src/adblock/adblockmanager.h
@@ -105,6 +105,7 @@
// Local Includes
+#include "rekonqprivate_export.h"
#include "adblockrule.h"
// Qt Includes
@@ -120,7 +121,7 @@ class WebPage;
typedef QList<AdBlockRule> AdBlockRuleList;
-class AdBlockManager : public QObject
+class REKONQ_TESTS_EXPORT AdBlockManager : public QObject
{
Q_OBJECT
diff --git a/src/adblock/adblocknetworkreply.h b/src/adblock/adblocknetworkreply.h
index 36dd7fdb..bbc3471e 100644
--- a/src/adblock/adblocknetworkreply.h
+++ b/src/adblock/adblocknetworkreply.h
@@ -54,6 +54,9 @@
#define ADBLOCK_NETWORK_REPLY_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QNetworkReply>
#include <QString>
@@ -62,7 +65,7 @@
class AdBlockRule;
-class AdBlockNetworkReply : public QNetworkReply
+class REKONQ_TESTS_EXPORT AdBlockNetworkReply : public QNetworkReply
{
Q_OBJECT
diff --git a/src/adblock/adblockrule.h b/src/adblock/adblockrule.h
index 1cb97dc4..8f79d16e 100644
--- a/src/adblock/adblockrule.h
+++ b/src/adblock/adblockrule.h
@@ -54,6 +54,7 @@
#ifndef ADBLOCKRULE_H
#define ADBLOCKRULE_H
+
// Qt Includes
#include <QRegExp>
#include <QString>
diff --git a/src/application.h b/src/application.h
index 30ec4839..4340b004 100644
--- a/src/application.h
+++ b/src/application.h
@@ -29,6 +29,8 @@
#ifndef APPLICATION_H
#define APPLICATION_H
+// Local Includes
+#include "rekonqprivate_export.h"
// KDE Includes
#include <KUniqueApplication>
@@ -89,7 +91,7 @@ namespace Rekonq
/**
*
*/
-class Application : public KUniqueApplication
+class REKONQ_TESTS_EXPORT Application : public KUniqueApplication
{
Q_OBJECT
diff --git a/src/bookmarks/bookmarksmanager.h b/src/bookmarks/bookmarksmanager.h
index 200bfb4b..d4afb997 100644
--- a/src/bookmarks/bookmarksmanager.h
+++ b/src/bookmarks/bookmarksmanager.h
@@ -31,6 +31,7 @@
// Local Includes
+#include "rekonqprivate_export.h"
#include "application.h"
// Qt Includes
@@ -55,7 +56,7 @@ class KBookmarkManager;
* bookmarks as actions
*
*/
-class BookmarkOwner : public QObject , public KBookmarkOwner
+class REKONQ_TESTS_EXPORT BookmarkOwner : public QObject , public KBookmarkOwner
{
Q_OBJECT
diff --git a/src/bookmarks/bookmarkspanel.h b/src/bookmarks/bookmarkspanel.h
index 64d68f70..f5376d98 100644
--- a/src/bookmarks/bookmarkspanel.h
+++ b/src/bookmarks/bookmarkspanel.h
@@ -28,6 +28,10 @@
#ifndef BOOKMARKSPANEL_H
#define BOOKMARKSPANEL_H
+
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QDockWidget>
@@ -36,7 +40,7 @@ class KUrl;
class QModelIndex;
-class BookmarksPanel : public QDockWidget
+class REKONQ_TESTS_EXPORT BookmarksPanel : public QDockWidget
{
Q_OBJECT
diff --git a/src/bookmarks/bookmarksproxy.h b/src/bookmarks/bookmarksproxy.h
index a1444218..2bf1d63a 100644
--- a/src/bookmarks/bookmarksproxy.h
+++ b/src/bookmarks/bookmarksproxy.h
@@ -28,10 +28,15 @@
#ifndef BOOKMARKSPROXY_H
#define BOOKMARKSPROXY_H
+
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QSortFilterProxyModel>
-class BookmarksProxy : public QSortFilterProxyModel
+
+class REKONQ_TESTS_EXPORT BookmarksProxy : public QSortFilterProxyModel
{
Q_OBJECT
Q_DISABLE_COPY(BookmarksProxy)
diff --git a/src/bookmarks/bookmarkstreemodel.h b/src/bookmarks/bookmarkstreemodel.h
index 9b65d923..dfad52ba 100644
--- a/src/bookmarks/bookmarkstreemodel.h
+++ b/src/bookmarks/bookmarkstreemodel.h
@@ -28,13 +28,18 @@
#ifndef BOOKMARKSTREEMODEL_H
#define BOOKMARKSTREEMODEL_H
-// Qt Includes
-#include <QAbstractItemModel>
+
+// Local Includes
+#include "rekonqprivate_export.h"
// KDE includes
#include <KBookmark>
-class BookmarksTreeModel : public QAbstractItemModel
+// Qt Includes
+#include <QAbstractItemModel>
+
+
+class REKONQ_TESTS_EXPORT BookmarksTreeModel : public QAbstractItemModel
{
Q_OBJECT
Q_DISABLE_COPY(BookmarksTreeModel)
diff --git a/src/clicktoflash.h b/src/clicktoflash.h
index 8565f80f..2284ec7e 100644
--- a/src/clicktoflash.h
+++ b/src/clicktoflash.h
@@ -28,15 +28,22 @@
#ifndef CLICKTOFLASH_H
#define CLICKTOFLASH_H
+
+// Local Includes
+#include "rekonqprivate_export.h"
+
+// Qt Includes
#include <QWidget>
#include <QUrl>
-
+// Forward Declarations
class WebPluginFactory;
-class ClickToFlash : public QWidget
+
+class REKONQ_TESTS_EXPORT ClickToFlash : public QWidget
{
Q_OBJECT
+
public:
explicit ClickToFlash(QUrl pluginUrl, QWidget *parent = 0);
diff --git a/src/filterurljob.h b/src/filterurljob.h
index 3a9511ea..9be058e3 100644
--- a/src/filterurljob.h
+++ b/src/filterurljob.h
@@ -28,6 +28,7 @@
#define FILTER_URL_JOB_H
// Local Includes
+#include "rekonqprivate_export.h"
#include "webview.h"
// KDE Includes
@@ -41,7 +42,7 @@
using namespace ThreadWeaver;
-class FilterUrlJob : public Job
+class REKONQ_TESTS_EXPORT FilterUrlJob : public Job
{
public:
FilterUrlJob(WebView *view, const QString &urlString, QObject *parent = 0);
diff --git a/src/findbar.h b/src/findbar.h
index 8f220c92..c192b498 100644
--- a/src/findbar.h
+++ b/src/findbar.h
@@ -29,6 +29,9 @@
#define FINDBAR_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KLineEdit>
@@ -41,7 +44,7 @@ class KMainWindow;
class QString;
-class FindBar : public QWidget
+class REKONQ_TESTS_EXPORT FindBar : public QWidget
{
Q_OBJECT
diff --git a/src/history/autosaver.h b/src/history/autosaver.h
index 4a307a16..c4c9045b 100644
--- a/src/history/autosaver.h
+++ b/src/history/autosaver.h
@@ -29,6 +29,9 @@
#define AUTOSAVER_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QtCore/QObject>
#include <QtCore/QBasicTimer>
@@ -43,7 +46,7 @@
*
*/
-class AutoSaver : public QObject
+class REKONQ_TESTS_EXPORT AutoSaver : public QObject
{
Q_OBJECT
diff --git a/src/history/historymanager.h b/src/history/historymanager.h
index 0df1467f..e744ca4b 100644
--- a/src/history/historymanager.h
+++ b/src/history/historymanager.h
@@ -30,6 +30,9 @@
#define HISTORY_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KUrl>
@@ -92,7 +95,7 @@ class KCompletion;
* It manages rekonq history
*
*/
-class HistoryManager : public QWebHistoryInterface
+class REKONQ_TESTS_EXPORT HistoryManager : public QWebHistoryInterface
{
Q_OBJECT
Q_PROPERTY(int historyLimit READ historyLimit WRITE setHistoryLimit)
diff --git a/src/history/historymodels.h b/src/history/historymodels.h
index a8cd7a8c..c2b1ede1 100644
--- a/src/history/historymodels.h
+++ b/src/history/historymodels.h
@@ -31,6 +31,7 @@
// Local Includes
+#include "rekonqprivate_export.h"
#include "historymanager.h"
// KDE Includes
@@ -45,7 +46,7 @@
#include <QWebHistoryInterface>
-class HistoryModel : public QAbstractTableModel
+class REKONQ_TESTS_EXPORT HistoryModel : public QAbstractTableModel
{
Q_OBJECT
@@ -85,7 +86,7 @@ private:
*
*/
-class HistoryFilterModel : public QAbstractProxyModel
+class REKONQ_TESTS_EXPORT HistoryFilterModel : public QAbstractProxyModel
{
Q_OBJECT
diff --git a/src/history/historypanel.h b/src/history/historypanel.h
index 67284c0e..6e6a9162 100644
--- a/src/history/historypanel.h
+++ b/src/history/historypanel.h
@@ -29,6 +29,9 @@
#define HISTORYPANEL_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QDockWidget>
@@ -38,7 +41,7 @@ class QWidget;
class QModelIndex;
-class HistoryPanel : public QDockWidget
+class REKONQ_TESTS_EXPORT HistoryPanel : public QDockWidget
{
Q_OBJECT
diff --git a/src/mainwindow.h b/src/mainwindow.h
index db75b1bd..66c796cc 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -33,6 +33,7 @@
// Local Includes
+#include "rekonqprivate_export.h"
#include "application.h"
#include "previewselectorbar.h"
@@ -62,7 +63,7 @@ class MainView;
* It handles the menus, toolbars, and status bars.
*
*/
-class MainWindow : public KMainWindow
+class REKONQ_TESTS_EXPORT MainWindow : public KMainWindow
{
Q_OBJECT
diff --git a/src/networkaccessmanager.h b/src/networkaccessmanager.h
index 171a5337..5e55c1e6 100644
--- a/src/networkaccessmanager.h
+++ b/src/networkaccessmanager.h
@@ -29,6 +29,9 @@
#define NETWORKACCESSMANAGER_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <kio/accessmanager.h>
@@ -36,7 +39,7 @@
using namespace KIO::Integration;
-class NetworkAccessManager : public AccessManager
+class REKONQ_TESTS_EXPORT NetworkAccessManager : public AccessManager
{
Q_OBJECT
diff --git a/src/protocolhandler.h b/src/protocolhandler.h
index 140faa7d..2a567015 100644
--- a/src/protocolhandler.h
+++ b/src/protocolhandler.h
@@ -27,6 +27,10 @@
#ifndef PROTOCOL_HANDLER_H
#define PROTOCOL_HANDLER_H
+
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KDirLister>
@@ -41,7 +45,7 @@ class KUrl;
class KJob;
-class ProtocolHandler : public QObject
+class REKONQ_TESTS_EXPORT ProtocolHandler : public QObject
{
Q_OBJECT
diff --git a/src/rekonqpage/newtabpage.h b/src/rekonqpage/newtabpage.h
index d659362f..d4c57299 100644
--- a/src/rekonqpage/newtabpage.h
+++ b/src/rekonqpage/newtabpage.h
@@ -29,6 +29,9 @@
#define REKONQ_NEW_TAB_PAGE
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KUrl>
@@ -42,7 +45,7 @@ class KBookmark;
class WebPage;
-class NewTabPage : public QObject
+class REKONQ_TESTS_EXPORT NewTabPage : public QObject
{
Q_OBJECT
diff --git a/src/rekonqpage/previewselectorbar.h b/src/rekonqpage/previewselectorbar.h
index fa71bdfa..bb9f26c4 100644
--- a/src/rekonqpage/previewselectorbar.h
+++ b/src/rekonqpage/previewselectorbar.h
@@ -29,6 +29,7 @@
#define PREVIEWSELECTORBAR_H
// Local Includes
+#include "rekonqprivate_export.h"
#include "webpage.h"
// Qt Includes
@@ -37,7 +38,7 @@
#include <QLabel>
-class PreviewSelectorBar : public QWidget
+class REKONQ_TESTS_EXPORT PreviewSelectorBar : public QWidget
{
Q_OBJECT
diff --git a/src/sessionmanager.h b/src/sessionmanager.h
index baa6ac22..613b050f 100644
--- a/src/sessionmanager.h
+++ b/src/sessionmanager.h
@@ -30,6 +30,9 @@
#define SESSION_MANAGER_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -38,7 +41,7 @@
/**
* Session Management
*/
-class SessionManager : public QObject
+class REKONQ_TESTS_EXPORT SessionManager : public QObject
{
Q_OBJECT
public:
diff --git a/src/settings/settingsdialog.h b/src/settings/settingsdialog.h
index da1415c4..54494a00 100644
--- a/src/settings/settingsdialog.h
+++ b/src/settings/settingsdialog.h
@@ -29,6 +29,9 @@
#define SETTINGS_DIALOG_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KConfigDialog>
@@ -37,7 +40,7 @@ class QWidget;
class Private;
-class SettingsDialog : public KConfigDialog
+class REKONQ_TESTS_EXPORT SettingsDialog : public KConfigDialog
{
Q_OBJECT
diff --git a/src/urlbar/lineedit.h b/src/urlbar/lineedit.h
index 0fca21d4..1ac3af2e 100644
--- a/src/urlbar/lineedit.h
+++ b/src/urlbar/lineedit.h
@@ -30,6 +30,9 @@
#define LINEEDIT_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KLineEdit>
@@ -39,7 +42,7 @@ class QFocusEvent;
class QKeyEvent;
-class LineEdit : public KLineEdit
+class REKONQ_TESTS_EXPORT LineEdit : public KLineEdit
{
Q_OBJECT
diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h
index 6d24e599..39911bb2 100644
--- a/src/urlbar/urlbar.h
+++ b/src/urlbar/urlbar.h
@@ -32,6 +32,7 @@
// Local Includes
+#include "rekonqprivate_export.h"
#include "lineedit.h"
// KDE Includes
@@ -47,7 +48,7 @@ class QWidget;
class KCompletion;
-class UrlBar : public KHistoryComboBox
+class REKONQ_TESTS_EXPORT UrlBar : public KHistoryComboBox
{
Q_OBJECT
diff --git a/src/walletbar.h b/src/walletbar.h
index 77257f69..efb28a8f 100644
--- a/src/walletbar.h
+++ b/src/walletbar.h
@@ -28,6 +28,9 @@
#define WALLET_BAR_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// Qt Includes
#include <QWidget>
#include <QString>
@@ -35,7 +38,7 @@
#include <QLabel>
-class WalletBar : public QWidget
+class REKONQ_TESTS_EXPORT WalletBar : public QWidget
{
Q_OBJECT
diff --git a/src/webinspectorpanel.h b/src/webinspectorpanel.h
index dac54648..bb196b5c 100644
--- a/src/webinspectorpanel.h
+++ b/src/webinspectorpanel.h
@@ -29,6 +29,9 @@
// Local Includes
+#include "rekonqprivate_export.h"
+
+// Local Includes
#include "mainwindow.h"
// Qt Includes
@@ -38,7 +41,7 @@
Docked web inspector
behaviour : hide/show by tab, not globally
*/
-class WebInspectorPanel : public QDockWidget
+class REKONQ_TESTS_EXPORT WebInspectorPanel : public QDockWidget
{
Q_OBJECT
public:
diff --git a/src/webpage.h b/src/webpage.h
index c9b78927..76927725 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -34,6 +34,7 @@
// Local Includes
+#include "rekonqprivate_export.h"
#include "protocolhandler.h"
#include "newtabpage.h"
@@ -48,7 +49,7 @@ class QWebFrame;
class QNetworkReply;
-class WebPage : public KWebPage
+class REKONQ_TESTS_EXPORT WebPage : public KWebPage
{
Q_OBJECT
diff --git a/src/webpluginfactory.h b/src/webpluginfactory.h
index 384f0653..74bca043 100644
--- a/src/webpluginfactory.h
+++ b/src/webpluginfactory.h
@@ -29,6 +29,9 @@
#define WEB_PLUGIN_FACTORY_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KWebPluginFactory>
@@ -37,7 +40,7 @@
#include <QtGui/QWidget>
-class WebPluginFactory : public KWebPluginFactory
+class REKONQ_TESTS_EXPORT WebPluginFactory : public KWebPluginFactory
{
Q_OBJECT
diff --git a/src/websnap.h b/src/websnap.h
index 30441e02..54f63503 100644
--- a/src/websnap.h
+++ b/src/websnap.h
@@ -29,6 +29,9 @@
#ifndef WEB_SNAP_H
#define WEB_SNAP_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KUrl>
@@ -47,7 +50,7 @@
* on that.
* Heavily based on Graphics-Dojo WebSnap example (thanks!)
*/
-class WebSnap : public QObject
+class REKONQ_TESTS_EXPORT WebSnap : public QObject
{
Q_OBJECT
diff --git a/src/webtab.h b/src/webtab.h
index 7fd63b18..9837cd63 100644
--- a/src/webtab.h
+++ b/src/webtab.h
@@ -29,6 +29,9 @@
#define WEBTAB_H
+// Local Includes
+#include "rekonqprivate_export.h"
+
// KDE Includes
#include <KUrl>
@@ -40,7 +43,7 @@ class WebPage;
class WebView;
-class WebTab : public QWidget
+class REKONQ_TESTS_EXPORT WebTab : public QWidget
{
Q_OBJECT
diff --git a/src/webview.h b/src/webview.h
index 6d75c549..b0700e8f 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -29,6 +29,9 @@
#define WEBVIEW_H
// Local Includes
+#include "rekonqprivate_export.h"
+
+// Local Includes
#include "application.h"
// KDE Includes
@@ -38,7 +41,7 @@
class WebPage;
-class WebView : public KWebView
+class REKONQ_TESTS_EXPORT WebView : public KWebView
{
Q_OBJECT