17#include "pimcommon_export.h"
26class SimpleStringListEditorPrivate;
34 Q_PROPERTY(
QStringList stringList READ stringList WRITE setStringList NOTIFY changed USER
true)
36 enum ButtonCode : uint8_t {
44 All = Add | Remove | Modify | Up | Down,
45 Unsorted = Add | Remove | Modify
50 ButtonCode buttons = Unsorted,
67 void setButtonText(ButtonCode button,
const QString &text);
69 void setUpDownAutoRepeat(
bool b);
70 [[nodiscard]]
QSize sizeHint()
const override;
72 virtual void addNewEntry();
76 void setAddDialogLabel(
const QString &addDialogLabel);
77 void setAddDialogTitle(
const QString &str);
79 void setModifyDialogTitle(
const QString &str);
80 void setModifyDialogLabel(
const QString &str);
82 void setRemoveDialogLabel(
const QString &removeDialogLabel);
92 void insertNewEntry(
const QString &newEntry);
100 void slotCustomize();
102 void slotSelectionChanged();
105 PIMCOMMON_NO_EXPORT
void slotContextMenu(
const QPoint &);
106 PIMCOMMON_NO_EXPORT
bool containsString(
const QString &str);
107 std::unique_ptr<SimpleStringListEditorPrivate>
const d;
The SimpleStringListEditor class.
void aboutToAdd(QString &)
Connected slots can alter the argument to be added or set the argument to QString() to suppress addin...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:55 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.