25 return path + iconFile;
35 mAddButton->setIcon(
QIcon(
iconPath(
"symbologyAdd.svg" ) ) );
36 mRemoveButton->setIcon(
QIcon(
iconPath(
"symbologyRemove.svg" ) ) );
40 for (
int i = 0; i < ( v.
size() - 1 ); ++i )
46 entry->
setFlags( Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled );
49 mDashSpaceTreeWidget->addTopLevelItem( entry );
58 void QgsDashSpaceDialog::on_mAddButton_clicked()
62 entry->
setFlags( Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled );
65 mDashSpaceTreeWidget->addTopLevelItem( entry );
68 void QgsDashSpaceDialog::on_mRemoveButton_clicked()
74 mDashSpaceTreeWidget->takeTopLevelItem( mDashSpaceTreeWidget->indexOfTopLevelItem( currentItem ) );
81 int nTopLevelItems = mDashSpaceTreeWidget->topLevelItemCount();
82 for (
int i = 0; i < nTopLevelItems; ++i )
static QString defaultThemePath()
Returns the path to the default theme directory.
double toDouble(bool *ok) const
QString iconPath(const QString &iconFile)
QString number(int n, int base)
QgsDashSpaceDialog(const QVector< qreal > &v, QWidget *parent=nullptr, const Qt::WindowFlags &f=nullptr)
const T & at(int i) const
QVector< qreal > dashDotVector() const
static QString activeThemePath()
Returns the path to the currently active theme directory.
void setText(int column, const QString &text)
QString text(int column) const