Changeset View
Changeset View
Standalone View
Standalone View
debug_console.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | 132 | public: | |||
---|---|---|---|---|---|
151 | void swipeGestureCancelled(quint32 time) override; | 151 | void swipeGestureCancelled(quint32 time) override; | ||
152 | 152 | | |||
153 | void switchEvent(SwitchEvent *event) override; | 153 | void switchEvent(SwitchEvent *event) override; | ||
154 | 154 | | |||
155 | private: | 155 | private: | ||
156 | QTextEdit *m_textEdit; | 156 | QTextEdit *m_textEdit; | ||
157 | }; | 157 | }; | ||
158 | 158 | | |||
159 | #if HAVE_INPUT | | |||
160 | | ||||
161 | namespace LibInput | 159 | namespace LibInput | ||
162 | { | 160 | { | ||
163 | class Device; | 161 | class Device; | ||
164 | } | 162 | } | ||
165 | 163 | | |||
166 | class InputDeviceModel : public QAbstractItemModel | 164 | class InputDeviceModel : public QAbstractItemModel | ||
167 | { | 165 | { | ||
168 | Q_OBJECT | 166 | Q_OBJECT | ||
169 | public: | 167 | public: | ||
170 | explicit InputDeviceModel(QObject *parent = nullptr); | 168 | explicit InputDeviceModel(QObject *parent = nullptr); | ||
171 | virtual ~InputDeviceModel(); | 169 | virtual ~InputDeviceModel(); | ||
172 | 170 | | |||
173 | int columnCount(const QModelIndex &parent) const override; | 171 | int columnCount(const QModelIndex &parent) const override; | ||
174 | QVariant data(const QModelIndex &index, int role) const override; | 172 | QVariant data(const QModelIndex &index, int role) const override; | ||
175 | QModelIndex index(int row, int column, const QModelIndex & parent) const override; | 173 | QModelIndex index(int row, int column, const QModelIndex & parent) const override; | ||
176 | int rowCount(const QModelIndex &parent) const override; | 174 | int rowCount(const QModelIndex &parent) const override; | ||
177 | QModelIndex parent(const QModelIndex &child) const override; | 175 | QModelIndex parent(const QModelIndex &child) const override; | ||
178 | 176 | | |||
179 | private: | 177 | private: | ||
180 | void setupDeviceConnections(LibInput::Device *device); | 178 | void setupDeviceConnections(LibInput::Device *device); | ||
181 | QVector<LibInput::Device*> m_devices; | 179 | QVector<LibInput::Device*> m_devices; | ||
182 | }; | 180 | }; | ||
183 | #endif | | |||
184 | 181 | | |||
185 | } | 182 | } | ||
186 | 183 | | |||
187 | #endif | 184 | #endif |