17 #ifndef QGSSVGSELECTORWIDGET_H
18 #define QGSSVGSELECTORWIDGET_H
20 #include "ui_widget_svgselector.h"
24 #include <QAbstractListModel>
26 #include <QDialogButtonBox>
28 #include <QStandardItemModel>
46 int rowCount(
const QModelIndex & parent = QModelIndex() )
const;
48 QVariant data(
const QModelIndex &
index,
int role = Qt::DisplayRole )
const;
60 void createTree( QStandardItem* &parentGroup );
74 QString currentSvgPath()
const;
75 QString currentSvgPathToName()
const;
86 void setSvgPath(
const QString& svgPath );
89 void svgSelected(
const QString& path );
95 void populateIcons(
const QModelIndex& idx );
96 void svgSelectionChanged(
const QModelIndex& idx );
97 void updateCurrentSvgPath(
const QString& svgPath );
99 void on_mFilePushButton_clicked();
100 void updateLineEditFeedback(
bool ok, QString tip = QString(
"" ) );
101 void on_mFileLineEdit_textChanged(
const QString& text );
104 QString mCurrentSvgPath;
112 QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
113 Qt::Orientation orientation = Qt::Horizontal );
117 QVBoxLayout*
layout() {
return mLayout; }
131 #endif // QGSSVGSELECTORWIDGET_H