#= Global Definitions
#-------------------------------------------------------------------------------
-add_definitions(${QT_DEFINITIONS})
+add_definitions(${QT_DEFINITIONS} -DQT_NO_KEYWORDS)
add_definitions(-D__STDC_LIMIT_MACROS)
add_definitions(-Wall -Wextra)
add_definitions(-std=c++11)
static void annotation_callback(srd_proto_data *pdata,
void *decoder);
-private slots:
+private Q_SLOTS:
void on_new_frame();
void on_data_received();
void on_frame_ended();
-signals:
+Q_SIGNALS:
void new_decode_data();
private:
virtual void run();
-signals:
+Q_SIGNALS:
void config_changed();
protected:
void set_serial_connection();
-private slots:
+private Q_SLOTS:
void device_selected(int index);
void scan_pressed();
void closeEvent(QCloseEvent*);
-private slots:
+private Q_SLOTS:
void on_progress_updated();
private:
*/
void update_device_list();
-private slots:
+private Q_SLOTS:
void load_file(QString file_name);
private:
void showEvent(QShowEvent *e);
-private slots:
+private Q_SLOTS:
void on_probe_checked(QWidget *widget);
void enable_all_probes();
void commit();
-private slots:
+private Q_SLOTS:
void on_state_changed(int);
private:
void commit();
-private slots:
+private Q_SLOTS:
void on_value_changed(double);
private:
void commit();
-private slots:
+private Q_SLOTS:
void on_current_item_changed(int);
private:
void commit();
-private slots:
+private Q_SLOTS:
void on_value_changed(int);
private:
void commit();
-private slots:
+private Q_SLOTS:
void on_text_edited(const QString&);
private:
std::thread _sampling_thread;
-signals:
+Q_SIGNALS:
void capture_state_changed(int state);
void signals_changed();
private:
void store_proc(std::shared_ptr<pv::data::LogicSnapshot> snapshot);
-signals:
+Q_SIGNALS:
void progress_updated();
private:
void set_capture_state(pv::SigSession::capture_state state);
-signals:
+Q_SIGNALS:
void run_stop();
private:
void commit_sample_rate();
void commit_sample_count();
-private slots:
+private Q_SLOTS:
void on_device_selected();
void on_sample_count_changed();
void on_sample_rate_changed();
void commit_probes();
-private slots:
+private Q_SLOTS:
void on_new_decode_data();
void on_delete();
void keyPressEvent(QKeyEvent *e);
-private slots:
+private Q_SLOTS:
void on_signals_changed();
void on_signals_moved();
void on_trace_changed();
-signals:
+Q_SIGNALS:
void signals_moved();
private:
int action_match(QAction *action);
void populate_popup_form(QWidget *parent, QFormLayout *form);
-private slots:
+private Q_SLOTS:
void on_trigger();
private:
public:
MarginWidget(pv::view::View &parent);
-public slots:
+public Q_SLOTS:
virtual void clear_selection();
-signals:
+Q_SIGNALS:
void selection_changed();
void geometry_updated();
*/
void draw_hover_mark(QPainter &p);
-private slots:
+private Q_SLOTS:
void hover_point_changed();
};
bool eventFilter(QObject *obj, QEvent *evt);
-private slots:
+private Q_SLOTS:
void on_disable();
protected:
pv::widgets::Popup* create_popup(QWidget *parent);
-private slots:
+private Q_SLOTS:
void on_value_changed(double value);
-signals:
+Q_SIGNALS:
void time_changed();
protected:
void close_popup();
-private slots:
+private Q_SLOTS:
void on_text_changed(const QString &text);
void on_colour_changed(const QColor &colour);
void on_popup_closed();
-signals:
+Q_SIGNALS:
void visibility_changed();
void text_changed();
void colour_changed();
void update_viewport();
-signals:
+Q_SIGNALS:
void hover_point_changed();
void signals_moved();
void resizeEvent(QResizeEvent *e);
-private slots:
+private Q_SLOTS:
void h_scroll_value_changed(int value);
void v_scroll_value_changed(int value);
void wheelEvent(QWheelEvent *event);
bool touchEvent(QTouchEvent *e);
-private slots:
+private Q_SLOTS:
void on_signals_changed();
void on_signals_moved();
private:
void paintEvent(QPaintEvent *e);
-private slots:
+private Q_SLOTS:
void on_clicked(bool);
void on_selected(int row, int col);
-signals:
+Q_SIGNALS:
void selected(const QColor &colour);
private:
QWellArray& well_array();
-signals:
+Q_SIGNALS:
void selected(int row, int col);
-private slots:
+private Q_SLOTS:
void colour_selected(int, int);
private:
void set_decoder_visible(bool visible);
-signals:
+Q_SIGNALS:
void delete_decoder();
void show_hide_decoder();
static int decoder_name_cmp(const void *a, const void *b);
-private slots:
+private Q_SLOTS:
void on_action(QObject *action);
-signals:
+Q_SIGNALS:
void decoder_selected(srd_decoder *decoder);
private:
protected:
void showEvent(QShowEvent *e);
-signals:
+Q_SIGNALS:
void closed();
private:
void set_popup(Popup *popup);
-private slots:
+private Q_SLOTS:
void on_clicked(bool);
private:
uint64_t value() const;
void set_value(uint64_t value);
-signals:
+Q_SIGNALS:
void value_changed();
private:
updateCell(oldRow, oldCol);
updateCell(selRow, selCol);
if (row >= 0)
- emit selected(row, col);
+ Q_EMIT selected(row, col);
}
void QWellArray::focusInEvent(QFocusEvent*)
inline void updateCell(int row, int column) { update(cellGeometry(row, column)); }
-signals:
+Q_SIGNALS:
void selected(int row, int col);
protected:
switch(sig_number)
{
case SIGINT:
- emit int_received();
+ Q_EMIT int_received();
break;
case SIGTERM:
- emit term_received();
+ Q_EMIT term_received();
break;
}
public:
explicit SignalHandler(QObject* parent = NULL);
-signals:
+Q_SIGNALS:
void int_received();
void term_received();
-private slots:
+private Q_SLOTS:
void on_socket_notifier_activated();
private: