Skip to content
Permalink
Browse files
Remove some unused widget imports from core library
  • Loading branch information
nyalldawson committed May 19, 2021
1 parent 4e4f7cf commit c543a57b8318fe0f3b9b45f0ea082a2ca98caebc
@@ -12,7 +12,6 @@




class QgsLocatorModelBridge : QObject
{
%Docstring(signature="appended")
@@ -95,8 +95,6 @@ Base class for all items in the model

virtual QWidget *paramWidget() /Factory/;

virtual QList<QAction *> actions();

virtual bool acceptDrop();

virtual bool handleDrop( const QMimeData * /*data*/, Qt::DropAction /*action*/ );
@@ -43,6 +43,7 @@
#include <QDesktopWidget>
#else
#include <QScreen>
#include <QWidget>
#endif
#include <QTextBoundaryFinder>

@@ -75,7 +76,6 @@
#include "callouts/qgscalloutsregistry.h"
#include "qgsvectortilelayer.h"
#include "qgsvectortilebasiclabeling.h"
#include <QMessageBox>

using namespace pal;

@@ -26,7 +26,6 @@
#include <QDomElement>
#include <QMimeData>
#include <QSettings>
#include <QMessageBox>
#include <QIcon>
#include <QIODevice>

@@ -18,7 +18,6 @@
#ifndef QGSLOCATORFILTER_H
#define QGSLOCATORFILTER_H

#include <QAction>
#include <QIcon>
#include <QString>
#include <QVariant>
@@ -25,8 +25,6 @@
#include "qgscoordinatetransformcontext.h"
#include "qgsrectangle.h"

class QAction;

class QgsLocatorResult;
class QgsLocator;
class QgsLocatorContext;
@@ -1379,12 +1379,6 @@ bool QgsProject::readProjectFile( const QString &filename, QgsProject::ReadFlags

if ( !doc->setContent( &projectFile, &errorMsg, &line, &column ) )
{
// want to make this class as GUI independent as possible; so commented out
#if 0
QMessageBox::critical( 0, tr( "Read Project File" ),
tr( "%1 at line %2 column %3" ).arg( errorMsg ).arg( line ).arg( column ) );
#endif

QString errorString = tr( "Project file read error in file %1: %2 at line %3 column %4" )
.arg( projectFile.fileName(), errorMsg ).arg( line ).arg( column );

@@ -28,9 +28,7 @@
#include "symbology/qgsstyle.h"

#include <QFileInfo>
#include <QAction>
#include <mutex>
#include <QMessageBox>
#include <QUrlQuery>
#include <QUrl>

@@ -48,7 +48,6 @@
#include <QImage>
#include <QColor>
#include <QProcess>
#include <QMessageBox>
#include <QDir>
#include <QFileInfo>
#include <QFile>
@@ -23,8 +23,6 @@
#include "qgsgeopackagerasterwriter.h"
#include "qgscplerrorhandler.h"

#include <QMessageBox>

QgsGeoPackageRasterWriter::QgsGeoPackageRasterWriter( const QgsMimeDataUtils::Uri &sourceUri, const QString &outputUrl ):
mSourceUri( sourceUri ),
mOutputUrl( outputUrl )
@@ -32,8 +32,6 @@

#include <QFileInfo>
#include <QTextStream>
#include <QAction>
#include <QMessageBox>
#include <QInputDialog>
#include <QFileDialog>
#include <QRegularExpression>
@@ -23,10 +23,6 @@
#include "qgssettings.h"

#include "qgslogger.h"
#include <QInputDialog>
#include <QMessageBox>



QgsOgrDbConnection::QgsOgrDbConnection( const QString &connName, const QString &settingsKey )
: mConnName( connName )
@@ -20,7 +20,6 @@
#include <QSet>
#include <QString>
#include <QIcon>
#include <QAction>
#include <QUuid>

#include "qgsexpressioncontext.h"
@@ -255,7 +254,6 @@ class CORE_EXPORT QgsAction
bool mCaptureOutput = false;
QSet<QString> mActionScopes;
QString mNotificationMessage;
mutable std::shared_ptr<QAction> mAction;
QUuid mId;
QgsExpressionContextScope mExpressionContextScope;
bool mIsEnabledOnlyWhenEditable = false;
@@ -24,8 +24,6 @@
#include "qgsrenderer.h"
#include "qgsvectorlayer.h"

#include <QInputDialog>

QgsMapThemeCollection::QgsMapThemeCollection( QgsProject *project )
: mProject( project )
{
@@ -46,7 +46,6 @@
#include <QDomDocument>
#include <QDomNode>
#include <QFile>
#include <QMessageBox>
#include <QRegularExpression>

#include <ogr_srs_api.h>
@@ -27,8 +27,6 @@
#include "qgsowsconnection.h"
#include "qgssettings.h"

#include <QInputDialog>
#include <QMessageBox>
#include <QPicture>
#include <QUrl>
#include <QNetworkRequest>
@@ -75,7 +75,6 @@ email : tim at linfiniti.com
#include <QImage>
#include <QLabel>
#include <QList>
#include <QMessageBox>
#include <QPainter>
#include <QPixmap>
#include <QRegExp>
@@ -19,10 +19,6 @@
#include <QDateTime>
#include <QDir>
#include <QFileInfo>
#include <QMenu>
#include <QMouseEvent>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QVector>
#include <QStyle>
#include <QDomDocument>
@@ -25,7 +25,6 @@
#include <QAbstractItemModel>
#include <QIcon>
#include <QMimeData>
#include <QAction>

class QgsCptCityColorRamp;
class QgsCptCityDataItem;
@@ -145,9 +144,6 @@ class CORE_EXPORT QgsCptCityDataItem : public QObject

virtual QWidget *paramWidget() SIP_FACTORY { return nullptr; }

// list of actions provided by this item - usually used for popup menu on right-click
virtual QList<QAction *> actions() { return QList<QAction *>(); }

// whether accepts drag&drop'd layers - e.g. for import
virtual bool acceptDrop() { return false; }

0 comments on commit c543a57

Please sign in to comment.