enable_all_named_channels_.setFlat(true);
enable_all_changing_channels_.setFlat(true);
- buttons_bar_.addWidget(&enable_all_channels_);
- buttons_bar_.addWidget(&disable_all_channels_);
- buttons_bar_.addWidget(&enable_all_logic_channels_);
- buttons_bar_.addWidget(&enable_all_analog_channels_);
- buttons_bar_.addWidget(&enable_all_named_channels_);
- buttons_bar_.addWidget(&enable_all_changing_channels_);
- buttons_bar_.addStretch(1);
+ buttons_bar_.addWidget(&enable_all_channels_, 0, 0);
+ buttons_bar_.addWidget(&disable_all_channels_, 0, 1);
+ buttons_bar_.addWidget(&enable_all_logic_channels_, 1, 0);
+ buttons_bar_.addWidget(&enable_all_analog_channels_, 1, 1);
+ buttons_bar_.addWidget(&enable_all_named_channels_, 1, 2);
+ buttons_bar_.addWidget(&enable_all_changing_channels_, 1, 3);
layout_.addRow(&buttons_bar_);
#include <memory>
#include <vector>
+#include <QCheckBox>
#include <QFormLayout>
-#include <QHBoxLayout>
+#include <QGridLayout>
#include <QPushButton>
#include <QSignalMapper>
using std::shared_ptr;
using std::vector;
-class QCheckBox;
-class QGridLayout;
-
namespace sigrok {
class ChannelGroup;
}
check_box_signal_map_;
map< shared_ptr<sigrok::ChannelGroup>, QLabel*> group_label_map_;
- QHBoxLayout buttons_bar_;
+ QGridLayout buttons_bar_;
QPushButton enable_all_channels_, disable_all_channels_;
QPushButton enable_all_logic_channels_, enable_all_analog_channels_;
QPushButton enable_all_named_channels_, enable_all_changing_channels_;