mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
Setup checboxes according to initial values from commandline.
ProgressView seems to be prepared for use. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32761 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5cc2d6d73c
commit
51086affa7
@ -65,6 +65,7 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
|
||||
widget_->tabWidget->widget(0)->setContentsMargins(-5, -7, 0, -7);
|
||||
|
||||
|
||||
Debug::Type levels = lyxerr.level();
|
||||
// number of initial items in settings tab
|
||||
int shift = 3;
|
||||
const int levelCount = Debug::levelCount();
|
||||
@ -73,8 +74,14 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
|
||||
LevelButton * box = new LevelButton(toqstr(Debug::description(level)));
|
||||
box->level = level;
|
||||
widget_->settingsLayout->addWidget(box, (i + shift) % 10, (i + shift) / 10);
|
||||
// TODO settings
|
||||
box->setChecked(false);
|
||||
|
||||
if ((levels == Debug::ANY) && (levels == level))
|
||||
box->setChecked(true);
|
||||
else
|
||||
if ((level != Debug::ANY) && (levels & level))
|
||||
box->setChecked(true);
|
||||
|
||||
level_buttons << box;
|
||||
connect(box, SIGNAL(stateChanged(int)), this, SLOT(levelChanged()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user