mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Changed TestEdit fields to LineEdit.
This commit is contained in:
parent
a0af0b4d2d
commit
dd8d651c69
2 changed files with 30 additions and 28 deletions
|
@ -36,6 +36,8 @@ AutoTester::AutoTester(QWidget* parent) : QMainWindow(parent) {
|
|||
_ui.statusLabel->setText("");
|
||||
_ui.plainTextEdit->setReadOnly(true);
|
||||
|
||||
setWindowTitle("Auto Tester - v4.5");
|
||||
|
||||
// Coming soon to an auto-tester near you...
|
||||
//// _helpWindow.textBrowser->setText()
|
||||
}
|
||||
|
@ -96,11 +98,11 @@ void AutoTester::startTestsEvaluation(const bool isRunningFromCommandLine,
|
|||
|
||||
void AutoTester::on_tabWidget_currentChanged(int index) {
|
||||
if (index == 2 || index == 3) {
|
||||
_ui.userTextEdit->setDisabled(false);
|
||||
_ui.branchTextEdit->setDisabled(false);
|
||||
_ui.userLineEdit->setDisabled(false);
|
||||
_ui.branchLineEdit->setDisabled(false);
|
||||
} else {
|
||||
_ui.userTextEdit->setDisabled(true);
|
||||
_ui.branchTextEdit->setDisabled(true);
|
||||
_ui.userLineEdit->setDisabled(true);
|
||||
_ui.branchLineEdit->setDisabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -280,19 +282,19 @@ void AutoTester::content() {
|
|||
}
|
||||
|
||||
void AutoTester::setUserText(const QString& user) {
|
||||
_ui.userTextEdit->setText(user);
|
||||
_ui.userLineEdit->setText(user);
|
||||
}
|
||||
|
||||
QString AutoTester::getSelectedUser() {
|
||||
return _ui.userTextEdit->toPlainText();
|
||||
return _ui.userLineEdit->text();
|
||||
}
|
||||
|
||||
void AutoTester::setBranchText(const QString& branch) {
|
||||
_ui.branchTextEdit->setText(branch);
|
||||
_ui.branchLineEdit->setText(branch);
|
||||
}
|
||||
|
||||
QString AutoTester::getSelectedBranch() {
|
||||
return _ui.branchTextEdit->toPlainText();
|
||||
return _ui.branchLineEdit->text();
|
||||
}
|
||||
|
||||
void AutoTester::updateStatusLabel(const QString& status) {
|
||||
|
|
|
@ -673,26 +673,6 @@
|
|||
<string>GitHub Branch</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="branchTextEdit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>250</x>
|
||||
<y>75</y>
|
||||
<width>140</width>
|
||||
<height>24</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="userTextEdit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>250</x>
|
||||
<y>37</y>
|
||||
<width>140</width>
|
||||
<height>24</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
|
@ -724,6 +704,26 @@
|
|||
<number>24</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="userLineEdit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>40</y>
|
||||
<width>161</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="branchLineEdit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>80</y>
|
||||
<width>161</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="geometry">
|
||||
|
|
Loading…
Reference in a new issue