Skip to content

Commit

Permalink
fix dox + header layout
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 16, 2020
1 parent 29382d0 commit 1763626
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/gui/qgssvgbrowserwidget.h
Expand Up @@ -40,36 +40,34 @@ class GUI_EXPORT QgsSvgBrowserWidget : public QWidget, private Ui::QgsSvgBrowser
//! Constructor
explicit QgsSvgBrowserWidget( QWidget *parent = nullptr );

//! Sets the current path of SVG
void setPath( const QString &path );

//! Returns the current path
QString path() const {return mPath;}

void showEvent( QShowEvent *event ) override;

// TODO QGIS 4: make private
void populateList() SIP_SKIP;

//! Populates the list of SVG locations
void populateList() SIP_SKIP; // TODO QGIS 4: make private

signals:
void pathChanged( const QString &path );

protected:
void showEvent( QShowEvent *event ) override;

private slots:
void onSelectionChange( const QModelIndex index );

private:
void updateSelection();
void populateIcons( const QModelIndex &idx );


// store the path to be used to update selection
QString mPath;
bool mListPopulated = false;
bool mSelectionDirty = true;
int mIconSize = 30;

signals:


};

#endif // QGSSVGBROWSERWIDGET_H

0 comments on commit 1763626

Please sign in to comment.