Removed some scrollbars. Small fix in disasm navigation

This commit is contained in:
Hugo Teso 2017-04-12 14:07:43 +02:00
parent e857437949
commit 7e7c6aad85
5 changed files with 19 additions and 11 deletions

View File

@ -277,15 +277,15 @@ QString OptionsDialog::analysisDescription(int level)
switch(level)
{
case 0:
return tr("Analysis disabled");
return tr("Disabled");
case 1:
return tr("Minimum analysis");
return tr("Minimum");
case 2:
return tr("Basic analysis");
return tr("Basic");
case 3:
return tr("Medium analysis");
return tr("Medium");
case 4:
return tr("Full analysis <font color='red'><b>(Experimental)</b></font>");
return tr("Full <font color='red'><b>(Experimental)</b></font>");
default:
return tr("Unknown");
}
@ -293,7 +293,7 @@ QString OptionsDialog::analysisDescription(int level)
void OptionsDialog::on_analSlider_valueChanged(int value)
{
ui->analDescription->setText(tr("Level") + QString(" - %1").arg(analysisDescription(value)));
ui->analDescription->setText(tr("Analysis level") + QString(" - %1").arg(analysisDescription(value)));
if (value == 0)
{
ui->analCheckBox->setChecked(false);

View File

@ -202,7 +202,7 @@
</font>
</property>
<property name="text">
<string>Level</string>
<string>Analysis level</string>
</property>
</widget>
</item>
@ -279,7 +279,8 @@
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
<string notr="true">background-color: rgb(255, 255, 255);
color: rgb(0, 0, 0);</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>

View File

@ -527,6 +527,7 @@ void MemoryWidget::refreshDisasm(const QString &offset)
connect(this->disasTextEdit->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(disasmScrolled()));
connect(this->disasTextEdit, SIGNAL(cursorPositionChanged()), this, SLOT(on_disasTextEdit_2_cursorPositionChanged()));
this->on_disasTextEdit_2_cursorPositionChanged();
}
void MemoryWidget::refreshHexdump(QString where)

View File

@ -523,6 +523,9 @@ border-top: 0px;
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="undoRedoEnabled">
<bool>true</bool>
</property>
@ -772,9 +775,6 @@ QToolTip {
</spacer>
</item>
</layout>
<zorder>previewToolButton</zorder>
<zorder>decoToolButton</zorder>
<zorder>simpleGrapgToolButton</zorder>
</widget>
</item>
<item>

View File

@ -679,6 +679,9 @@ QToolTip {
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum>
</property>
@ -708,6 +711,9 @@ QToolTip {
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum>
</property>