From 91fe84841da7c529572c4e14d1a326ae42366932 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 28 Jan 2022 14:27:34 +0100 Subject: [PATCH] Merge pull request #47045 from qgis/3nids-patch-2 remove lost file --- src/gui/qgsfilesourcelineedit.h | 92 --------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 src/gui/qgsfilesourcelineedit.h diff --git a/src/gui/qgsfilesourcelineedit.h b/src/gui/qgsfilesourcelineedit.h deleted file mode 100644 index acc9095496b..00000000000 --- a/src/gui/qgsfilesourcelineedit.h +++ /dev/null @@ -1,92 +0,0 @@ -/*************************************************************************** - qgssvgsourcelineedit.h - --------------------- - begin : July 2018 - copyright : (C) 2018 by Nyall Dawson - email : nyall dot dawson at gmail dot com - *************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#ifndef QGSSVGSOURCELINEEDIT_H -#define QGSSVGSOURCELINEEDIT_H - -#include "qgis_gui.h" -#include "qgis_sip.h" -#include - -class QLineEdit; -class QToolButton; - -/** - * \ingroup gui - * \class QgsSvgSourceLineEdit - * \brief A line edit widget with toolbutton for setting an SVG image path. - * \since QGIS 3.4 - */ -class GUI_EXPORT QgsSvgSourceLineEdit : public QWidget -{ - Q_OBJECT - Q_PROPERTY( QString source READ source WRITE setSource NOTIFY sourceChanged ) - - public: - - /** - * Constructor for QgsSvgSourceLineEdit, with the specified \a parent widget. - */ - QgsSvgSourceLineEdit( QWidget *parent SIP_TRANSFERTHIS = nullptr ); - - /** - * Returns the current SVG source. - * \see setSource() - * \see sourceChanged() - */ - QString source() const; - - /** - * Sets a specific settings \a key to use when storing the last - * used path for the SVG source. - */ - void setLastPathSettingsKey( const QString &key ); - - public slots: - - /** - * Sets a new \a source to show in the widget. - * \see source() - * \see sourceChanged() - */ - void setSource( const QString &source ); - - signals: - - /** - * Emitted whenever the SVG source is changed in the widget. - */ - void sourceChanged( const QString &source ); - - private slots: - void selectFile(); - void selectUrl(); - void embedFile(); - void extractFile(); - void mFileLineEdit_textEdited( const QString &text ); - void mFileLineEdit_editingFinished(); - - private: - - QLineEdit *mFileLineEdit = nullptr; - QToolButton *mFileToolButton = nullptr; - QString mLastPathKey; - - QString defaultPath() const; - QString settingsKey() const; - -}; - -#endif