]> git.lyx.org Git - features.git/commitdiff
Move settings into grid
authorPavel Sanda <sanda@lyx.org>
Sun, 3 Jan 2010 00:38:07 +0000 (00:38 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 3 Jan 2010 00:38:07 +0000 (00:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32748 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiProgressView.cpp
src/frontends/qt4/ui/ProgressViewUi.ui

index 315560f9e3d4b10148d2b7ed1a846656aab1297d..79401b863519db3486170994bf62c016f21f7cfd 100644 (file)
@@ -65,11 +65,11 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
 
 
        const int levelCount = Debug::levelCount();
-       for (int i = 0; i < levelCount; i++) {
+       for (int i = 1; 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);
+               widget_->settingsLayout->addWidget(box,i%10,i/10);
                // TODO settings
                box->setChecked(false);
                level_buttons << box;
index cffcdef8adc7ede95662433d99f7ea1c9b2d68a1..28029f0bf39b0a64352dc720c226dbd4036aff66 100644 (file)
           </property>
           <layout class="QVBoxLayout" name="verticalLayout_4" >
            <item>
-            <layout class="QVBoxLayout" name="settingsLayout" >
-             <item>
+            <layout class="QGridLayout" name="settingsLayout" >
+             <item row="0" column="0" >
               <widget class="QCheckBox" name="autoClearCB" >
                <property name="toolTip" >
                 <string>Automatic cleanup of the window before LaTeX compilation proceeds</string>