Skip to content

Commit

Permalink
Bugfix: the hex editor plugin is not resized when the form is resized.
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigmdm committed Feb 26, 2024
1 parent 4815958 commit 02cc6ff
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
6 changes: 6 additions & 0 deletions IMSProg_programmer/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,12 @@ void MainWindow::progInit()
ui->comboBox_type->setCurrentIndex(0);
}

void MainWindow::resizeEvent(QResizeEvent* event)
{
QMainWindow::resizeEvent(event);
// Your code here.
hexEdit->setGeometry(0,0,ui->frame->width(),ui->frame->height());
}
//*****************************************************
// HEX ULTLITY by Mikhail Medvedev
//*****************************************************
Expand Down
2 changes: 1 addition & 1 deletion IMSProg_programmer/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private slots:
void on_actionExport_to_Intel_HEX_triggered();
void on_actionImport_from_Intel_HEX_triggered();
void on_actionExtract_from_ASUS_CAP_triggered();

void resizeEvent(QResizeEvent* event);
private:
Ui::MainWindow *ui;
QColor defaultTextColor;
Expand Down
21 changes: 7 additions & 14 deletions IMSProg_programmer/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,12 @@ QPushButton::pressed{background-color: rgb(115, 210, 22);}</string>
<height>11</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
Expand All @@ -714,7 +720,7 @@ QPushButton::pressed{background-color: rgb(115, 210, 22);}</string>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>700</height>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
Expand Down Expand Up @@ -850,19 +856,6 @@ QPushButton::pressed{background-color: rgb(115, 210, 22);}</string>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>127</width>
<height>6</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
<property name="sizePolicy">
Expand Down

0 comments on commit 02cc6ff

Please sign in to comment.