ProgressView quirks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32756 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-01-03 17:26:46 +00:00
parent f8a778b9da
commit e4b3af5df5
2 changed files with 22 additions and 3 deletions

View File

@ -62,15 +62,17 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
font.setFixedPitch(true);
font.setStyleHint(QFont::TypeWriter);
widget_->outTE->setFont(font);
widget_->tabWidget->widget(0)->setContentsMargins(-5,-7,0,-7);
widget_->tabWidget->widget(0)->setContentsMargins(-5, -7, 0, -7);
// number of initial items in settings tab
int shift = 3;
const int levelCount = Debug::levelCount();
for (int i = 1; i <= levelCount; i++) {
for (int i = 0 ; i < levelCount; i++) {
const Debug::Type level = Debug::value(i);
LevelButton * box = new LevelButton(toqstr(Debug::description(level)));
box->level = level;
widget_->settingsLayout->addWidget(box,i%10,i/10);
widget_->settingsLayout->addWidget(box, (i + shift) % 10, (i + shift) / 10);
// TODO settings
box->setChecked(false);
level_buttons << box;

View File

@ -127,6 +127,23 @@
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QCheckBox" name="sbarCB" >
<property name="text" >
<string>Statusbar messages</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>----- Debugging levels -----</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>