- change: switch positions of problem case output and expected output
This commit is contained in:
parent
40dec1b9ff
commit
2a0cfe7948
1
NEWS.md
1
NEWS.md
|
@ -10,6 +10,7 @@ Red Panda C++ Version 1.1.6
|
||||||
- fix: inefficient loop when render long lines
|
- fix: inefficient loop when render long lines
|
||||||
- fix: indents for "default" are not the same with "case"
|
- fix: indents for "default" are not the same with "case"
|
||||||
- fix: (wrongly) use the default font to calculate non-ascii characters' width
|
- fix: (wrongly) use the default font to calculate non-ascii characters' width
|
||||||
|
- change: switch positions of problem case output and expected output
|
||||||
|
|
||||||
Red Panda C++ Version 1.1.5
|
Red Panda C++ Version 1.1.5
|
||||||
|
|
||||||
|
|
|
@ -6363,13 +6363,14 @@ void MainWindow::setDockMessagesToArea(const Qt::DockWidgetArea &area)
|
||||||
layout->addWidget(ui->txtProblemCaseInput, 1, 0, 1, 1);
|
layout->addWidget(ui->txtProblemCaseInput, 1, 0, 1, 1);
|
||||||
// layout->addWidget(ui->lblProblemCaseInput, 2, 0, 1, 1);
|
// layout->addWidget(ui->lblProblemCaseInput, 2, 0, 1, 1);
|
||||||
|
|
||||||
layout->addWidget(ui->widgetProblemCaseExpectedCaption, 0, 1, 1, 1);
|
layout->addWidget(ui->widgetProblemCaseOutputCaption, 0, 1, 1, 1);
|
||||||
layout->addWidget(ui->txtProblemCaseExpected, 1, 1, 1, 1);
|
layout->addWidget(ui->txtProblemCaseOutput, 1, 1, 1, 1);
|
||||||
// layout->addWidget(ui->lblProblemCaseExpected, 2, 1, 1, 1);
|
// layout->addWidget(ui->lblProblemCaseOutput, 2, 1, 1, 1);
|
||||||
|
|
||||||
|
layout->addWidget(ui->widgetProblemCaseExpectedCaption, 0, 2, 1, 1);
|
||||||
|
layout->addWidget(ui->txtProblemCaseExpected, 1, 2, 1, 1);
|
||||||
|
// layout->addWidget(ui->lblProblemCaseExpected, 2, 2, 1, 1);
|
||||||
|
|
||||||
layout->addWidget(ui->widgetProblemCaseOutputCaption, 0, 2, 1, 1);
|
|
||||||
layout->addWidget(ui->txtProblemCaseOutput, 1, 2, 1, 1);
|
|
||||||
// layout->addWidget(ui->lblProblemCaseOutput, 2, 2, 1, 1);
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -6378,13 +6379,14 @@ void MainWindow::setDockMessagesToArea(const Qt::DockWidgetArea &area)
|
||||||
layout->addWidget(ui->txtProblemCaseInput, 1, 0, 1, 1);
|
layout->addWidget(ui->txtProblemCaseInput, 1, 0, 1, 1);
|
||||||
//layout->addWidget(ui->lblProblemCaseInput, 2, 0, 1, 1);
|
//layout->addWidget(ui->lblProblemCaseInput, 2, 0, 1, 1);
|
||||||
|
|
||||||
layout->addWidget(ui->widgetProblemCaseExpectedCaption, 3, 0, 1, 1);
|
|
||||||
layout->addWidget(ui->txtProblemCaseExpected, 4, 0, 1, 1);
|
|
||||||
//layout->addWidget(ui->lblProblemCaseExpected, 5, 0, 1, 1);
|
|
||||||
|
|
||||||
layout->addWidget(ui->widgetProblemCaseOutputCaption, 6, 0, 1, 1);
|
layout->addWidget(ui->widgetProblemCaseOutputCaption, 3, 0, 1, 1);
|
||||||
layout->addWidget(ui->txtProblemCaseOutput, 7, 0, 1, 1);
|
layout->addWidget(ui->txtProblemCaseOutput, 4, 0, 1, 1);
|
||||||
//layout->addWidget(ui->lblProblemCaseOutput, 8, 0, 1, 1);
|
//layout->addWidget(ui->lblProblemCaseOutput, 5, 0, 1, 1);
|
||||||
|
|
||||||
|
layout->addWidget(ui->widgetProblemCaseExpectedCaption, 6, 0, 1, 1);
|
||||||
|
layout->addWidget(ui->txtProblemCaseExpected, 7, 0, 1, 1);
|
||||||
|
//layout->addWidget(ui->lblProblemCaseExpected, 8, 0, 1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -871,7 +871,7 @@
|
||||||
<enum>QTabWidget::South</enum>
|
<enum>QTabWidget::South</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -1737,56 +1737,6 @@
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="3" column="2">
|
|
||||||
<widget class="QLabel" name="lblProblemCaseExpected">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="lblProblemCaseInput">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="3">
|
|
||||||
<widget class="QLabel" name="lblProblemCaseOutput">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="3">
|
|
||||||
<widget class="LineNumberTextEditor" name="txtProblemCaseOutput">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="lineWrapMode">
|
|
||||||
<enum>QPlainTextEdit::NoWrap</enum>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="2">
|
|
||||||
<widget class="LineNumberTextEditor" name="txtProblemCaseExpected">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="lineWrapMode">
|
|
||||||
<enum>QPlainTextEdit::NoWrap</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QWidget" name="widgetProblemCaseInputCaption" native="true">
|
<widget class="QWidget" name="widgetProblemCaseInputCaption" native="true">
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
@ -1847,7 +1797,56 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="lblProblemCaseInput">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="LineNumberTextEditor" name="txtProblemCaseInput">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QPlainTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="3">
|
||||||
|
<widget class="LineNumberTextEditor" name="txtProblemCaseExpected">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QPlainTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="2">
|
||||||
|
<widget class="LineNumberTextEditor" name="txtProblemCaseOutput">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QPlainTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="3">
|
||||||
<widget class="QWidget" name="widgetProblemCaseExpectedCaption" native="true">
|
<widget class="QWidget" name="widgetProblemCaseExpectedCaption" native="true">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_18">
|
<layout class="QHBoxLayout" name="horizontalLayout_18">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
|
@ -1907,20 +1906,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="0" column="2">
|
||||||
<widget class="LineNumberTextEditor" name="txtProblemCaseInput">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="lineWrapMode">
|
|
||||||
<enum>QPlainTextEdit::NoWrap</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="3">
|
|
||||||
<widget class="QWidget" name="widgetProblemCaseOutputCaption" native="true">
|
<widget class="QWidget" name="widgetProblemCaseOutputCaption" native="true">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_19">
|
<layout class="QHBoxLayout" name="horizontalLayout_19">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
|
@ -1965,6 +1951,20 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="3">
|
||||||
|
<widget class="QLabel" name="lblProblemCaseExpected">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="2">
|
||||||
|
<widget class="QLabel" name="lblProblemCaseOutput">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue