- Debug::Type const levels = lyxerr.level();
- // number of initial items in settings tab
- int const level_count = Debug::levelCount();
- for (int i = 0 ; i < level_count; i++) {
+ connect(widget_->debugNoneRB, SIGNAL(clicked()),
+ this, SLOT(debugSelectionChanged()));
+ connect(widget_->debugSelectedRB, SIGNAL(clicked()),
+ this, SLOT(debugSelectionChanged()));
+ connect(widget_->debugAnyRB, SIGNAL(clicked()),
+ this, SLOT(debugSelectionChanged()));
+ widget_->debugMessagesTW->setEnabled(false);
+ widget_->debugNoneRB->setChecked(true);
+
+ // ignore Debug::NONE and Debug::ANY
+ int const level_count = Debug::levelCount() - 1;
+ QTreeWidgetItem * item = 0;
+ widget_->debugMessagesTW->setColumnCount(2);
+ widget_->debugMessagesTW->headerItem()->setText(0, qt_("Debug Level"));
+ widget_->debugMessagesTW->headerItem()->setText(1, qt_("Set"));
+ for (int i = 1 ; i < level_count; i++) {
+ item = new QTreeWidgetItem(widget_->debugMessagesTW);