Skip to content

Commit

Permalink
design
Browse files Browse the repository at this point in the history
  • Loading branch information
surfzoid committed Jul 14, 2023
1 parent c7bb7b0 commit f91c72a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions umlo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ Umlo::Umlo(QWidget *parent)
QGridLayout * layout = new QGridLayout(ui->TableWRpm);
layout->addWidget(sizeGrip, 0,0,1,1,Qt::AlignBottom | Qt::AlignRight);


HeightOffset = height() - ui->TableWRpm->height();
WidthtOffset = width() - ui->TableWRpm->width();
}

Umlo::~Umlo()
Expand Down Expand Up @@ -575,3 +578,8 @@ void Umlo::on_actionQT_infos_triggered()
{
QApplication::aboutQt();
}

void Umlo::resizeEvent(QResizeEvent *event)
{
ui->TableWRpm->resize(width() - WidthtOffset, height() - HeightOffset);
}
4 changes: 4 additions & 0 deletions umlo.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,16 @@ public slots:
void Populate(QString fileName, QString Whereis, QString Statu, QString Path);
QFutureWatcher<void> *futureWatcher;
bool LocalRpmEnd = false;
int HeightOffset = 0;
int WidthtOffset = 0;


signals:
void computationProgress( QFileInfo FsName);

protected:
//void closeEvent(QCloseEvent *event) override;
void resizeEvent(QResizeEvent *event) override;


};
Expand Down
2 changes: 1 addition & 1 deletion umlo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Name: umlo
Summary: umlo for French MLO Repository
Version: 1.0.8

%global Rel 8
%global Rel 9
%if 0%{?mageia}
Release: %mkrel %{Rel}
%elif 0%{?fedora} > 36 || 0%{?rhel} > 6
Expand Down
6 changes: 6 additions & 0 deletions umlo.ui
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::DragDrop</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::MultiSelection</enum>
</property>
Expand Down

0 comments on commit f91c72a

Please sign in to comment.