Moved debug underneath main tab widget

This commit is contained in:
Mark Watkins 2011-07-18 02:05:16 +10:00
parent 766f09e0e8
commit 189acc3c53
3 changed files with 480 additions and 496 deletions

View File

@ -271,12 +271,9 @@ void MainWindow::on_action_Noon_Date_Split_toggled(bool checked)
void MainWindow::on_actionDebug_toggled(bool checked)
{
pref["ShowDebug"]=checked;
int idx=ui->tabWidget->indexOf(ui->debugTab);
if (checked) {
//ui->debugTab->show();
//ui->tabWidget->setTabEnabled(idx,true);
ui->logText->show();
} else {
//ui->debugTab->hide();
// ui->tabWidget->setTabEnabled(idx,false);
ui->logText->hide();
}
}

View File

@ -48,17 +48,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="sizeConstraint">
<enum>QLayout::SetNoConstraint</enum>
</property>
<property name="margin">
<number>0</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QSplitter" name="logSplitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="QTabWidget" name="tabWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@ -76,7 +71,7 @@
<enum>QTabWidget::North</enum>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<property name="documentMode">
<bool>false</bool>
@ -546,20 +541,12 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="debugTab">
<attribute name="title">
<string>Debug</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
</widget>
<widget class="QPlainTextEdit" name="logText">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>

View File

@ -340,11 +340,11 @@ void Oximetry::onReadyRead()
} else {
//qDebug() << "Got " << bytes.size() << " bytes";
}*/
QString aa=QString::number(bytes.size(),16)+"bytes: ";
/*QString aa=QString::number(bytes.size(),16)+"bytes: ";
for (int i=0;i<bytes.size();i++) {
aa+=" "+QString::number((unsigned char)bytes[i],16);
}
qDebug() << aa;
qDebug() << aa; */
lastsize=bytes.size();
}