Q_OBJECT
public:
-
- explicit KItemListKeyboardSearchManager(QObject* parent = nullptr);
+ explicit KItemListKeyboardSearchManager(QObject *parent = nullptr);
~KItemListKeyboardSearchManager() override;
/**
* Add \a keys to the text buffer used for searching.
*/
- void addKeys(const QString& keys);
+ void addKeys(const QString &keys);
/**
* @returns true if the next call to addKeys() will trigger a new search.
* Returns false if the next added key char will be added to the search string that was used previously.
public Q_SLOTS:
void slotCurrentChanged(int current, int previous);
- void slotSelectionChanged(const KItemSet& current, const KItemSet& previous);
+ void slotSelectionChanged(const KItemSet ¤t, const KItemSet &previous);
Q_SIGNALS:
/**
*/
// TODO: Think about getting rid of the bool parameter
// (see https://doc.qt.io/archives/qq/qq13-apis.html#thebooleanparametertrap)
- void changeCurrentItem(const QString& string, bool searchFromNextItem);
+ void changeCurrentItem(const QString &string, bool searchFromNextItem);
private:
bool shouldClearSearchIfInputTimeReached();
};
#endif
-
-