Skip to content

Commit

Permalink
Show less useless text in the NewFileDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 19, 2024
1 parent 72c14ec commit 441606e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 39 deletions.
4 changes: 1 addition & 3 deletions src/dialogs/NewFileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ void NewFileDialog::on_checkBox_FilelessOpen_clicked()
= {ui->recentsListWidget,
ui->ioPlugin,
ui->newFileEdit,
ui->newFileLabel,
ui->ioLabel,
ui->selectFileButton};
for (QWidget *widget : widgets_to_hide) {
setDisableAndHideWidget(widget, disable_and_hide);
Expand Down Expand Up @@ -446,7 +444,7 @@ void NewFileDialog::loadShellcode(const QString &shellcode, const int size)

void NewFileDialog::setDisableAndHideWidget(QWidget *w, bool disable_and_hide)
{
w->setDisabled(disable_and_hide);
// w->setDisabled(disable_and_hide);
w->setVisible(disable_and_hide);
}

Expand Down
39 changes: 3 additions & 36 deletions src/dialogs/NewFileDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,7 @@
<property name="horizontalSpacing">
<number>5</number>
</property>
<item row="0" column="1">
<widget class="QLabel" name="newFileLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;b&gt;Select new file&lt;b&gt;</string>
</property>
</widget>
</item>
<item row="1" column="2">
<item row="0" column="2">
<widget class="QPushButton" name="selectFileButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
Expand All @@ -140,7 +127,7 @@
</property>
</widget>
</item>
<item row="1" column="1">
<item row="0" column="1">
<widget class="QLineEdit" name="newFileEdit">
<property name="frame">
<bool>false</bool>
Expand All @@ -150,15 +137,8 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="ioPlugin"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="ioLabel">
<property name="text">
<string>&lt;b&gt;IO&lt;/b&gt;</string>
</property>
</widget>
<widget class="QComboBox" name="ioPlugin"/>
</item>
</layout>
</item>
Expand Down Expand Up @@ -358,19 +338,6 @@
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="projectsDirLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Projects path (dir.projects):&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit 441606e

Please sign in to comment.