┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kitemlistroleeditor.h
diff options
context:
space:
mode:
authorSerg Podtynnyi <[email protected]>2023-02-04 00:14:53 +0700
committerSerg Podtynnyi <[email protected]>2023-02-05 12:45:38 +0700
commit38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch)
tree886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/kitemviews/private/kitemlistroleeditor.h
parentffff8af851e3a386c44438337779d0ce7ca98a61 (diff)
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/kitemviews/private/kitemlistroleeditor.h')
-rw-r--r--src/kitemviews/private/kitemlistroleeditor.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/kitemviews/private/kitemlistroleeditor.h b/src/kitemviews/private/kitemlistroleeditor.h
index a0f55df51..18304374d 100644
--- a/src/kitemviews/private/kitemlistroleeditor.h
+++ b/src/kitemviews/private/kitemlistroleeditor.h
@@ -11,15 +11,14 @@
#include <KTextEdit>
-enum EditResultDirection{
+enum EditResultDirection {
EditDone,
EditNext,
EditPrevious,
};
Q_DECLARE_METATYPE(EditResultDirection)
-struct EditResult
-{
+struct EditResult {
QString newName;
EditResultDirection direction;
};
@@ -39,22 +38,22 @@ class DOLPHIN_EXPORT KItemListRoleEditor : public KTextEdit
Q_OBJECT
public:
- explicit KItemListRoleEditor(QWidget* parent);
+ explicit KItemListRoleEditor(QWidget *parent);
~KItemListRoleEditor() override;
- void setRole(const QByteArray& role);
+ void setRole(const QByteArray &role);
QByteArray role() const;
void setAllowUpDownKeyChainEdit(bool allowChainEdit);
- bool eventFilter(QObject* watched, QEvent* event) override;
+ bool eventFilter(QObject *watched, QEvent *event) override;
Q_SIGNALS:
- void roleEditingFinished(const QByteArray& role, const QVariant& value);
- void roleEditingCanceled(const QByteArray& role, const QVariant& value);
+ void roleEditingFinished(const QByteArray &role, const QVariant &value);
+ void roleEditingCanceled(const QByteArray &role, const QVariant &value);
protected:
- bool event(QEvent* event) override;
- void keyPressEvent(QKeyEvent* event) override;
+ bool event(QEvent *event) override;
+ void keyPressEvent(QKeyEvent *event) override;
private Q_SLOTS:
/**