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

View File

@ -202,7 +202,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Level</string> <string>Analysis level</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -279,7 +279,8 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="styleSheet"> <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>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <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->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(disasmScrolled()));
connect(this->disasTextEdit, SIGNAL(cursorPositionChanged()), this, SLOT(on_disasTextEdit_2_cursorPositionChanged())); connect(this->disasTextEdit, SIGNAL(cursorPositionChanged()), this, SLOT(on_disasTextEdit_2_cursorPositionChanged()));
this->on_disasTextEdit_2_cursorPositionChanged();
} }
void MemoryWidget::refreshHexdump(QString where) void MemoryWidget::refreshHexdump(QString where)

View File

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

View File

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