]> sigrok.org Git - pulseview.git/blobdiff - pv/subwindows/decoder_selector/subwindow.hpp
Fix some clang-tidy complaints
[pulseview.git] / pv / subwindows / decoder_selector / subwindow.hpp
index 6c3016e86cb831a854f7b54d990657bcf30c145c..f4ec022329b425d63f48f3be766a0b9b40b23582 100644 (file)
@@ -65,7 +65,7 @@ class DecoderCollectionModel : public QAbstractItemModel
        Q_OBJECT
 
 public:
-       DecoderCollectionModel(QObject* parent = 0);
+       DecoderCollectionModel(QObject* parent = nullptr);
 
        QVariant data(const QModelIndex& index, int role) const override;
        Qt::ItemFlags flags(const QModelIndex& index) const override;
@@ -99,7 +99,7 @@ public:
        void currentChanged(const QModelIndex& current, const QModelIndex& previous);
 
 Q_SIGNALS:
-       void currentChanged(const QModelIndex& current);
+       void current_changed(const QModelIndex& current);
 };
 
 class SubWindow : public SubWindowBase
@@ -112,7 +112,7 @@ public:
        bool has_toolbar() const;
        QToolBar* create_toolbar(QWidget *parent) const;
 
-       const srd_decoder* get_srd_decoder_from_id(QString id) const;
+       int minimum_width() const;
 
        /**
         * Returns a list of input types that a given protocol decoder requires
@@ -134,6 +134,7 @@ public Q_SLOTS:
        void on_item_activated(const QModelIndex& index);
 
        void on_filter_changed(const QString& text);
+       void on_filter_return_pressed();
 
 private:
        QSplitter* splitter_;
@@ -146,7 +147,7 @@ private:
        QCustomSortFilterProxyModel* sort_filter_model_;
 };
 
-} // decoder_selector
+} // namespace decoder_selector
 } // namespace subwindows
 } // namespace pv