Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Filelight
Commits
5efdbbe6
Commit
5efdbbe6
authored
Aug 23, 2020
by
Martin Tobias Holmedahl Sandsmark
Browse files
fix refreshing summary view when settings change
parent
e671ce9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/mainWindow.cpp
View file @
5efdbbe6
...
...
@@ -460,6 +460,10 @@ void MainWindow::configFilelight()
connect
(
dialog
,
&
SettingsDialog
::
canvasIsDirty
,
m_map
,
&
RadialMap
::
Widget
::
refresh
);
connect
(
dialog
,
&
SettingsDialog
::
mapIsInvalid
,
m_manager
,
&
ScanManager
::
emptyCache
);
if
(
m_summary
)
{
connect
(
dialog
,
&
SettingsDialog
::
canvasIsDirty
,
m_summary
,
&
SummaryWidget
::
canvasDirtied
);
}
dialog
->
show
();
//deletes itself
}
...
...
src/summaryWidget.cpp
View file @
5efdbbe6
...
...
@@ -121,6 +121,7 @@ void SummaryWidget::createDiskMaps()
QWidget
*
volume
=
new
QWidget
(
this
);
QVBoxLayout
*
volumeLayout
=
new
QVBoxLayout
(
volume
);
RadialMap
::
Widget
*
map
=
new
MyRadialMap
(
this
);
connect
(
this
,
&
SummaryWidget
::
canvasDirtied
,
map
,
&
RadialMap
::
Widget
::
refresh
);
QWidget
*
info
=
new
QWidget
(
this
);
info
->
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Fixed
);
...
...
src/summaryWidget.h
View file @
5efdbbe6
...
...
@@ -22,8 +22,9 @@
#ifndef SUMMARYWIDGET_H
#define SUMMARYWIDGET_H
#include
<QUrl>
#include
"Config.h" // dirty
#include <QUrl>
#include <QWidget>
class
Folder
;
...
...
@@ -40,6 +41,7 @@ public:
Q_SIGNALS:
void
activated
(
const
QUrl
&
);
void
canvasDirtied
(
const
Dirty
dirt
);
private:
void
createDiskMaps
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment