4#ifndef STRINGLISTEDITOR_H
5#define STRINGLISTEDITOR_H
7#include "ui_stringlisteditor.h"
8#include <QtCore/qstringlist.h>
11class QStringListModel;
24 QWidget *parent,
const QStringList &init = QStringList(),
int *result =
nullptr);
28 void downButtonClicked();
29 void newButtonClicked();
30 void deleteButtonClicked();
31 void valueEdited(
const QString &text);
32 void currentIndexChanged(
const QModelIndex ¤t,
const QModelIndex &previous);
33 void currentValueChanged();
36 StringListEditor(QWidget *parent =
nullptr);
38 int currentIndex()
const;
39 void setCurrentIndex(
int index);
41 QString stringAt(
int index)
const;
42 void setStringAt(
int index,
const QString &value);
43 void removeString(
int index);
44 void insertString(
int index,
const QString &value);
45 void editString(
int index);
47 QStringListModel *m_model;
QStringList stringList() const
static QStringList getStringList(QWidget *parent, const QStringList &init=QStringList(), int *result=nullptr)
void setStringList(const QStringList &stringList)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.