Remove unneeded includes of QUrl

parent 71103f6c
......@@ -21,10 +21,11 @@
#include <QObject>
#include <QSet>
#include <QStack>
#include <QUrl>
#include "DownloadPolicy.h"
class QUrl;
namespace Marble
{
......
......@@ -15,7 +15,6 @@
#define MARBLE_HTTPJOB_H
#include <QObject>
#include <QUrl>
#include <QNetworkReply>
#include "MarbleGlobal.h"
......@@ -25,6 +24,7 @@
class QNetworkAccessManager;
class QString;
class QByteArray;
class QUrl;
namespace Marble
{
......
......@@ -12,10 +12,11 @@
#define NULLMARBLEWEBVIEW_H
#include <QWidget>
#include <QUrl>
#include "marble_export.h"
class QUrl;
class MARBLE_EXPORT MarbleWebView : public QWidget
{
Q_OBJECT
......
......@@ -12,7 +12,6 @@
#define NULLTINYWEBBROWSER_H
// Qt
#include <QUrl>
#include <QWidget>
// Marble
......
......@@ -11,7 +11,9 @@
#ifndef MARBLE_SERVERLAYOUT_H
#define MARBLE_SERVERLAYOUT_H
#include <QUrl>
#include <QString>
class QUrl;
namespace Marble
{
......
......@@ -24,6 +24,7 @@
#include <QFileInfo>
#include <QMetaType>
#include <QImage>
#include <QUrl>
#include "GeoSceneTextureTileDataset.h"
#include "GeoSceneTileDataset.h"
......
......@@ -96,7 +96,7 @@ QWebView *TinyWebBrowser::createWindow( QWebPage::WebWindowType type )
return view;
}
void TinyWebBrowser::openExternalLink( QUrl url )
void TinyWebBrowser::openExternalLink( const QUrl& url )
{
QDesktopServices::openUrl( url );
}
......
......@@ -13,13 +13,13 @@
#define MARBLE_TINYWEBBROWSER_H
// Qt
#include <QUrl>
#include <QWebView>
// Marble
#include "marble_export.h"
class QString;
class QUrl;
namespace Marble
{
......@@ -51,7 +51,7 @@ class MARBLE_EXPORT TinyWebBrowser : public QWebView
QWebView *createWindow( QWebPage::WebWindowType type );
private Q_SLOTS:
void openExternalLink( QUrl );
void openExternalLink( const QUrl& );
private:
TinyWebBrowserPrivate * const d;
......
......@@ -16,10 +16,11 @@
#include <QObject>
#include <QDir>
#include <QUrl>
#include <QVector>
#include <QNetworkReply>
class QUrl;
namespace Marble {
class CloudSyncManager;
......
......@@ -10,6 +10,8 @@
#include "RouteItem.h"
#include <QUrl>
namespace Marble {
class Q_DECL_HIDDEN RouteItem::Private {
......
......@@ -11,10 +11,10 @@
#ifndef ROUTEITEM_H
#define ROUTEITEM_H
#include <QUrl>
#include <QIcon>
class QString;
class QUrl;
namespace Marble {
......
......@@ -21,8 +21,6 @@
#include "KmlHrefTagHandler.h"
#include <QUrl>
#include "MarbleDebug.h"
#include "KmlElementDictionary.h"
#include "GeoDataIconStyle.h"
......
......@@ -22,6 +22,7 @@
#include "TileId.h"
#include <QImage>
#include <QUrl>
namespace Marble
{
......
......@@ -16,7 +16,6 @@
#define MARBLE_GEOSCENETILEDATASET_H
#include <QList>
#include <QUrl>
#include <QVector>
#include <QSize>
......@@ -24,6 +23,7 @@
#include "MarbleGlobal.h"
class QStringList;
class QUrl;
/**
* @short Tiled dataset stored in a layer. TextureTile and VectorTile layes inherit from this class.
......
......@@ -17,6 +17,8 @@
#include "DgmlElementDictionary.h"
#include "ServerLayout.h"
#include <QUrl>
namespace Marble
{
......
......@@ -34,7 +34,6 @@
#include "GoToDialog.h"
#include <QTimer>
#include <QUrl>
#include <QHBoxLayout>
#include <QIcon>
#include <QPushButton>
......
......@@ -12,7 +12,6 @@
#define FOURSQUAREPLUGIN_H
#include "AbstractDataPlugin.h"
#include <QUrl>
namespace Marble {
......
......@@ -16,7 +16,6 @@
// Qt
#include <QMutexLocker>
#include <QUrl>
using namespace Marble;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment